View Job Status of a Restore Operation
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/restoredbackups/{jobId}
Request
-
identityDomainId: string
Name of the identity domain for the MySQL Cloud Service account.
-
jobId: string
Job ID of the restoration operation.
-
serviceId: string
The user-defined name of the Oracle MySQL Cloud Service instance.
-
X-ID-TENANT-NAME: string
Name of the identity domain for the MySQL Cloud Service account.
Response
- application/json
200 Response
object
-
backupDate(optional):
string
Date and time of the backup.
-
backupId(optional):
string
Backup ID.
-
jobId(optional):
string
Job ID for the restore operation.
-
notes(optional):
string
Free-form text that provides additional information about the restoration operation.
-
recoveryCompleteDate(optional):
string
Date and time that the restoration operation completed. This information is not displayed for restorations that are still in progress.
-
recoveryStartDate(optional):
string
Date and time that the restoration operation started.
-
restoreId(optional):
string
Defined for Point-In-Time (PIT) restorations, its timestamp is displayed as
MM/DD/YYYY HH:MM:SS
. For example,03/12/2016 17:20:55
. -
restoreType(optional):
string
Defined for Point-In-Time (PIT) restorations, the only supported value is
pit
(Point-In-Time). -
status(optional):
string
Status of the operation. Valid values include:
Completed
,Failed
, orRestore In Progress
. -
statusDetails(optional):
string
History of system messages.
Examples
The following example shows how to view the status of a restoration operation for a MySQL Cloud Service instance by submitting a GET request on the REST resource using cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the Oracle Public Cloud or Oracle Cloud Machine REST server to contact for your identity domain or tenant name. See Send Requests for the appropriate URL structure to use on Oracle Public Cloud or Oracle Cloud Machine.
cURL Command
curl -i -X GET \ -u "username:password" \ -H "X-ID-TENANT-NAME: ExampleIdentityDomain" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/restoredbackups/2223824
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK
Server: Oracle-Application-Server-11g
Content-Language: en
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: 5P3E0pg0FFVR6503W0d01000uYy10UGHui
X-ORACLE-DMS-ECID: 5P3E0pg0FFVR6503W0d01000uYy10UGHui
Access-Control-Allow-Origin: *
X-Frame-Options: DENY
Content-Type: application/json
Vary: user-agent
Date: Thu, 15 Dec 2016 01:44:45 GMT
Content-Length: 393
Connection: keep-alive
Example of Response Body
The following shows an example of the response body in JSON format.
{
"backupId": "104148c3-2140-484b-8012-efc1c4907c74",
"backupDate": "2016-12-15T00:51:44.924+0000",
"jobId": "2223824",
"recoveryStartDate": "2016-12-15T01:43:46.119+0000",
"status": "In Progress",
"statusDetails": "Submitted the restoration precheck for remote execution...Restore health check passed....Submitted the restoration for remote execution",
"notes": "Restoring backup as discussed on KB-14412"
}