View All Service Instances

get

/paas/service/dbcs/api/v1.1/instances/{identityDomainId}

Returns information about all Database Classic Cloud Service instances. You can view the full set of details by specifying the ?outputLevel=verbose query parameter.

Request

Path Parameters
  • Identity domain ID for the Database Classic Cloud Service account:
     
    • For a Cloud account with Identity Cloud Service: the identity service ID, which has the form idcs-letters-and-numbers. You can find this ID in the Identity Service Id field on the Overview tab of the Service Details page for Database Classic Cloud Service in My Services.

    • For a traditional cloud account: the name of the identity domain.

Query Parameters
Header Parameters
  • Base64 encoding of the user name and password of the user making the request. For more information, see Security, Authentication and Authorization.
  • Identity domain ID for the Database Classic Cloud Service account:
     
    • For a Cloud account with Identity Cloud Service: the identity service ID, which has the form idcs-letters-and-numbers. You can find this ID in the Identity Service Id field on the Overview tab of the Service Details page for Database Classic Cloud Service in My Services.

    • For a traditional cloud account: the name of the identity domain.

Back to Top

Response

Supported Media Types

202 Response

Accepted. See Status Codes for information about other possible HTTP status codes.
Body ()
Root Schema : Response Body
Type: object
Title: Response Body
Show Source
Nested Schema : services Array
Type: array
Title: services Array
Array of JSON object elements, with one element for each service instance in the identity domain.
Show Source
Nested Schema : services Array Item
Type: object
Title: services Array Item
Show Source
Back to Top

Examples

The following example shows how to view information about all Database Classic Cloud Service instances by submitting a GET request on the REST endpoint using cURL.

This example uses a traditional cloud account, so the {identityDomainId} path parameter and the X-ID-TENANT-NAME header parameter are set to the account's domain name, which is usexample. The Oracle Cloud user name of the user making the call is dbcsadmin. The response shows two running services, db12c-xp-si and db12c-xp-rac.

cURL Command

$ curl --include --request GET \
--user dbcsadmin:password \
--header "X-ID-TENANT-NAME:usexample" \
https://dbaas.oraclecloud.com/paas/service/dbcs/api/v1.1/instances/usexample

HTTP Status Code and Response Headers

HTTP/1.1 200 OK
Date: date-and-time-stamp
Server: Oracle-Application-Server-11g
Content-Length: 1182
X-ORACLE-DMS-ECID: id-string
X-ORACLE-DMS-ECID: id-string
X-Frame-Options: DENY
Vary: Accept-Encoding,User-Agent
Content-Language: en
Content-Type: application/json

Response Body

{
  "uri":"https:\/\/dbaas.oraclecloud.com:443\/paas\/service\/dbcs\/api\/v1.1\/instances\/usexample",
  "service_type":"dbaas",
  "implementation_version":"1.0",
  "services":[
    {
      "service_name":"db12c-xp-si",
      "version":"12.1.0.2",
      "status":"Running",
      "description":"Example service instance",
      "identity_domain":"usexample",
      "creation_time":"Tue Jun 21 17:2:56 UTC 2016",
      "last_modified_time":"Tue Jun 21 17:2:55 UTC 2016",
      "created_by":"dbcsadmin",
      "sm_plugin_version":"16.2.5-125",
      "backup_supported_version":"16.2.3",
      "service_uri":"https:\/\/dbaas.oraclecloud.com:443\/paas\/service\/dbcs\/api\/v1.1\/instances\/usexample\/db12c-xp-si"
    },
    {
      "service_name":"db12c-xp-rac",
      "version":"12.1.0.2",
      "status":"Running",
      "description":"Example service instance",
      "identity_domain":"usexample",
      "creation_time":"Tue Jun 28 23:52:45 UTC 2016",
      "last_modified_time":"Tue Jun 28 23:52:45 UTC 2016",
      "created_by":"dbcsadmin",
      "sm_plugin_version":"16.2.5-125",
      "backup_supported_version":"16.1.5",
      "service_uri":"https:\/\/dbaas.oraclecloud.com:443\/paas\/service\/dbcs\/api\/v1.1\/instances\/usexample\/db12c-xp-rac"
}
],
"subscriptions":[]
}
Back to Top