Delete a Snapshot

delete

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

Deletes a storage snapshot of a MySQL Cloud Service instance.

Note: A snapshot cannot be deleted if there are any MySQL Cloud Service instances cloned from it.

Request

Path Parameters
Header Parameters

Response

202 Response

Accepted. See Status Codes for information about other possible HTTP status codes.
Body ()
Root Schema : Response Body
Type: object
Title: Response Body
The response body contains information about the operation.
Show Source

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