View All Deleted Backups

get

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

Returns information about all deleted backups for a MySQL Cloud Service instance.

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 all deleted backups.
Root Schema : backup-view-all-deleted-response
Type: object
The response body contains information about all deleted backups.
Show Source
Nested Schema : deletedbackups
Type: array
Groups all deleted backups.
Show Source
Nested Schema : backup-view-response
Type: object
Show Source
Nested Schema : incrementalBackups
Type: array
List of incremental backups linked to the full backup, if any.
Show Source
Nested Schema : jobHistory
Type: array
Groups job history details. The job history details only return for a specific backup request.
Show Source
Nested Schema : backup-view-info
Type: object
Show Source
Nested Schema : backup-job-history
Type: object
Show Source

Examples

The following example shows how to view a list of all deleted backups for 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/deletedbackups 

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

Example of Response Body

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

{
    "deletedbackups": [
        {
            "backupId": "b4e1c127-183b-427e-c248-d56c679c8cba",
            "jobId": "2227335",
            "backupStartDate": "2016-12-15T00:46:18.243+0000",
            "expirationDate": "2017-01-14T00:46:18.243+0000",
            "deletedOnDate": "2016-12-15T01:15:57.844+0000",
            "initiatedBy": "username",
            "full": true,
            "databaseIncluded": false,
            "size": "2.7MB",
            "sizeInBytes": 2881001,
            "status": "Deleted",
            "storageContainer": "Storage-exampleidentitydomain\/MyBackupContainer",
            "href": "https:\/\/rest_server_url:443\/paas\/api\/v1.1\/instancemgmt\/exampleidentitydomain\/services\/MySQLCS\/instances\/MyTestInstance\/backups\/b4e1c127-183b-427e-c248-d56c679c8cba",
            "tag": "{\"startTime\":1481762779,\"endTime\":1481762780,\"startLSN\":1731072,\"endLSN\":1731376,\"lastBinLog\":\"mytestinstance-mysql-1.000002\",\"lastBinLogPos\":3652,\"triggeredBy\":\"username\"}"
        }
    ]
}