Delete a Service Instance
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}
Request
- application/vnd.com.oracle.oracloud.provisioning.Service+json
-
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.
-
X-ID-TENANT-NAME: string
Name of the identity domain for the MySQL Cloud Service account.
object
Delete Operation Request Body
-
options(optional):
object options
This operation does not yet accept any options; you are required to define this as an empty object '{}'.
object
Response
- application/json
202 Response
object
Response 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 MySQL Cloud Service instance by submitting a PUT 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.
Note: Sending a request body is always required, but it may be empty as demonstrated in this example.
cURL Command
curl -i -X PUT \ -u "username:password" \ -H "X-ID-TENANT-NAME: ExampleIdentityDomain" \ -H "Accept: application/json" \ -H "Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json" \ -d "{}" \ https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 202 Accepted
Date: Wed, 30 Nov 2016 23:30:48 GMT
Transfer-Encoding: chunked
Location: https://rest_server_url:443/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/3495
Content-Type: application/json
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Service-URI: https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance
Retry-After: 60
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: b786ee72-63d7-4cd6-830d-39c2388b9b68-0003123b
Access-Control-Allow-Origin: *
X-Frame-Options: DENY
Example of Response Body
The following shows an example of the response body in JSON format.
{ "details": { "message": "Submitted job to delete service [MyTestInstance] in domain [ExampleIdentityDomain].", "jobId": "3495" } }