最初のサービス・インスタンスの詳細の確認
サービス・インスタンスの作成後、次のcURLコマンドを使用してサービス・インスタンスの詳細を表示します。 cURLコマンドラインで、Oracle Java Cloud Serviceアカウントのユーザー名とパスワード、およびアイデンティティ・ドメインID (Oracle Public Cloudの場合)またはテナント名(Oracle Cloud Machineの場合)を指定します。
注意: この例のコマンドでは、URL構造https://rest_server_url/resource-pathが使用されています。ここで、rest_server_urlはアイデンティティ・ドメインまたはテナント名を問い合せるためのOracle Public CloudまたはOracle Cloud MachineのRESTサーバーです。 Oracle Public CloudまたはOracle Cloud Machineに使用する適切なURL構造の詳細は、リクエストの送信を参照してください。
C:> curl -i -X GET -u yourUserName:yourPassword -H X-ID-TENANT-NAME:yourIdentityDomain https://rest_server_url/paas/service/jcs/api/v1.1/instances/yourIdentityDomain/MyFirstInstance
Oracle Public Cloud: Oracle Public CloudでのJSON形式のレスポンスのコンテンツの例を次に示します。
{
"service_name" : "MyFirstInstance",
"version" : "12cR3",
"wlsVersion" : "12.1.3.0.xxxxxx",
"status" : "Running",
"error_status_desc": "",
"compliance_status": "",
"compliance_status_desc": "",
"auto_update": "true",
"description" : "My first instance using the REST API.",
"identity_domain" : "yourIdentityDomain",
"creation_time": "Thu Jul 14 23:16:58 UTC 2016",
"last_modified_time": "Thu Jul 14 23:16:56 UTC 2016",
"created_by" : "yourUserName",
"service_uri" : "https:\/\/rest_server_url\/paas\/service\/jcs\/api\/v1.1\/instances\/yourIdentityDomain\/MyFirstInstance",
"domain_name" : "MyDomain",
"domain_mode" : "PRODUCTION",
"cluster_name" : "MyDomain_Cluster",
"num_nodes" : 6,
"level" : "PAAS",
"subscription_type" : "HOURLY",
"edition" : "SUITE",
"shape" : "oc3",
"otd_provisioned" : "yes",
"otd_shape": "oc3",
"otd_storage_size": 41984,
"service_components": [
{
"type": "WLS",
"version": "12.1.3.0.xxxxxx"
},
{
"type": "OTD",
"version": "11.1.1.9.x"
},
{
"type": "OTD_JDK",
"version": "1.7.0_xxx"
},
{
"type": "JDK",
"version": "1.7.0_xxx"
}],
"options": [{
"type": "datagrid",
"clusters": [{
"clusterName": "ExampleDGCluster",
"scalingUnitCount": 1,
"scalingUnitName": "SMALL",
"shape": "oc3",
"vmCount": 3,
"jvmCount": 1,
"heapSize": "4608M",
"maxScalingUnit": 10,
"heapIncrements": "13824M",
"primaryIncrements": "4608M",
"totalHeap": "13824M",
"totalPrimary": "4608M",
"maxHeap": "138240M",
"maxPrimary": "46080M",
"scalingUnitInstances": [{
"servers": [
{"name": "MyFirstI_server_3_DG"},
{"name": "MyFirstI_server_4_DG"},
{"name": "MyFirstI_server_5_DG"}
],
"scalingUnitInstanceId": 2,
"status": "Ready"
}]
}]
}],
"creation_job_id" : "8466",
"deletion_job_id": 0,
"db_info" : "yourDBServiceInfo",
"db_service_name": "yourDBServiceName",
"num_ip_reservations" : 6,
"wls_admin_url" : "https:\/\/100.111.122.200:7002\/console",
"fmw_control_url" : "https:\/\/100.111.122.200:7002\/em",
"otd_admin_url" : "https:\/\/100.111.222.333:8989",
"sample_app_url": "https:\/\/100.111.222.333\/sample-app\/",
"content_url" : "http:\/\/100.111.222.333",
"secure_content_url" : "https:\/\/100.111.222.333",
"wls_deployment_channel_port": 9001,
"psm_plugin_version": "16.x.x-xxx",
"compute_site_name": "US000_Z00",
"db_associations": [
{
"db_service_name": "yourDBServiceName",
"db_infra": true,
"db_connect_string": "yourDBServiceInfo",
"pdb_service_name": "PDB1",
"db_version": "12.1.0.2"
}]
}
Oracle Cloud Machine: Oracle Cloud MachineでのJSON形式のレスポンスのコンテンツの例を次に示します。
{
"service_name" : "MyFirstInstance",
"version" : "12cR3",
"wlsVersion" : "12.1.3.0.xxxxxx",
"status" : "Running",
"error_status_desc": "",
"compliance_status": "",
"compliance_status_desc": "",
"auto_update": "true",
"description" : "My first instance using the REST API.",
"identity_domain" : "yourTenantName",
"creation_time": "Fri Sep 2 15:33:55 UTC 2016",
"last_modified_time": "Fri Sep 2 15:33:51 UTC 2016",
"created_by" : "yourUserName",
"service_uri" : "https:\/\/rest_server_url\/paas\/service\/jcs\/api\/v1.1\/instances\/yourTenantName\/MyFirstInstance",
"domain_name" : "MyDomain",
"domain_mode" : "PRODUCTION",
"cluster_name" : "MyDomain_Cluster",
"num_nodes" : 6,
"level" : "PAAS",
"subscription_type" : "MONTHLY",
"edition" : "SUITE",
"shape" : "oc3",
"otd_provisioned" : "yes",
"otd_shape": "oc3",
"otd_storage_size": 41984,
"service_components": [
{
"type": "JDK",
"version": "1.7.0_xxx"
},
{
"type": "OTD_JDK",
"version": "1.7.0_xxx"
},
{
"type": "OTD",
"version": "11.1.1.9.x"
},
{
"type": "WLS",
"version": "12.1.3.0.xxxxxx"
}],
"options": [{
"type": "datagrid",
"clusters": [{
"clusterName": "ExampleDGCluster",
"scalingUnitCount": 1,
"scalingUnitName": "SMALL",
"shape": "oc3",
"vmCount": 3,
"jvmCount": 1,
"heapSize": "4608M",
"maxScalingUnit": 10,
"heapIncrements": "13824M",
"primaryIncrements": "4608M",
"totalHeap": "13824M",
"totalPrimary": "4608M",
"maxHeap": "138240M",
"maxPrimary": "46080M",
"scalingUnitInstances": [{
"servers": [
{"name": "MyFirstI_server_3_DG"},
{"name": "MyFirstI_server_4_DG"},
{"name": "MyFirstI_server_5_DG"}
],
"scalingUnitInstanceId": 2,
"status": "Ready"
}]
}]
}],
"creation_job_id": "10002",
"deletion_job_id": 0,
"db_info": "mydbhost:1521\/yourDBInfo",
"num_ip_reservations" : 6,
"wls_admin_url": "https:\/\/myvmhost:7002\/console",
"fmw_control_url": "https:\/\/myvmhost:7002\/em",
"otd_admin_url": "https:\/\/mylbhost:8989",
"sample_app_url": "https:\/\/mylbhost\/sample-app\/",
"content_url": "http:\/\/mylbhost",
"secure_content_url": "https:\/\/mylbhost",
"wls_deployment_channel_port": 9001,
"psm_plugin_version": "16.x.x-x-xxx",
"compute_site_name": "PRIVATE_SITE",
"db_associations": [
{
"db_connect_string": "mydbhost:1521\/yourDBInfo",
"db_infra": true
}]
}