Create a Service Instance
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/APICS/instances
Request
- application/vnd.com.oracle.oracloud.provisioning.Service+json
-
identityDomainId: string
Name of the identity domain for the API Platform Cloud Service - Classic account.
-
Authorization: string
Base64 encoding of the user name and password of the user making the request. For more information, see Security, Authentication and Authorization.
object
Request Body
-
cloudStorageContainer:
string
Name of the Oracle Storage Cloud Service container used to provide storage for your service instance backups. Use the following format to specify the container name:
<storageservicename>-<storageidentitydomain>/<containername>
. -
cloudStoragePassword:
string
Password for the Oracle Storage Cloud Service administrator.
-
cloudStorageUser:
string
Username for the Oracle Storage Cloud Service administrator.
-
components:
object components
components
-
edition:
string
Edition of the service instance; this value must be
EE
. -
serviceDescription(optional):
string
Free-form text that provides additional information about the service instance.
-
serviceLevel:
string
Service level for the service instance; this value must be
PAAS
. -
serviceName:
string
Name of the API Platform Cloud Service - Classic instance. The service name:
- Must not exceed 50 characters.
- Must start with a letter.
- Must contain only letters, numbers, or hyphens.
- Must not contain any other special characters.
- Must be unique within the identity domain.
-
serviceVersion:
string
The API Platform Cloud Service - Classic software version; this value must be
12cRelease2
. -
subscription:
string
Billing unit. Valid values are:
HOURLY
: Pay only for the number of hours used during your billing period. This is the default.MONTHLY
: Pay one price for the full month irrespective of the number of hours used.
-
vmPublicKeyText:
string
Public key for the secure shell (SSH). This key will be used for authentication when connecting to the API Platform Cloud Service - Classic instance using an SSH client. You generate an SSH public-private key pair using a standard SSH key generation tool. See Accessing a VM Through a Secure Shell (SSH) in Using Oracle API Platform Cloud Service - Classic.
-
vmUser:
string
vm user.
object
-
shape:
string
Desired compute shape. A shape defines the number of Oracle Compute Units (OCPUs) and amount of memory (RAM). For this release, the only supported shape is
oc3
(1 OCPU, 7.5 GB memory).See About Shapes in Using Oracle Compute Cloud Service for more information about shapes.
object
-
adminPassword:
string
Password for WebLogic Server administrator. The password must meet the following requirements:
- Starts with a letter
- Is between 8 and 30 characters long
- Contains letters, at least one number, and optionally, any number of these special characters: dollar sign ($), pound sign (#), and underscore (_)
-
adminUserName:
string
Username for the WebLogic Server administrator. The name must be between 8 and 128 characters long and cannot contain any of the following characters:
- Tab
- Brackets
- Parentheses
- The following special characters: left angle bracket (<), right angle bracket (>), ampersand (&), pound sign (#), pipe symbol (|), and question mark (?).
-
dbaName:
string
Username for the Oracle Database Cloud - Database as a Service instance administrator. This value must be set to a database user with SYSDBA system privileges. You can use the default user
SYS
or a user that has been granted theSYSDBA
privilege. -
dbaPassword:
string
Password for the Oracle Database Cloud - Database as a Service instance administrator.
-
dbServiceName:
string
Name of the Oracle Database Cloud - Databse as a Service instance to be used with the API Platform Cloud Service - Classic instance. The specified database service instance must be running.
-
shape:
string
Desired compute shape. A shape defines the number of Oracle Compute Units (OCPUs) and amount of memory (RAM). For this release, the only supported shape is
oc3
(1 OCPU, 7.5 GB memory).See About Shapes in Using Oracle Compute Cloud Service for more information about shapes.
Response
202 Response
-
Location: string
A REST URI you can use to check the progress and completion of the instance creation operation, as described in View the Job Status of an Operation.
Examples
The following example shows how to create an Oracle API Platform Cloud Service - Classic instance by submitting a POST request on the REST resource using cURL. For more information about cURL, see cURL Examples.
curl -i -X POST -u apicsadmin:password -H "Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json" -d @payload.json https://example.com:7103/paas/api/v1.1/instancemgmt/apics/services/APICS/instances
Example of Request Body
The following shows a request body, in JSON format.
{ "serviceName": "apics", "serviceLevel": "PAAS", "subscription": "MONTHLY", "serviceDescription": "Description of my API Platform Cloud Service instance.", "serviceVersion": "12cRelease2 ", "edition": "EE", "noOfGatewayLicenses":"1", "cloudStorageUser": "apics.Storageadmin", "cloudStoragePassword": "password", "cloudStorageContainer": "Storage-apics/APICSBackup", "vmPublicKeyText": "Token key", "vmUser": "opc", "components": { "WLS": { "shape": "oc3", "adminUserName": "Admin", "adminPassword": "password", "dbServiceName": "mpadb4", "dbaName": "SYS", "dbaPassword": "Password_1" }, "OTD": { "shape": "oc3" } } }
Example of Response Headers
The following shows an example of the response headers.
HTTP/1.1 202 Accepted Date: Wed, 23 Nov 2016 08:54:39 GMT Transfer-Encoding: chunked Location: https://example.com:7103/paas/api/v1.1/activitylog/apics/job/26336 Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json Access-Control-Allow-Headers: Content-Type, api_key, Authorization Service-URI: https://example.com:7103/paas/api/v1.1/instancemgmt/apics/services/APICS/instances/apics Retry-After: 60 Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD X-ORACLE-DMS-ECID: 7077e58cc81a37d2:-4cd90f8:15878a7e3f0:-8000-0000000000005d62 Access-Control-Allow-Origin: * X-Frame-Options: DENY
Example of Response Body
The following example shows the contents of the response body in JSON format.
{ "details": { "message": "Submitted job to create service [apics] in domain [apics].", "jobId": "26336" } }