View a Deleted Backup

get

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

Returns information about a deleted backup for a MySQL Cloud Service instance, based on the job ID of the operation that deleted the backup.

Request

Path Parameters
Header Parameters

Response

200 Response

OK. See Status Codes for information about other possible HTTP status codes.
Body ()
The response body contains information about a backup deleted synchronously or asynchronously, or a list of backups deleted asynchronously.
Root Schema : backup-view-deleted-response
Type: object
The response body contains information about a backup deleted synchronously or asynchronously, or a list of backups deleted asynchronously.
Show Source
Nested Schema : delete-backup
Type: array
Groups information about a deleted backup.
Show Source
Nested Schema : delete-backups
Type: array
Groups information about a list of backups deleted asynchronously.
Show Source
Nested Schema : backup-delete-info
Type: object
Show Source

400 Response

Bad Request. Returned if the job ID does not exist.

Examples

The following example shows how to see the progress of a delete backup operation for a MySQL Cloud Service instance by submitting a GET request on the REST endpoint using cURL.

In this example, information is retrieved for a job id that deleted a backup of the MySQL Cloud Service instance named MyTestInstance in the identity domain ExampleIdentityDomain where the job id for the delete backup operation is 2227335.

Note: Deleting a backup uses a backup id, and it then returns a job id in the response body for that delete operation. This is the job id that you use here to retrieve the status of that delete operation.

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/deletedbackups/2227335

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

Example of Response Body

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

{
    "delete-backup": [
        {
            "operation": "delete",
            "jobId": "2227335",
            "status": "Completed",
            "startDate": "2016-12-15T01:15:53.435+0000",
            "completeDate": "2016-12-15T01:15:57.844+0000",
            "statusDetails": "Deleted the backup archive."
        }
    ]
}