Create a Service Instance on Oracle Cloud Infrastructure Classic

You can create an Oracle Java Cloud Service instance on Oracle Cloud Infrastructure Classic using the REST API as described in the following procedure.

Note:

  • Be sure to complete all required prerequisite tasks as described in Quick Start.

  • The procedure assumes an infrastructure schema database deployment on Oracle Database Cloud Service has been created.

  • On accounts that are integrated with Oracle Identity Cloud Service, the identity domain ID is the Identity Cloud Service tenant name. This tenant name begins with the characters idcs-followed by a string of number and letters (for example, idcs-98888f7964454b658ac6d2f625b29030). Access the Oracle Identity Cloud Service Console in a browser to find the tenant name in the URL. You can also find the name when you sign in to your Oracle Cloud account, navigate to Identity and then select Federation.

  • The cURL command examples in this topic use the URL structure https://rest_server_url/resource-path, where rest_server_url is the REST server to contact for your identity domain. See Send Requests.

Adding a caching (data grid) cluster during provisioning is optional.

Adding a load balancer is also optional. You can enable Oracle Traffic Director (OTD) as a load balancer that you patch and maintain yourself. Alternatively, you can add an Oracle-managed load balancer that runs on Oracle Cloud Infrastructure Load Balancing Classic, but only by enabling Oracle Identity Cloud Service for user authentication. When Oracle Identity Cloud Service is enabled during provisioning, the Oracle-managed load balancer is automatically configured for you.

To create a service instance on Oracle Cloud Infrastructure Classic using the REST API:

  1. Before creating an Oracle Java Cloud Service instance, review the service instances that currently exist to ensure the name of your new service instance is unique.
    curl -i -X GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances
    

    Specify the following options on the cURL command line:

    • -i option to include the HTTP header in the output. This option is optional.

    • -X option to indicate the type of request (GET).

    • -u option to specify the user name and password for the Oracle Java Cloud Service account for authentication.

    • -H to define a custom header, X-ID-TENANT-NAME, to identify the identity domain ID.

    For more information, see View All Service Instances.

    The following shows a partial example of a response body. serviceName shows the service name for an Oracle Java Cloud service instance.

    {
      "services":
      {
        "MyFirstInstance":
        {
          "serviceId":811,
          "serviceName":"MyFirstInstance",
          "serviceType":"JaaS",
          "domainName":"ExampleIdentityDomain",
          "serviceVersion":"12cRelease214",
          "releaseVersion":"12.2.1.4.201102",
          "baseReleaseVersion": "12.2.1.4.201102",
          "metaVersion": "18.3.6-1810112311",
          "originalMetaVersion": "18.3.6-1810042111",
          "serviceLevel":"PAAS",
          ...
          "components":
          {
            ...
          },
          "region":"ExampleRegion",
          "availabilityDomain":"ExampleAD",
          "patching":
          {
            "currentOperation":{"operation":"NONE"},
            "updateStatus":"NORMAL_PENDING",
            "totalAvailablePatches":2
          }
        },
        "MySecondInstance":
        {
          "serviceId":1024,
          "serviceName":"MySecondInstance",
          ...
        }
      }
    }
  2. Create a JSON document, create.json, that defines the details of the service instance.

    The following shows an example of a request payload to provision a service instance on Oracle Cloud Infrastructure Classic. In this example:

    • Service instance is named ExampleInstance.

    • Service level is PAAS.

    • Software installed is WebLogic Server Suite Edition (SUITE), service version is 12cRelease214.

    • The application cluster name is configured as AppCluster.

    • Two Managed Servers are configured within the application cluster.

    • The caching (data grid) cluster name is configured as DgCluster.

    • One Managed Server is configured within the caching cluster.

    • Oracle Identity Cloud Service is enabled for user authentication. An Oracle-managed load balancer comes with Oracle Identity Cloud Service.

    • Compute shape for all nodes in the service instance is 1 OCPU and 7.5 GB memory (OC3).

    {
        "backupDestination" : "BOTH",
        "cloudStorageContainer" : "yourStorageContainerOrBucket",
        "cloudStorageUser" : "yourStorageUserName",
        "cloudStoragePassword" : "yourStoragePassword",
        "cloudStorageContainerAutoGenerate" : true,
        "serviceDescription" : "My service instance description",
        "serviceLevel" : "PAAS",
        "serviceName" : "ExampleInstance",
        "edition" : "SUITE",
        "serviceVersion" : "12cRelease214",
        "meteringFrequency" : "HOURLY",
        "enableNotification" : true,
        "notificationEmail" : "username@usercompany.com",
        "provisionOTD" : false,
        "useIdentityService" : true,
        "enableAdminConsole" : true,
        "adminConsoleAccessCIDRRange":"10.0.0.0/0",
        "vmPublicKeyText" : "yourSSHPublicKeyString",
        "region" : "uscom-central-1",
        "components" : {
            "WLS" : {
                "clusters" : [
                    {
                        "clusterName" : "AppCluster",
                        "type": "APPLICATION_CLUSTER",
                        "serverCount" : 2,
                        "shape" : "oc3"
                        "pathPrefixes" : ["/myapp1"]
                    },
                    {
                        "clusterName" : "DgCluster",
                        "type": "CACHING_CLUSTER",
                        "serverCount" : 1,
                        "serversPerNode" : 1,
                        "shape" : "oc3"
                    }
                ],
                "adminUserName" : "yourWLSAdminUserName",
                "adminPassword" : "yourWLSAdminPassword",
                "sampleAppDeploymentRequested" : true,
                "domainMode" : "PRODUCTION",
                "dbServiceName" : "yourInfraSchemaDbDeployment",
                "dbaName" : "yourDBUserName",
                "dbaPassword" : "yourInfraSchemaDbDeploymentPassword"
            }
        }
    }

    If you are not enabling Oracle Identity Cloud Service (and hence the Oracle-managed load balancer), you can enable and configure a user-managed load balancer by setting provisionOTD to true and adding the OTD component to your request document. For example:

            "OTD": {
                "adminUserName" : "yourOTDUserName",
                "adminPassword" : "yourOTDPassword",
                "listenerPortEnabled" : true,
                "listenerPort" : "8080",
                "securedListenerPort" : "8081",
                "loadBalancingPolicy" : "LEAST_CONNECTION_COUNT",
                "haEnabled": "false",
                "adminPort" : "8989",
                "shape" : "oc3"
            }

    For other parameters, see Create a Service Instance.

  3. Create the Oracle Java Cloud Service instance, passing the JSON document defined in step 2.
    curl -i -X POST -u username:password -d @create.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances
    

    Specify the following options on the cURL command line:

    • -i option to include the HTTP header in the output. This option is optional.

    • -X option to indicate the type of request (POST).

    • -u option to specify the user name and password for the Oracle Java Cloud Service account for authentication.

    • -d option to identify the request document, in JSON format, on the local machine (create.json).

    • -H to identify the content type as application/json and define a custom header, X-ID-TENANT-NAME, to identify the identity domain ID.

    The following shows an example of the response header and body.

    HTTP/1.1 100 Continue
    
    HTTP/1.1 202 Accepted
    Date: Tue, 03 Oct 2017 18:36:52 GMT
    Location: https://rest_server_url/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/55221
    Content-Length: 142
    Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json
    Access-Control-Allow-Headers: Content-Type, api_key, Authorization, X-ID-TENANT-NAME, X-USER-IDENTITY-DOMAIN-NAME
    Service-URI: https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/service
    s/jaas/instances/ExampleInstance
    Retry-After: 60
    Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
    X-ORACLE-DMS-ECID: 361df08f-f501-4390-972e-de4858acfe66-0003dd7a
    Access-Control-Allow-Origin: *
    X-Frame-Options: DENY
    
    {
        "details":
        {
            "message":"Submitted job to create service [ExampleInstance] in domain [ExampleIdentityDomain].",
            "jobId":"55221"
        }
    }
  4. Check the status of the service instance creation operation using the resource URI returned in the Location header. For more information, see View the Status of an Operation by Job Id.
    curl -i -X GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/55221
    

    Specify the following options on the cURL command line:

    • -i option to include the HTTP header in the output. This option is optional.

    • -X option to indicate the type of request (GET).

    • -u option to specify the user name and password for the Oracle Java Cloud Service account for authentication.

    • -H to define a custom header, X-ID-TENANT-NAME, to identify the identity domain ID.

    The following shows an example of the response body in JSON format:

    {
        "activityLogId":94117,
        "serviceName":"ExampleInstance",
        "serviceType":"jaas",
        "identityDomain":"ExampleIdentityDomain",
        "serviceId":111,
        "jobId":55221,
        "startDate":"2017-10-03T18:37:09.912+0000",
        "status":"RUNNING",
        "operationId":111,
        "operationType":"CREATE_SERVICE",
        "summaryMessage":"CREATE_SERVICE",
        "authDomain":"ExampleIdentityDomain",
        "authUser":"username",
        "initiatedBy":"USER",
        "messages":[
        {
            "activityDate":"2017-10-03T18:37:09.912+0000",
            "message":"Activity Submitted"
        },
        {
            "activityDate":"2017-10-03T18:37:10.035+0000",
            "message":"Activity Started"
        },
        {
            "activityDate":"2017-10-03T18:37:10.216+0000",
            "message":"Started operation to create service [ExampleInstance] in identity domain [ExampleIdentityDomain]."
        },
        {
            "activityDate":"2017-10-03T18:37:10.601+0000",
            "message":"Started pre-check for load balancer configuration for service [ExampleInstance]."
        },
        {
            "activityDate":"2017-10-03T18:37:11.432+0000",
            "message":"Completed pre-check for load balancer configuration for service [ExampleInstance]."
        },
        {
            "activityDate":"2017-10-03T18:37:22.449+0000",
            "message":"Creating service [ExampleInstance] resources [exampleinstance-wls-3,exampleinstance-wls-4,exampleinstance-wls-
    1,exampleinstance-wls-2]."
        }]
    }
  5. Once the service instance is created and running, view the service instance details.
    curl -i -X GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance
    

    Specify the following options on the cURL command line:

    • -i option to include the HTTP header in the output. This option is optional.

    • -X option to indicate the type of request (GET).

    • -u option to specify the user name and password for the Oracle Java Cloud Service account for authentication.

    • -H to define a custom header, X-ID-TENANT-NAME, to identify the identity domain ID.

    For more information, see View a Service Instance.

    The following shows an example of the response output in JSON format. Your response output will differ depending on your Oracle Java Cloud Service release and environment, and the configuration of the service instance you created.

    {
       "serviceId":1138830,
       "serviceUuid":"4B3B89A6458642ED80DCCC464653636C",
       "serviceLogicalUuid":"SOME1LONG2STRING",
       "serviceName":"ExampleInstance",
       "serviceType":"JaaS",
       "domainName":"ExampleIdentityDomain",
       "serviceVersion":"12cRelease214",
       "releaseVersion":"12.2.1.4.201102",
       "baseReleaseVersion":"12.2.1.4.201102",
       "metaVersion":"18.3.6-1810112311",
       "originalMetaVersion":"18.3.6-1810112311",
       "serviceLevel":"PAAS",
       "subscription":"HOURLY",
       "meteringFrequency":"HOURLY",
       "edition":"SUITE",
       "totalSSDStorage":0,
       "storageContainer":"https:\/\/yourstorageurlcontainer",
       "state":"READY",
       "serviceStateDisplayName":"Ready",
       "clone":false,
       "creator":"username",
       "creationDate":"2018-10-25T22:49:12.469+0000",
       "serviceEntitlementId":"588077784",
       "isBYOL":false,
       "isSharedManaged":false,
       "isNonSharedmanaged":true,
       "isDefaultManaged":false,
       "isManaged":false,
       "isOAuthForStorageConfigured":false,
       "isMultipleSite":false,
       "iaasProvider":"NIMBULA",
       "keyComponentInstance":"WLS",
       "adminHostName":"exampleinstance-wls-1",
       "adminFqHostName":"exampleinstance-wls-1.compute-588077782.oraclecloud.internal",
       "attributes":{
          "SAMPLE_ROOT":{
             "displayName":"Open Sample Application",
             "type":"STRING",
             "value":"https:\/\/ExampleInstance-exampleaccount.uscom-central-1.oraclecloud.com:443\/sample-app",
             "displayValue":"https:\/\/ExampleInstance-exampleaccount.uscom-central-1.oraclecloud.com:443\/sample-app",
             "isKeyBinding":false
          },
          "FMW_ROOT":{
             "displayName":"Open Fusion Middleware Control Console",
             "type":"URL",
             "value":"https:\/\/youripaddress:7002\/em",
             "displayValue":"https:\/\/youripaddress:7002\/em",
             "isKeyBinding":true
          },
          "WLS_ROOT":{
             "displayName":"Open WebLogic Server Administration Console",
             "type":"URL",
             "value":"https:\/\/youripaddress:7002\/console",
             "displayValue":"https:\/\/youripaddress:7002\/console",
             "isKeyBinding":true
          },
          "jdkVersion":{
             "displayName":"JDK",
             "type":"STRING",
             "value":"1.8.0_181",
             "displayValue":"1.8.0_181",
             "isKeyBinding":false
          },
          "cloudStorageContainer":{
             "displayName":"Object Storage Container",
             "type":"STRING",
             "value":"https:\/\/yourstorageurlcontainer",
             "displayValue":"https:\/\/yourstorageurlcontainer",
             "isKeyBinding":false
          },
          "BACKUP_DESTINATION":{
             "displayName":"Backup Destination",
             "type":"STRING",
             "value":"BOTH",
             "displayValue":"Both Remote and Disk Storage",
             "isKeyBinding":false
          }
       },
       "tags":{
          "items":[
    
          ],
          "totalResults":0,
          "hasMore":false
       },
       "components":{
          "WLS":{
             "serviceId":1138830,
             "componentId":1198820,
             "state":"READY",
             "componentStateDisplayName":"Ready",
             "version":"12.2.1.2.16",
             "componentType":"WLS",
             "creationDate":"2018-10-25T22:49:12.000+0000",
             "instanceName":"WLS",
             "instanceRole":"PRIMARY",
             "isKeyComponent":true,
             "region":"uscom-central-1",
             "attributes":{
                "upperStackProductName":{
                   "displayName":"Fusion Middleware",
                   "type":"STRING",
                   "value":"",
                   "displayValue":"",
                   "isKeyBinding":false
                }
             },
             "vmInstances":{
                "exampleinstance-wls-3":{
                   "vmId":1497189,
                   "id":1497189,
                   "uuid":"FE4BD9D4A7324AD19574247F508A84E0",
                   "hostName":"exampleinstance-wls-3",
                   "fqHostName":"exampleinstance-wls-3.compute-588077782.oraclecloud.internal",
                   "label":"ExampleInstance wls 3",
                   "ipAddress":"youripaddress",
                   "publicIpAddress":"youripaddress",
                   "usageType":"MANAGED_SERVER",
                   "role":"MANAGED_SERVER",
                   "componentType":"WLS",
                   "state":"READY",
                   "vmStateDisplayName":"Ready",
                   "shapeId":"oc3",
                   "totalStorage":58368,
                   "creationDate":"2018-10-25T22:49:12.000+0000",
                   "isAdminNode":false,
                   "servers":{
                      "ExampleI_server_3":{
                         "serverId":893496,
                         "serverName":"ExampleI_server_3",
                         "serverType":"MS",
                         "serverRole":"JAAS_ROLE",
                         "state":"READY",
                         "serverStateDisplayName":"Ready",
                         "creationDate":"2018-10-25T22:49:11.000+0000",
                         "attributes":{
    
                         },
                         "isPermanent":false
                      }
                   },
                   "storageVolumes":{
                      "domain":{
                         "name":"domain",
                         "size":"10GB",
                         "partitions":"1",
                         "displayName":"Domain Storage",
                         "isUserVisible":true
                      },
                      "tools":{
                         "name":"tools",
                         "size":"10GB",
                         "partitions":"1",
                         "isUserVisible":false
                      },
                      "jdk":{
                         "name":"jdk",
                         "size":"2GB",
                         "partitions":"0",
                         "isUserVisible":false
                      },
                      "boot":{
                         "name":"boot",
                         "size":"25GB",
                         "partitions":"1",
                         "isUserVisible":false
                      },
                      "middleware":{
                         "name":"middleware",
                         "size":"10GB",
                         "partitions":"0",
                         "displayName":"Middleware Storage",
                         "isUserVisible":true
                      }
                   }
                },
                "exampleinstance-wls-1":{
                   "vmId":1497188,
                   "id":1497188,
                   "uuid":"52477FFE8FBC40F392E7C3C9B41A86BB",
                   "hostName":"exampleinstance-wls-1",
                   "fqHostName":"exampleinstance-wls-1.compute-588077782.oraclecloud.internal",
                   "label":"ExampleInstance wls 1",
                   "ipAddress":"youripaddress",
                   "publicIpAddress":"youripaddress",
                   "usageType":"ADMIN_SERVER",
                   "role":"ADMIN_SERVER",
                   "componentType":"WLS",
                   "state":"READY",
                   "vmStateDisplayName":"Ready",
                   "shapeId":"oc3",
                   "totalStorage":78848,
                   "creationDate":"2018-10-25T22:49:12.000+0000",
                   "isAdminNode":true,
                   "servers":{
                      "ExampleI_server_2":{
                         "serverId":893495,
                         "serverName":"ExampleI_server_2",
                         "serverType":"MS",
                         "serverRole":"JAAS_ROLE",
                         "state":"READY",
                         "serverStateDisplayName":"Ready",
                         "creationDate":"2018-10-25T22:49:11.000+0000",
                         "attributes":{
    
                         },
                         "isPermanent":false
                      },
                      "ExampleI_adminserver":{
                         "serverId":893494,
                         "serverName":"ExampleI_adminserver",
                         "serverType":"ADMIN",
                         "serverRole":"JAAS_ROLE",
                         "state":"READY",
                         "serverStateDisplayName":"Ready",
                         "creationDate":"2018-10-25T22:49:11.000+0000",
                         "attributes":{
    
                         },
                         "isPermanent":false
                      }
                   },
                   "storageVolumes":{
                      "domain":{
                         "name":"domain",
                         "size":"10GB",
                         "partitions":"1",
                         "displayName":"Domain Storage",
                         "isUserVisible":true
                      },
                      "tools":{
                         "name":"tools",
                         "size":"10GB",
                         "partitions":"1",
                         "isUserVisible":false
                      },
                      "jdk":{
                         "name":"jdk",
                         "size":"2GB",
                         "partitions":"0",
                         "isUserVisible":false
                      },
                      "boot":{
                         "name":"boot",
                         "size":"25GB",
                         "partitions":"1",
                         "isUserVisible":false
                      },
                      "middleware":{
                         "name":"middleware",
                         "size":"10GB",
                         "partitions":"0",
                         "displayName":"Middleware Storage",
                         "isUserVisible":true
                      },
                      "backup":{
                         "name":"backup",
                         "size":"20GB",
                         "partitions":"1",
                         "displayName":"Backup Storage",
                         "isUserVisible":true
                      }
                   }
                },
                "exampleinstance-wls-2":{
                   "vmId":1497190,
                   "id":1497190,
                   "uuid":"CBDFE5BD246A455AB4AA2675C3FB84B3",
                   "hostName":"exampleinstance-wls-2",
                   "fqHostName":"exampleinstance-wls-2.compute-588077782.oraclecloud.internal",
                   "label":"ExampleInstance wls 2",
                   "ipAddress":"youripaddress",
                   "publicIpAddress":"youripaddress",
                   "usageType":"DG_SERVER",
                   "role":"DG_SERVER",
                   "componentType":"WLS",
                   "state":"READY",
                   "vmStateDisplayName":"Ready",
                   "shapeId":"oc3",
                   "totalStorage":58368,
                   "creationDate":"2018-10-25T22:49:12.000+0000",
                   "isAdminNode":false,
                   "servers":{
                      "ExampleI_server_1":{
                         "serverId":893497,
                         "serverName":"ExampleI_server_1",
                         "serverType":"MS",
                         "serverRole":"JAAS_ROLE",
                         "state":"READY",
                         "serverStateDisplayName":"Ready",
                         "creationDate":"2018-10-25T22:49:11.000+0000",
                         "attributes":{
    
                         },
                         "isPermanent":false
                      }
                   },
                   "storageVolumes":{
                      "domain":{
                         "name":"domain",
                         "size":"10GB",
                         "partitions":"1",
                         "displayName":"Domain Storage",
                         "isUserVisible":true
                      },
                      "tools":{
                         "name":"tools",
                         "size":"10GB",
                         "partitions":"1",
                         "isUserVisible":false
                      },
                      "jdk":{
                         "name":"jdk",
                         "size":"2GB",
                         "partitions":"0",
                         "isUserVisible":false
                      },
                      "boot":{
                         "name":"boot",
                         "size":"25GB",
                         "partitions":"1",
                         "isUserVisible":false
                      },
                      "middleware":{
                         "name":"middleware",
                         "size":"10GB",
                         "partitions":"0",
                         "displayName":"Middleware Storage",
                         "isUserVisible":true
                      }
                   }
                }
             },
             "adminHostName":"exampleinstance-wls-1",
             "adminFqHostName":"exampleinstance-wls-1.compute-588077782.oraclecloud.internal",
             "storageVolumes":{
                "domain":{
                   "name":"domain",
                   "size":"10G",
                   "mount":"\/u01\/data\/domains"
                },
                "tools":{
                   "name":"tools",
                   "size":"10G",
                   "mount":"\/u01\/app\/oracle\/tools"
                },
                "jdk":{
                   "name":"jdk",
                   "size":"2G",
                   "mount":"\/u01\/jdk"
                },
                "boot":{
                   "name":"boot",
                   "size":"25G",
                   "mount":"\/"
                },
                "middleware":{
                   "name":"middleware",
                   "size":"10G",
                   "mount":"\/u01\/app\/oracle\/middleware"
                },
                "backup":{
                   "name":"backup",
                   "size":"20G",
                   "mount":"\/u01\/data\/backup"
                }
             },
             "hosts":{
                "userHosts":{
                   "exampleinstance-wls-3":{
                      "vmId":1497189,
                      "id":1497189,
                      "uuid":"FE4BD9D4A7324AD19574247F508A84E0",
                      "hostName":"exampleinstance-wls-3",
                      "fqHostName":"exampleinstance-wls-3.compute-588077782.oraclecloud.internal",
                      "label":"ExampleInstance wls 3",
                      "ipAddress":"youripaddress",
                      "publicIpAddress":"youripaddress",
                      "usageType":"MANAGED_SERVER",
                      "role":"MANAGED_SERVER",
                      "componentType":"WLS",
                      "state":"READY",
                      "vmStateDisplayName":"Ready",
                      "shapeId":"oc3",
                      "totalStorage":58368,
                      "creationDate":"2018-10-25T22:49:12.000+0000",
                      "isAdminNode":false,
                      "servers":{
                         "ExampleI_server_3":{
                            "serverId":893496,
                            "serverName":"ExampleI_server_3",
                            "serverType":"MS",
                            "serverRole":"JAAS_ROLE",
                            "state":"READY",
                            "serverStateDisplayName":"Ready",
                            "creationDate":"2018-10-25T22:49:11.000+0000",
                            "attributes":{
                               "additional_jvm_args":"  -Dtangosol.coherence.transport.reliable=tmb -Dtangosol.coherence.socketprovider=tcp",
                               "port":"9073",
                               "role":"managed",
                               "server_type":"WLS",
                               "heap_size":"2048",
                               "ccsr":"DataGridConfig",
                               "max_metaspace_size":"2048",
                               "cluster":"AppCluster",
                               "template":"ExampleI_cluster_Template",
                               "ssl_port":"9074",
                               "heap_start":"256"
                            }
                         }
                      },
                      "storageVolumes":{
                         "domain":{
                            "name":"domain",
                            "size":"10GB",
                            "partitions":"1"
                         },
                         "tools":{
                            "name":"tools",
                            "size":"10GB",
                            "partitions":"1"
                         },
                         "jdk":{
                            "name":"jdk",
                            "size":"2GB",
                            "partitions":"0"
                         },
                         "boot":{
                            "name":"boot",
                            "size":"25GB",
                            "partitions":"1"
                         },
                         "middleware":{
                            "name":"middleware",
                            "size":"10GB",
                            "partitions":"0"
                         }
                      }
                   },
                   "exampleinstance-wls-1":{
                      "vmId":1497188,
                      "id":1497188,
                      "uuid":"52477FFE8FBC40F392E7C3C9B41A86BB",
                      "hostName":"exampleinstance-wls-1",
                      "fqHostName":"exampleinstance-wls-1.compute-588077782.oraclecloud.internal",
                      "label":"ExampleInstance wls 1",
                      "ipAddress":"youripaddress",
                      "publicIpAddress":"youripaddress",
                      "usageType":"ADMIN_SERVER",
                      "role":"ADMIN_SERVER",
                      "componentType":"WLS",
                      "state":"READY",
                      "vmStateDisplayName":"Ready",
                      "shapeId":"oc3",
                      "totalStorage":78848,
                      "creationDate":"2018-10-25T22:49:12.000+0000",
                      "isAdminNode":true,
                      "servers":{
                         "ExampleI_server_2":{
                            "serverId":893495,
                            "serverName":"ExampleI_server_2",
                            "serverType":"MS",
                            "serverRole":"JAAS_ROLE",
                            "state":"READY",
                            "serverStateDisplayName":"Ready",
                            "creationDate":"2018-10-25T22:49:11.000+0000",
                            "attributes":{
                               "additional_jvm_args":"  -Dtangosol.coherence.transport.reliable=tmb -Dtangosol.coherence.socketprovider=tcp",
                               "port":"9073",
                               "role":"managed",
                               "server_type":"WLS",
                               "heap_size":"2048",
                               "ccsr":"DataGridConfig",
                               "max_metaspace_size":"2048",
                               "cluster":"AppCluster",
                               "template":"ExampleI_cluster_Template",
                               "ssl_port":"9074",
                               "heap_start":"256"
                            }
                         },
                         "ExampleI_adminserver":{
                            "serverId":893494,
                            "serverName":"ExampleI_adminserver",
                            "serverType":"ADMIN",
                            "serverRole":"JAAS_ROLE",
                            "state":"READY",
                            "serverStateDisplayName":"Ready",
                            "creationDate":"2018-10-25T22:49:11.000+0000",
                            "attributes":{
                               "server_type":"WLS",
                               "ssl_port":"9072",
                               "port":"9071",
                               "role":"admin",
                               "max_metaspace_size":"512",
                               "heap_start":"256",
                               "additional_jvm_args":" ",
                               "heap_size":"1536"
                            }
                         }
                      },
                      "storageVolumes":{
                         "domain":{
                            "name":"domain",
                            "size":"10GB",
                            "partitions":"1"
                         },
                         "tools":{
                            "name":"tools",
                            "size":"10GB",
                            "partitions":"1"
                         },
                         "jdk":{
                            "name":"jdk",
                            "size":"2GB",
                            "partitions":"0"
                         },
                         "boot":{
                            "name":"boot",
                            "size":"25GB",
                            "partitions":"1"
                         },
                         "middleware":{
                            "name":"middleware",
                            "size":"10GB",
                            "partitions":"0"
                         },
                         "backup":{
                            "name":"backup",
                            "size":"20GB",
                            "partitions":"1"
                         }
                      }
                   },
                   "exampleinstance-wls-2":{
                      "vmId":1497190,
                      "id":1497190,
                      "uuid":"CBDFE5BD246A455AB4AA2675C3FB84B3",
                      "hostName":"exampleinstance-wls-2",
                      "fqHostName":"exampleinstance-wls-2.compute-588077782.oraclecloud.internal",
                      "label":"ExampleInstance wls 2",
                      "ipAddress":"youripaddress",
                      "publicIpAddress":"youripaddress",
                      "usageType":"DG_SERVER",
                      "role":"DG_SERVER",
                      "componentType":"WLS",
                      "state":"READY",
                      "vmStateDisplayName":"Ready",
                      "shapeId":"oc3",
                      "totalStorage":58368,
                      "creationDate":"2018-10-25T22:49:12.000+0000",
                      "isAdminNode":false,
                      "servers":{
                         "ExampleI_server_1":{
                            "serverId":893497,
                            "serverName":"ExampleI_server_1",
                            "serverType":"MS",
                            "serverRole":"JAAS_ROLE",
                            "state":"READY",
                            "serverStateDisplayName":"Ready",
                            "creationDate":"2018-10-25T22:49:11.000+0000",
                            "attributes":{
                               "additional_jvm_args":" -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -server -XX:+UseConcMarkSweepGC  -Dtangosol.coherence.transport.reliable=tmb -Dtangosol.coherence.socketprovider=tcp",
                               "port":"9073",
                               "role":"managed",
                               "server_type":"DG",
                               "heap_size":"7680",
                               "ccsr":"DataGridConfig",
                               "max_metaspace_size":"2048",
                               "cluster":"DgCluster",
                               "template":"DataGridServer-Template",
                               "ssl_port":"9074",
                               "heap_start":"256"
                            }
                         }
                      },
                      "storageVolumes":{
                         "domain":{
                            "name":"domain",
                            "size":"10GB",
                            "partitions":"1"
                         },
                         "tools":{
                            "name":"tools",
                            "size":"10GB",
                            "partitions":"1"
                         },
                         "jdk":{
                            "name":"jdk",
                            "size":"2GB",
                            "partitions":"0"
                         },
                         "boot":{
                            "name":"boot",
                            "size":"25GB",
                            "partitions":"1"
                         },
                         "middleware":{
                            "name":"middleware",
                            "size":"10GB",
                            "partitions":"0"
                         }
                      }
                   }
                }
             },
             "paasServers":{
                "ExampleI_server_2":{
                   "serverId":893495,
                   "serverName":"ExampleI_server_2",
                   "serverType":"MS",
                   "serverRole":"JAAS_ROLE",
                   "state":"READY",
                   "serverStateDisplayName":"Ready",
                   "creationDate":"2018-10-25T22:49:11.000+0000",
                   "attributes":{
                      "additional_jvm_args":"  -Dtangosol.coherence.transport.reliable=tmb -Dtangosol.coherence.socketprovider=tcp",
                      "port":"9073",
                      "role":"managed",
                      "server_type":"WLS",
                      "heap_size":"2048",
                      "ccsr":"DataGridConfig",
                      "max_metaspace_size":"2048",
                      "cluster":"AppCluster",
                      "template":"ExampleI_cluster_Template",
                      "ssl_port":"9074",
                      "heap_start":"256"
                   }
                },
                "ExampleI_server_3":{
                   "serverId":893496,
                   "serverName":"ExampleI_server_3",
                   "serverType":"MS",
                   "serverRole":"JAAS_ROLE",
                   "state":"READY",
                   "serverStateDisplayName":"Ready",
                   "creationDate":"2018-10-25T22:49:11.000+0000",
                   "attributes":{
                      "additional_jvm_args":"  -Dtangosol.coherence.transport.reliable=tmb -Dtangosol.coherence.socketprovider=tcp",
                      "port":"9073",
                      "role":"managed",
                      "server_type":"WLS",
                      "heap_size":"2048",
                      "ccsr":"DataGridConfig",
                      "max_metaspace_size":"2048",
                      "cluster":"AppCluster",
                      "template":"ExampleI_cluster_Template",
                      "ssl_port":"9074",
                      "heap_start":"256"
                   }
                },
                "ExampleI_server_1":{
                   "serverId":893497,
                   "serverName":"ExampleI_server_1",
                   "serverType":"MS",
                   "serverRole":"JAAS_ROLE",
                   "state":"READY",
                   "serverStateDisplayName":"Ready",
                   "creationDate":"2018-10-25T22:49:11.000+0000",
                   "attributes":{
                      "additional_jvm_args":" -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -server -XX:+UseConcMarkSweepGC  -Dtangosol.coherence.transport.reliable=tmb -Dtangosol.coherence.socketprovider=tcp",
                      "port":"9073",
                      "role":"managed",
                      "server_type":"DG",
                      "heap_size":"7680",
                      "ccsr":"DataGridConfig",
                      "max_metaspace_size":"2048",
                      "cluster":"DgCluster",
                      "template":"DataGridServer-Template",
                      "ssl_port":"9074",
                      "heap_start":"256"
                   }
                },
                "ExampleI_adminserver":{
                   "serverId":893494,
                   "serverName":"ExampleI_adminserver",
                   "serverType":"ADMIN",
                   "serverRole":"JAAS_ROLE",
                   "state":"READY",
                   "serverStateDisplayName":"Ready",
                   "creationDate":"2018-10-25T22:49:11.000+0000",
                   "attributes":{
                      "server_type":"WLS",
                      "ssl_port":"9072",
                      "port":"9071",
                      "role":"admin",
                      "max_metaspace_size":"512",
                      "heap_start":"256",
                      "additional_jvm_args":" ",
                      "heap_size":"1536"
                   }
                }
             },
             "clusters":{
                "AppCluster":{
                   "clusterId":1138830,
                   "clusterName":"AppCluster",
                   "clusterType":"PAAS",
                   "profile":"{\"clusterType\":\"APPLICATION_CLUSTER\",\"clusterName\":\"AppCluster\",\"pathPrefixes\":\"[\\\"\\\\\\\/myapp1\\\"]\",\"serverCount\":\"2\",\"shape\":\"oc3\",\"type\":\"APPLICATION_CLUSTER\",\"default\":\"true\",\"external\":\"true\"}",
                   "creationDate":"2018-10-25T22:49:12.470+0000",
                   "paasServers":{
                      "ExampleI_server_3":{
                         "serverId":893496,
                         "serverName":"ExampleI_server_3",
                         "serverType":"MS",
                         "serverRole":"JAAS_ROLE",
                         "state":"READY",
                         "serverStateDisplayName":"Ready",
                         "creationDate":"2018-10-25T22:49:11.000+0000",
                         "attributes":{
                            "additional_jvm_args":"  -Dtangosol.coherence.transport.reliable=tmb -Dtangosol.coherence.socketprovider=tcp",
                            "port":"9073",
                            "role":"managed",
                            "server_type":"WLS",
                            "heap_size":"2048",
                            "ccsr":"DataGridConfig",
                            "max_metaspace_size":"2048",
                            "cluster":"AppCluster",
                            "template":"ExampleI_cluster_Template",
                            "ssl_port":"9074",
                            "heap_start":"256"
                         }
                      },
                      "ExampleI_server_2":{
                         "serverId":893495,
                         "serverName":"ExampleI_server_2",
                         "serverType":"MS",
                         "serverRole":"JAAS_ROLE",
                         "state":"READY",
                         "serverStateDisplayName":"Ready",
                         "creationDate":"2018-10-25T22:49:11.000+0000",
                         "attributes":{
                            "additional_jvm_args":"  -Dtangosol.coherence.transport.reliable=tmb -Dtangosol.coherence.socketprovider=tcp",
                            "port":"9073",
                            "role":"managed",
                            "server_type":"WLS",
                            "heap_size":"2048",
                            "ccsr":"DataGridConfig",
                            "max_metaspace_size":"2048",
                            "cluster":"AppCluster",
                            "template":"ExampleI_cluster_Template",
                            "ssl_port":"9074",
                            "heap_start":"256"
                         }
                      }
                   }
                },
                "DgCluster":{
                   "clusterId":1138830,
                   "clusterName":"DgCluster",
                   "clusterType":"PAAS",
                   "profile":"{\"clusterType\":\"CACHING_CLUSTER\",\"clusterName\":\"DgCluster\",\"serverCount\":\"1\",\"serversPerNode\":\"1\",\"shape\":\"oc3\",\"type\":\"CACHING_CLUSTER\",\"external\":\"false\"}",
                   "creationDate":"2018-10-25T22:49:12.470+0000",
                   "paasServers":{
                      "ExampleI_server_1":{
                         "serverId":893497,
                         "serverName":"ExampleI_server_1",
                         "serverType":"MS",
                         "serverRole":"JAAS_ROLE",
                         "state":"READY",
                         "serverStateDisplayName":"Ready",
                         "creationDate":"2018-10-25T22:49:11.000+0000",
                         "attributes":{
                            "additional_jvm_args":" -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -server -XX:+UseConcMarkSweepGC  -Dtangosol.coherence.transport.reliable=tmb -Dtangosol.coherence.socketprovider=tcp",
                            "port":"9073",
                            "role":"managed",
                            "server_type":"DG",
                            "heap_size":"7680",
                            "ccsr":"DataGridConfig",
                            "max_metaspace_size":"2048",
                            "cluster":"DgCluster",
                            "template":"DataGridServer-Template",
                            "ssl_port":"9074",
                            "heap_start":"256"
                         }
                      }
                   }
                }
             },
             "displayName":"WebLogic"
          }
       },
       "activityLogs":[
          {
             "activityLogId":24981235,
             "serviceName":"ExampleInstance",
             "serviceType":"jaas",
             "identityDomain":"ExampleIdentityDomain",
             "serviceId":1138830,
             "jobId":46808351,
             "computeSiteName":"uscom-central-1",
             "startDate":"2018-10-25T22:49:14.720+0000",
             "endDate":"2018-10-25T23:14:48.224+0000",
             "status":"SUCCEED",
             "operationId":1138830,
             "operationType":"CREATE_SERVICE",
             "summaryMessage":"CREATE_SERVICE",
             "authDomain":"ExampleIdentityDomain",
             "authUser":"username",
             "initiatedBy":"USER",
             "messages":[
                {
                   "activityDate":"2018-10-25T22:49:14.720+0000",
                   "message":"Activity Submitted"
                },
                {
                   "activityDate":"2018-10-25T22:49:14.813+0000",
                   "message":"Activity Started"
                },
                {
                   "activityDate":"2018-10-25T22:49:17.470+0000",
                   "message":"Started operation to create service [ExampleInstance] in identity domain [ExampleIdentityDomain]."
                },
                {
                   "activityDate":"2018-10-25T22:49:22.892+0000",
                   "message":"Started pre-check for load balancer configuration for service [ExampleInstance]."
                },
                {
                   "activityDate":"2018-10-25T22:49:26.589+0000",
                   "message":"Completed pre-check for load balancer configuration for service [ExampleInstance]."
                },
                {
                   "activityDate":"2018-10-25T22:49:48.821+0000",
                   "message":"Creating resources [exampleinstance-wls-3,exampleinstance-wls-1,exampleinstance-wls-2] for service [ExampleInstance]."
                },
                {
                   "activityDate":"2018-10-25T23:00:21.207+0000",
                   "message":"Completed creating service [ExampleInstance] resources in domain [ExampleIdentityDomain]."
                },
                {
                   "activityDate":"2018-10-25T23:01:18.994+0000",
                   "message":"Started operation to check provisioning status on the VMs for [WLS]"
                },
                {
                   "activityDate":"2018-10-25T23:01:25.014+0000",
                   "message":"Started load balancer configuration for service [ExampleInstance]."
                },
                {
                   "activityDate":"2018-10-25T23:03:03.507+0000",
                   "message":"Completed load balancer configuration for service [ExampleInstance]."
                },
                {
                   "activityDate":"2018-10-25T23:13:53.000+0000",
                   "message":"Provisioning Succeeded on host(s): exampleinstance-wls-1"
                },
                {
                   "activityDate":"2018-10-25T23:13:53.192+0000",
                   "message":"Provisioning of component [WLS] succeeded."
                },
                {
                   "activityDate":"2018-10-25T23:14:03.992+0000",
                   "message":"Started load balancer check for service [ExampleInstance]."
                },
                {
                   "activityDate":"2018-10-25T23:14:05.902+0000",
                   "message":"Completed load balancer check for service [ExampleInstance]."
                },
                {
                   "activityDate":"2018-10-25T23:14:08.345+0000",
                   "message":"Load balancer reachability check succeeded."
                },
                {
                   "activityDate":"2018-10-25T23:14:08.345+0000",
                   "message":"Service reachability check for all components completed."
                },
                {
                   "activityDate":"2018-10-25T23:14:48.224+0000",
                   "message":"Activity Ended"
                }
             ]
          }
       ],
       "idcs":{
          "customer":{
             "appID":"longappidstring123",
             "appDisplayName":"JaaS_ExampleInstance",
             "appName":"SOME1LONG2STRING_APPID",
             "appURL":"https:\/\/ExampleIdentityDomain.identity.oraclecloud.com:443\/ui\/v1\/adminconsole\/?root=apps&app=longappidstring123"
          }
       },
       "layeringMode":"None",
       "serviceLevelDisplayName":"Oracle Java Cloud Service",
       "editionDisplayName":"Enterprise Edition with Coherence",
       "meteringFrequencyDisplayName":"Hourly",
       "cloudStorageContainer":"https:\/\/yourstorageurlcontainer",
       "INTERNAL_ROOT":"https:\/\/youripaddress",
       "useIdentityService":"true",
       "WLS_MSHA_SEC_LIST":"\/Compute-588077782\/username\/paas\/JaaS\/ExampleInstance\/ora_wls_msha",
       "displayWLSAndFMWConsole":"true",
       "displayIDCSRoles":"true",
       "loadBalancerType":"PUBLIC",
       "WLS_ROOT":"https:\/\/youripaddress:7002\/console",
       "FMW_ROOT":"https:\/\/youripaddress:7002\/em",
       "lbaasConfigured":"true",
       "jdkVersion":"1.8.0_181",
       "enableAdminConsoles":"true",
       "adminConsoleAccessCIDRRange":"10.0.0.0/0",
       "BACKUP_DESTINATION":"BOTH",
       "identityTenancy":"StandardJCS",
       "provisionEngine":"Metadata_1_0",
       "SAMPLE_ROOT":"https:\/\/ExampleInstance-exampleaccount.uscom-central-1.oraclecloud.com:443\/sample-app",
       "configureLoadBalancer":"true",
       "PSM_IDENTITY_FOOTPRINT_CUSTOMER":"longappidstring123",
       "totalSharedStorage":0,
       "allAssociations":{
          "toAssociations":[
             {
                "associationId":694670,
                "displayName":"DbaaS association",
                "description":"DbaaS association",
                "associationType":"DEPENDS_ON",
                "associationName":"INFRA_DB",
                "associationState":"READY",
                "assocStatusMessage":"newly created",
                "isRequired":true,
                "creationDate":"2018-10-25T22:49:12.000+0000",
                "domain":"ExampleIdentityDomain",
                "destServiceType":"DBaaS",
                "destServiceName":"yourInfraSchemaDbDeployment",
                "serviceStatus":"READY",
                "serviceStateDisplayName":"Ready",
                "edition":"EE",
                "version":"12.1.0.2",
                "level":"PAAS",
                "ocpu":1,
                "associationStateDisplayName":"Ready",
                "assocNameDisplayName":"DbaaS association",
                "assocTypeDisplayName":"Depends On",
                "assocTypeDescription":"Service A depends on Resource B\/Service B."
             }
          ],
          "fromAssociations":[
    
          ]
       },
       "region":"uscom-central-1",
       "patching":{
          "currentOperation":{
             "operation":"NONE"
          },
          "totalAvailablePatches":0
       },
       "backup":{
          "operationInProgress":{
    
          }
       },
       "loadBalancer":{
          "PUBLIC":{
             "displayName":"exampleinstance-loadbalancer-1",
             "role":"PRIMARY",
             "url":"https:\/\/ExampleInstance-exampleaccount.uscom-central-1.oraclecloud.com:443",
             "permanentUrl":"https:\/\/SOME1LONG2STRING.uscom-central-1.oraclecloud.com:443",
             "urls":[
                "https:\/\/ExampleInstance-exampleaccount.uscom-central-1.oraclecloud.com:443"
             ],
             "permanentUrls":[
                "https:\/\/SOME1LONG2STRING.uscom-central-1.oraclecloud.com:443"
             ],
             "loadBalancerAdminUrl":"https:\/\/lbaas-alongstring123.balancer.oraclecloud.com\/vlbrs\/uscom-central-1\/1138830-1540508486127",
             "loadBalancerConsoleUrl":"https:\/\/compute-cacct-somelongstring321.console.oraclecloud.com\/mycompute\/console\/view.html"
          }
       }
    }