Add Storage

post

/paas/api/v1.1/instancemgmt/{domainName}/services/SOA/instances/{serviceName}/storage/add

Adds storage to the service instance.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the details of the storage request. Bold indicates a required value.
Root Schema : add-storage-request
Type: object
Show Source
Nested Schema : components
Type: object
Show Source
Nested Schema : WLS
Type: object
Show Source
Nested Schema : domain
Type: array
Domain / Middleware / Backup and the storage to add.
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 ()
Root Schema : add-storage-response
Type: object
The response body contains information about the add storage operation.
Show Source
Nested Schema : details
Type: object
The details of the add storage operation.
Show Source
Back to Top

Examples

The following example shows how to add a storage to an 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! -d @start.json -H "Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json" https://rest-server_url.com/paas/api/v1.1/instancemgmt/{domainName}/services/SOA/instances/{serviceName}/storage/add

Example of Request Header

The following example shows 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": {
      "hosts": [
        "myInstance1-wls-1"],
        "domain": "4"
    }
  }
}

Example of Response Body

The following example shows the response document returned in JSON format:

{
  "details": {
    "message": "Submitted job to add storage for service [ServiceName] in domain [DomainName].",
    "jobId": "12997"
  }
}
Back to Top