Delete an Auto Scaling Policy
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/JaaS/instances/{serviceId}/autoscaling/policies
Removes the automatic (auto) scaling policy from an Oracle Java Cloud Service instance. This disables auto scaling on the service instance.
Request
-
identityDomainId: string
Identity domain ID for the Oracle Java Cloud Service account.
-
serviceId: string
Name of the Oracle Java Cloud Service instance.
-
Authorization: string
Base64 encoded user name and password separated by a colon or OAuth access token obtained from Oracle Identity Cloud Service. See Authenticate.
-
X-ID-TENANT-NAME: string
Identity domain ID for the Oracle Java Cloud Service account.
Response
202 Response
404 Response
Examples
The following example shows how to delete the auto scaling policy defined for an Oracle Java Cloud Service instance, by submitting a DELETE request on the REST resource using cURL.
Note:
-
The command in this example uses the URL structure
https://rest_server_url/resource-path
, whererest_server_url
is the REST server to contact for your identity domain (or Cloud Account). See Send Requests. -
In the resource path, the service type
../JaaS/..
is case-sensitive.
cURL Command
curl -i -X DELETE -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/autoscaling/policies
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 202 Accepted
Date: Thu, 19 May 2016 02:23:06 GMT
Transfer-Encoding: chunked
Content-Type: application/json