Delete a Service Instance
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/APICS/instances/{serviceId}
Note: ServiceID is the user specified name for the service and is not the ID that's autogenerated for the instance.
Request
- application/vnd.com.oracle.oracloud.provisioning.Service+json
-
identityDomainId: string
Name of the identity domain for the API Platform Cloud Service - Classic account.
-
serviceId: string
Name of the API Platform Cloud Service - Classic instance.
Note: ServiceID is the user specified name for the service and is not the ID that's autogenerated for the instance.
-
Authorization: string
Base64 encoding of the user name and password of the user making the request. For more information, see Security, Authentication and Authorization.
object
-
componentParameters(optional):
object componentParameters
Object containing component-level properties. This object can be left blank.
-
serviceParameters(optional):
object serviceParameters
Object containing service-level properties.
object
object
-
dbaName(optional):
string
Username for the Oracle Database Cloud - Database as a Service instance administrator. This value must be set to a database user with SYSDBA system privileges. You can use the default user
SYS
or a user that has been granted theSYSDBA
privilege. -
dbaPassword(optional):
string
Password for the Oracle Database Cloud - Database as a Service instance administrator.
-
forceDelete(optional):
boolean
Flag that specifies whether you want to force the removal of the service instance even if the database instance cannot be reached to delete the database schemas. If set to
true
, you may need to delete the associated database schemas manually on the database instance if they are not deleted as part of the service instance delete operation. This value defaults tofalse
. -
skipBackupOnTerminate(optional):
boolean
Flag that specifies whether you want to skip backing up the service instance before deleting it. This value defaults to
true
.
Response
- application/json
202 Response
-
Location: string
A REST URI you can use to check the progress and completion of the instance deletion operation, as described in View the Job Status of an Operation.
Examples
The following example shows how to delete an Oracle API Platform Cloud Service - Classic instance by submitting a PUT request on the REST resource using cURL. For more information about cURL, see cURL Examples.
curl -i -X PUT -u apicsadmin:password -H "Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json" -d @delete.json https://example.com:7103/paas/api/v1.1/instancemgmt/apics/services/APICS/instances/apics
Example of Request Body
The following shows an example of the request body in JSON format, including the username and password of the Oracle Database Cloud - Database as a Service instance administrator for the DBaaS instance associated with the service instance you want to delete.
{ "serviceParameters": { "dbaName" : "SYS", "dbaPassword":"password" }, "componentParameters": { } }
Example of Response Headers
The following shows an example of the response headers.
HTTP/1.1 202 Accepted Date: Wed, 23 Nov 2016 11:30:06 GMT Transfer-Encoding: chunked Location: https://example.com:7103/paas/api/v1.1/activitylog/apics/job/26366 Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json Access-Control-Allow-Headers: Content-Type, api_key, Authorization Service-URI: https://example.com:7103/paas/api/v1.1/instancemgmt/apics/services/APICS/instances/apics Retry-After: 60 Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD X-ORACLE-DMS-ECID: 7077e58cc81a37d2:-4cd90f8:15878a7e3f0:-8000-000000000000601a Access-Control-Allow-Origin: * X-Frame-Options: DENY
Example of Response Body
The following example shows the contents of the response body in JSON format, including the jobId of the delete operation.
{ "details": { "message": "Submitted job to delete service [apics] in domain [apics].", "jobId": "26366" } }