View All Restore Operations

get

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/restoredbackups

Returns a list of restore operations performed on a MySQL Cloud Service instance.

By default, only successful restoration operations are included. Set the includeFailed query parameter to true to include both successful and failed restoration operations.

Request

Path Parameters
Header Parameters

Response

Supported Media Types

200 Response

OK. See Status Codes, for information about other possible HTTP status codes.
Body ()
The response body contains the details of the restoration operations.
Root Schema : backup-view-all-restorations-response
Type: object
The response body contains the details of the restoration operations.
Show Source
Nested Schema : restoreHistory
Type: array
Groups all completed restoration operations.
Show Source
Nested Schema : restoreInProgress
Type: array
Groups details of a restoration operation currently in progress, if any.
Show Source
Nested Schema : backup-restore-history
Type: object
Show Source

Examples

The following example shows how to view a list of all restored backups performed on a MySQL Cloud Service instance by submitting a GET request on the REST endpoint 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 

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: x0130G0idu0Ex05HVUYup60050FpikR03g
X-ORACLE-DMS-ECID: x0130G0idu0Ex05HVUYup60050FpikR03g
Access-Control-Allow-Origin: *
X-Frame-Options: DENY
Content-Type: application/json
Vary: user-agent
Date: Thu, 15 Dec 2016 01:46:22 GMT
Content-Length: 528
Connection: keep-alive

Example of Response Body

The following shows an example of the response body in JSON format.

{
    "restoreHistory": [
        {
            "backupId": "104148c3-2140-484b-8012-efc1c4907c74",
            "backupDate": "2016-12-15T00:51:44.924+0000",
            "jobId": "2223824",
            "recoveryStartDate": "2016-12-15T01:43:46.119+0000",
            "recoveryCompleteDate": "2016-12-15T01:45:09.927+0000",
            "status": "Completed",
            "statusDetails": "Submitted the restoration precheck for remote execution...Restore health check passed....Submitted the restoration for remote execution...Restore from backup succeeded. ...Completed the restoration",
            "notes": "Restoring backup as discussed on KB-14412"
        }
    ]
}