Scale a Node

post

/paas/api/v1.1/instancemgmt/{domainName}/services/SOA/instances/{serviceName}/hosts/scale

Scales the specified Administration Server or Managed Server node to change its compute shape.

This endpoint is not supported for Service instances provisioned in Oracle Cloud Infrastructure.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the details of the create instance request. Bold indicates a required value.
Root Schema : scale-up-down-request
Type: object
Show Source
Nested Schema : components
Type: object
Show Source
Nested Schema : WLS
Type: object
Show Source
  • 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.
  • 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 weblogic shapes 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 otd 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

Nested Schema : hosts
Type: array
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.
Show Source
Back to Top

Response

Supported Media Types

202 Response

Accepted
Body ()
The response body contains information about the scale-up-down operation.
Root Schema : scale-up-down-response
Type: object
The response body contains information about the scale-up-down operation.
Show Source
Nested Schema : details
Type: object
The details of the scale operation.
Show Source
Back to Top

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"
  }
}
Back to Top