Delete a Cache

put

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/caching/instances/{serviceName}

Deletes a cache instance.

Request

Supported Media Types
  • application/vnd.com.oracle.oracloud.provisioning.Service+json
Path Parameters
identityDomainId
Type: string
Required: true
Name of the identity domain for the Oracle Oracle Application Container Cloud Service account
serviceName
Type: string
Required: true
Name of the cache instance

Response

Supported Media Types
  • application/json
202 Response
Accepted
Body
Root Schema : details-jobid
Type: object
Nested Schema : details
Type: object
404 Response
Not Found. Returned if the cache instance does not exist.
Body
Root Schema : details-issues
Nested Schema : details
Type: object
Nested Schema : issues
Type: array

Examples

The following example shows how to delete a cache by submitting a PUT request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, including how to determine your region, see Send Requests.

curl -i -X PUT -u joe@example.com:joePassword \
 -H "X-ID-TENANT-NAME:ExampleIdentityDomain" \
 -H "Content-Type:application/vnd.com.oracle.oracloud.provisioning.Service+json" \
 -d "{}" \
  https://apaas.us.oraclecloud.com/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/caching/instances/MyCache

Example of Request Body

A request body is required, but it must be empty. This is included in the cURL command.

{}

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 202 Accepted
Date: Wed, 12 Apr 2017 18:46:55 GMT
Transfer-Encoding: chunked
Location: https://apaas.us.oraclecloud.com/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/17481
Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json
Access-Control-Allow-Headers: Content-Type, api_key, Authorization, X-ID-TENANT-NAME, X-USER-IDENTITY-DOMAIN-NAME
Service-URI: https://apaas.us.oraclecloud.com/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/caching/instances/MyCache
Retry-After: 60
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: e6b609ac-e548-4bee-8d87-fd2b4c6a51bf-0000f77f
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.

{
   "details":{
      "message":"Submitted job to delete service [MyCache] in domain [ExampleIdentityDomain].",
      "jobId":"17481"
   }
}