Scale a Cache
post
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/caching/instances/{serviceName}/scale
Scales a cache instance using a new value, in gigabytes, specified in the 'size' field of the request payload.
Request
Supported Media Types
- application/vnd.com.oracle.oracloud.provisioning.Service+json
Path Parameters
- identityDomainId
-
Type:
stringRequired:trueName of the identity domain for the Oracle Application Container Cloud Service account - serviceName
-
Type:
stringRequired:trueName of the cache instance
Body Parameter
The request body defines the details of the scale request.
Root Schema : scale-payload
For describing a cache scale operation
- serviceParameters
-
Type:
objectserviceParametersAdditional Properties Allowed:
Nested Schema : serviceParameters
Type:
object- size
-
Type:
stringMemory allocated to the cache in gigabytes
Response
Supported Media Types
- application/json
202 Response
Accepted
Body
Root Schema : details-jobid
Type:
object- details
-
Type:
objectdetailsAdditional Properties Allowed:
Nested Schema : details
Type:
object- jobId
-
Type:
integerID of the ACCS infrastructure job that is performing the operation - message
-
Type:
stringAcknowledgment message for a request
404 Response
Not Found. Returned if the cache instance does not exist.
Examples
The following example shows how to scale a cache by submitting a POST 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 POST -u joe@example.com:joePassword \
-H "X-ID-TENANT-NAME:ExampleIdentityDomain" \
-H "Content-Type:application/vnd.com.oracle.oracloud.provisioning.Service+json" \
-d @scale-cache.json \
https://apaas.us.oraclecloud.com/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/caching/instances/MyCache/scale
Example of Request Body
The following example shows the contents of the request body in JSON format. This is the contents of the scale-cache.json file listed in the cURL command.
{
"serviceParameters":{
"size":"2"
}
}
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 202 Accepted
Date: Wed, 12 Apr 2017 16:30:32 GMT
Transfer-Encoding: chunked
Location: https://apaas.us.oraclecloud.com/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/17469
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/MyCache
Retry-After: 60
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: e6b609ac-e548-4bee-8d87-fd2b4c6a51bf-0000f3da
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 scaling job in service [MyCache] in domain [ExampleIdentityDomain].",
"jobId":"17469"
}
}