Scale a Service instance
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/hosts/scale
Request
- application/vnd.com.oracle.oracloud.provisioning.Service+json
-
identityDomainId: string
Name of the identity domain for the MySQL Cloud Service account.
-
serviceId: string
The user-defined name of the Oracle MySQL Cloud Service instance.
-
X-ID-TENANT-NAME: string
Name of the identity domain for the MySQL Cloud Service account.
object
Scaling Request Body
-
components(optional):
object Scaling Component Details
Title:
Scaling Component Details
Details for the 'components' schema in the scaling operation.
object
Scaling Component Details
-
hosts:
array hosts
A list of hosts to control.
-
shape:
string
Desired compute shape. A shape defines the number of Oracle Compute Units (OCPUs) and amount of memory (RAM). Valid shapes include:
- oc3: 1 OCPU, 7.5 GB memory
- oc4: 2 OCPUs, 15 GB memory
- oc5: 4 OCPUs, 30 GB memory
- oc6: 8 OCPUs, 60 GB memory
- oc7: 16 OCPUs, 120 GB memory
- oc1m: 1 OCPU, 15 GB memory
- oc2m: 2 OCPUs, 30 GB memory
- oc3m: 4 OCPUs, 60 GB memory
- oc4m: 8 OCPUs, 120 GB memory
- oc5m: 16 OCPUs, 240 GB memory
See About Shapes in Using Oracle Compute Cloud Service for more information about shapes.
Response
- application/json
202 Response
object
Response Body
-
jobId(optional):
string
Job ID for the operation.
-
message(optional):
string
System message that describes the operation. For example:
Snapshot a service [{serviceId}] is submitted as an asynchronous job.
Examples
The following example shows how to scale the shape of a MySQL Cloud Service instance by submitting a POST request on the REST endpoint using cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the Oracle Public Cloud or Oracle Cloud Machine REST server to contact for your identity domain or tenant name. See Send Requests for the appropriate URL structure to use on Oracle Public Cloud or Oracle Cloud Machine.
cURL Command
curl -i -X POST \ -u "username:password" \ -H "X-ID-TENANT-NAME:ExampleIdentityDomain" \ -d '{"components":{"mysql":{"shape":"oc5","hosts":["mytestinstance-mysql-1"]}}}' \ -H "Accept: application/json" \ -H "Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json" \ https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/hosts/scale
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 202 Accepted
Date: Wed, 30 Nov 2016 23:08:24 GMT
Transfer-Encoding: chunked
Location:https://rest_server_url/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/3480
Content-Type: application/json
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Service-URI: https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/MyTestInstance
Retry-After: 60
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: d-7262--2099d98613bc0e4-16817786bd3-303edc0c8
Access-Control-Allow-Origin: *
X-Frame-Options: DENY
Example of Response Body
The following shows an example of the response body in JSON format.
{ "details": { "message": "Submitted job to scaling job in service [MyTestInstance] in domain [ExampleIdentityDomain].", "jobId": "3480" } }