Provision a New Service Instance

post

/api/v1.1/instances/{identityId}

Provisions a new service instance in a domain.

Request

Supported Media Types
  • application/json
Path Parameters
identityId
Type: string
Required: true
Name of the identity domain for the Oracle Cloud Service account.
Body Parameter
Provision Payload
Root Schema : InstanceProvisionPayload
Type: object
Nested Schema : parameters
Type: array
Groups component-specific attributes in the following categories:
  • WebLogic Server ("type":"weblogic")
  • Oracle Traffic Director ("type":"otd")
Nested Schema : Parameter
Type: object

Response

Supported Media Types
  • application/json
  • text/plain
Default Response
successful operation

Examples

The following example shows how to create an Oracle SOA Cloud Service instance by submitting a POST request on the REST resource using cURL For more information, see Use cURL

See also Exploring the Oracle SOA Cloud Service Console.

cURL Command

curl -i -X POST -u joe@example.com:Welcome123! -d @create.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://api-host/paas/service/soa/api/v1.1/instances/ExampleIdentityDomain
Note:: This example uses the URL prefix for the United States ( soacs). For information about the URL prefixes for other regions of the world, see Send Requests.

Example of Request Body

The following shows an example of the request body in JSON format.

{
  "serviceName": "MyFirstInstance",
  "level": "PAAS",
  "description": "My first instance using the REST API",
  "provisionOTD": true,
  "cloudStorageContainer" : "yourRemoteStorage",
  "publicNetwork":"yourPublicNetwork",
  "parameters": [
    {
      "version": "12.1.3",
      "edition":"SUITE",
      "managedServerCount":"1",
      "templates":"full",
      "adminUserName": "weblogic",
      "adminPassword": "welcome1",
      "connectString" : "yourDBConnectString",
      "dbaName" : "yourDBUsername",
      "dbaPassword" : "yourDBPassword",
      "dbNetwork" : "yourDBNetwork",
      "shape": "oc1m",
      "VMsPublicKey": "ssh-rsa keystring xperiment",
      "type": "weblogic"
    },
    {
      "listenerPortsEnabled": true,
      "loadBalancingPolicy": "LEAST_CONNECTION_COUNT",
      "otdAdminUserName": "otdadmin",
      "otdAdminPassword": "welcome1",
      "shape": "oc3",
      "type": "OTD"
    }
  ]
}

Example of Response Header

The following shows an example of the response header.

The Location header returns the REST resource that can be used to access the status of the create service instance request. For more information, see Get Service Provisioning Status.

HTTP/1.1 100 Continue

HTTP/1.1 202 Accepted
Date: Fri, 23 Jan 2015 22:18:26 GMT
Location: https://api-host/paas/service/soa/api/v1.1/instances/ExampleIdentityDomain/status/create/job/5261
Content-Length: 0
Content-Type: application/json