Scale a Node
/paas/api/v1.1/instancemgmt/{domainName}/services/SOA/instances/{serviceName}/hosts/scale
This endpoint is not supported for Service instances provisioned in Oracle Cloud Infrastructure.
Request
- application/vnd.com.oracle.oracloud.provisioning.Service+json
-
domainName: string
Name of the identity domain for the Oracle Cloud Service account.
-
serviceName: string
Name of the Oracle SOA Cloud Service instance.
object-
hosts(optional):
array hosts
An array of hosts to be controlled via the mentioned operation. The service is controlled if ALL hosts are listed, making this the same behavior as including allServiceHosts:true.
-
shape(optional):
string
Desired compute shape.
This attribute is required. If you do not want to change the compute shape, set this value to match the current compute shape.
Valid
weblogicshapes include:- 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
Valid
otdshapes 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
array-
Array of:
string
A WLS host the operation applies to.
Response
- application/json
202 Response
object-
details:
object details
The details of the scale operation.
object-
jobId:
string
Job ID for the scale operation.
-
message:
string
System message that describes the operation. For example:
scaleup.job.submitted
Examples
The following example shows how to scale a server to change its compute shape or add block storage in Oracle SOA Cloud Service instance by submitting a POST request on the REST resource using cURL For more information, see Use cURL.
cURL Command
curl -v -X POST -u username:Password1! -t @scaleUpPayload.json -H "Content-Type:application/vnd.com.oracle.oracloud.provisioning.Service+json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest-server_url.com/paas/api/v1.1/instancemgmt/{domainName}/services/SOA/instances/{serviceName}/hosts/scale
Example of Request Header
The following shows an example of the request header.
-u '{userName}:{password}'
Content-Type:application/vnd.com.oracle.oracloud.provisioning.Service+json
X-ID-TENANT-NAME: {domainName}
Accept: application/json
Example of Request Body
The following example shows the request in JSON format.
{
"components": {
"WLS": {
"shape": "oc1m/oc2m/oc3m/oc4m",
"hosts": ["<hostName>"]
}
}
}
Example of Response Body
The following shows an example of the response body returned in JSON format:
{
"details": {
"message": "Submitted job to scaling job in service [ServiceName] in domain [DomainName].",
"jobId": "12997"
}
}