Delete a Snapshot
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/snapshots/{snapshotName}
Note: A snapshot cannot be deleted if there are any MySQL Cloud Service instances cloned from it.
Request
-
identityDomainId: string
Name of the identity domain for the MySQL Cloud Service account.
-
serviceId: string
The user-defined name of the Oracle MySQL Cloud Service instance.
-
snapshotName: string
Name of the snapshot.
-
X-ID-TENANT-NAME: string
Name of the identity domain for the MySQL Cloud Service account.
Response
202 Response
objectResponse Body-
jobId(optional):
string
Job ID for the operation.
-
message(optional):
string
System message that describes the operation. For example:
Snapshot a service [{serviceId}] is submitted as an asynchronous job.
Examples
The following example shows how to delete a snapshot of a MySQL Cloud Service instance by submitting a DELETE request on the REST endpoint using cURL.
In this example, the identity domain is ExampleIdentityDomain and the Oracle Cloud user name and password are username and password. The snapshot being deleted is named snaptest, and is a snapshot of the service instance mysql57?aas.
Note that the Location response header provides a URI you can do a GET on to track completion of the delete operation.
cURL Command
curl --include --request DELETE \
--user "username:password" \
--header "X-ID-TENANT-NAME:ExampleIdentityDomain" \
https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/mysql57-aas/snapshots/snaptest
HTTP Status Code and Response Headers
HTTP/1.1 202 Accepted
Date: Wed, 26 Jul 2017 15:05:15 GMT
Server: Oracle-Application-Server-11g
Location: http://rest_server_url/paas/api/v1.1/activitylog/TestCorp/job/5154895
Content-Length: 146
Content-Language: en
Retry-After: 60
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: 005LJb6WQLA2zGILIqH7if0004vG0000NE
X-ORACLE-DMS-ECID: 005LJb6WQLA2zGILIqH7if0004vG0000NE
Access-Control-Allow-Origin: *
X-Frame-Options: DENY
Vary: Accept-Encoding,User-Agent
Content-Type: application/json