Delete a Service Instance

put

/api/v1.1/instances/{identityId}/{serviceId}

Deletes a service instance.

Request

Supported Media Types
  • application/json
Path Parameters
identityId
Type: string
Required: true
Name of the identity domain for the Oracle Cloud Service account.
serviceId
Type: string
Required: true
ID of the service instance.
Body Parameter
The request body defines the details of the delete service instance request. Bold indicates a required value.
Root Schema : InstanceDelete-putrequest
The request body defines the details of the delete service instance request. Bold indicates a required value.

Response

Supported Media Types
  • application/json
  • text/plain
  • text/html
202 Response
success
Body
The response body contains information about the delete operation.
Root Schema : InstanceDelete-response
The response body contains information about the delete operation.

Examples

The following example shows how to delete an Oracle SOA Cloud Service instance by submitting a PUT request on the REST resource using cURL. For more information, see Use cURL.

See also Deleting an Oracle SOA Cloud Service Instance.

cURL Command

curl -i -X PUT -u joe@example.com:Welcome1! -d @delete.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://api-host/paas/service/soa/api/v1.1/instances/ExampleIdentityDomain/ExampleInstance
Note:: This example uses the URL prefix for the United States ( soacs). For information about the URL prefixes for other regions of the world, see Send Requests.

Example of Request Body

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

{
  "dbaName": "SYS",
  "dbaPassword": "Weblogic123#",
  "forceDelete": true
}

Example of Response Header

The following shows an example of the response header.

The Location header returns the REST resource that can be used to access the status of the delete service instance request. For more information, see Get Service Provisioning Status.

HTTP/1.1 202 Accepted
Date: Wed, 24 Jun 2015 19:52:03 GMT
Server: Oracle-Application-Server-11g
Location: https://api-host/paas/service/soa/api/v1.1/instances/ExampleInstance/status/delete/job/100900

Example of Response Body

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

{
    "service_name":"ExampleInstance",
    "version":"12cR3",
    "wlsVersion":"12.1.3.0.4",
    "status":"Terminating",
    "error_status_desc": "",
    "compliance_status": "",
    "compliance_status_desc": "",
    "auto_update" : "true",
    "description":"An example service instance",
    "identity_domain":"ExcapleIdentityDomain",
    "creation_time":"Mon Aug 18 20:22:54 GMT 2014",
    "last_modified_time":"Mon Aug 18 20:22:54 GMT 2014",
    "created_by":"joe@example.com",
    "service_uri":"https:\/\/api-host\/paas\/service\/soa\/api\/v1.1\/instances\/ExampleIdentityDomain\/ExampleInstance"
}