View All Service Instances

get

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances

Return information about all MySQL Cloud Service instances.

Request

Path Parameters
Header Parameters

Response

Supported Media Types

200 Response

OK. See Status Codes for information about other possible HTTP status codes.
Body ()
Root Schema : View All Instances Response
Type: object
Title: View All Instances Response
Root schema for the response body that contains information for all service instances.
Show Source
Nested Schema : All MySQL Cloud Service Instances
Type: array
Title: All MySQL Cloud Service Instances
Array of JSON object elements, with one element for each MySQL Cloud Service instance in the identity domain.
Show Source
Nested Schema : Service Instance Details
Type: object
Title: Service Instance Details
Show Source
Nested Schema : Root Activity Log Schema
Type: array
Title: Root Activity Log Schema
Activity log for the service instance.
Show Source
Nested Schema : attributes
Type: array
Array of the service attributes. For example, MYSQL_PORT, CLOUD_STORAGE_CONTAINER, LOCAL_BACKUP_VOLUME_SIZE, etc.
Show Source
Nested Schema : components
Type: array
Details for each service component.
Show Source
Nested Schema : Service Patching Details
Type: object
Title: Service Patching Details
Show Source
Nested Schema : Activity Log Details
Type: object
Title: Activity Log Details
Activity logs of the operation.
Show Source
Nested Schema : messages
Type: array
Log details of the operation.
Show Source
Nested Schema : Service Message Details
Type: object
Title: Service Message Details
Details for a specific service message log.
Show Source
Nested Schema : Service Component Attribute Details
Type: object
Title: Service Component Attribute Details
Show Source
Nested Schema : Service Instance Component Details
Type: object
Title: Service Instance Component Details
Show Source
Nested Schema : attributes
Type: array
Array of service component attributes, such as compute shape, connect string, etc.
Show Source
Nested Schema : storageVolumes
Type: array
All storage volumes of the service instance.
Show Source
Nested Schema : vmInstances
Type: array
VM instances details.
Show Source
Nested Schema : Storage Volume Details
Type: object
Title: Storage Volume Details
Show Source
Nested Schema : Virtual Machine (VM) Instance Details
Type: object
Title: Virtual Machine (VM) Instance Details
Show Source
Nested Schema : servers
Type: array
Servers instance information.
Show Source
Nested Schema : storageVolumes
Type: array
All storage volumes of the service instance.
Show Source
Nested Schema : Server Instance Details
Type: object
Title: Server Instance Details
Show Source
Nested Schema : Service Patching Operation Details
Type: object
Title: Service Patching Operation Details
Show Source

Examples

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

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the Oracle Public Cloud or Oracle Cloud Machine REST server to contact for your identity domain or tenant name. See Send Requests for the appropriate URL structure to use on Oracle Public Cloud or Oracle Cloud Machine.

cURL Command

curl -i -X GET \
  -u "username:password" \
  -H "X-ID-TENANT-NAME: ExampleIdentityDomain" \
  -H "Accept: application/json" \
   https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
"pragma": "no-cache",
"date": "Thu, 08 Mar 2018 14:15:29 GMT",
"x-tryit-proxy-response": "true",
"vary": "Accept-Encoding,User-Agent",
"server": "Oracle-Application-Server-11g",
"x-frame-options": "DENY",
"x-oracle-dms-ecid": "005PiTEmdJE4ioW_Pxk3yd0002UT001Gk8, 005PiTEmdJE4ioW_Pxk3yd0002UT001Gk8",
"content-language": "en",
"content-encoding": "gzip",
"cache-control": "no-cache",
"connection": "Keep-Alive",
"strict-transport-security": "max-age=31536000;includeSubDomains",
"content-type": "application/json",
"keep-alive": "timeout=5, max=500",
"content-length": "3363"

Example of Response Body

The following shows an example of the response body in JSON format where the identity domain has a single MySQL Cloud Service instance named MyTestInstance.

		  
{
  "services": {
    "ExampleInstance": {
      "serviceId": 558125,
      "serviceUuid": "4AB6C53C75A3410FAA793702405EC485",
      "serviceLogicalUuid": "16F8B200374C4D12BC0C182A37F9821F",
      "serviceName": "ExampleInstance",
      "serviceType": "MySQLCS",
      "domainName": "ExampleIdentityDomain",
      "serviceVersion": "5.7",
      "releaseVersion": "5.7.20",
      "baseReleaseVersion": "5.7.20",
      "metaVersion": "18.1.4-180118",
      "serviceDescription": "My example instance.",
      "serviceLevel": "PAAS",
      "subscription": "HOURLY",
      "meteringFrequency": "HOURLY",
      "edition": "EE",
      "totalSSDStorage": 0,
      "storageContainer": "Storage-ExampleIdentityDomain/MySQLCS",
      "state": "READY",
      "serviceStateDisplayName": "Ready",
      "clone": false,
      "creator": "yourusename",
      "creationDate": "2018-03-08T13:22:59.881+0000",
      "serviceEntitlementId": "585262429",
      "isBYOL": false,
      "isSharedManaged": false,
      "isNonSharedmanaged": false,
      "isDefaultManaged": false,
      "isManaged": false,
      "isOAuthForStorageConfigured": false,
      "iaasProvider": "NIMBULA",
      "keyComponentInstance": "mysql",
      "adminHostName": "exampleinstance-mysql-1",
      "attributes": {
        "BACKUP_FILE_PATH": {
          "displayName": "Source Backup File",
          "type": "STRING",
          "value": "",
          "displayValue": "",
          "isKeyBinding": false
        },
        "MYSQL_PORT": {
          "displayName": "MySQL Port",
          "type": "INTEGER",
          "value": "3306",
          "displayValue": "3306",
          "isKeyBinding": true
        },
        "USE_SSD": {
          "displayName": "Use High Performance Storage",
          "type": "BOOLEAN",
          "value": "false",
          "displayValue": "false",
          "isKeyBinding": false
        },
        "CLOUD_STORAGE_CONTAINER": {
          "displayName": "Cloud Storage Container",
          "type": "STRING",
          "value": "Storage-StorageIdentityDomain/MySQLCS",
          "displayValue": "Storage-StorageIdentityDomain/MySQLCS",
          "isKeyBinding": false
        },
        "BACKUP_DESTINATION": {
          "displayName": "Backup Destination",
          "type": "STRING",
          "value": "NONE",
          "displayValue": "None",
          "isKeyBinding": false
        }
      },
      "tags": {
        "items": [],
        "totalResults": 0,
        "hasMore": false
      },
      "components": {
        "mysql": {
          "serviceId": 558125,
          "componentId": 613292,
          "state": "READY",
          "componentStateDisplayName": "Ready",
          "version": "5.7",
          "componentType": "mysql",
          "creationDate": "2018-03-08T13:22:59.000+0000",
          "instanceName": "mysql",
          "instanceRole": "PRIMARY",
          "isKeyComponent": true,
          "attributes": {
            "MYSQL_CHARACTER_SET": {
              "displayName": "Server Character Set",
              "type": "STRING",
              "value": "utf8mb4",
              "displayValue": "utf8mb4",
              "isKeyBinding": false
            },
            "MYSQL_USERNAME": {
              "displayName": "Administration Username",
              "type": "STRING",
              "value": "root",
              "displayValue": "root",
              "isKeyBinding": false
            },
            "MYSQL_COLLATION": {
              "displayName": "Server Collation",
              "type": "STRING",
              "value": "",
              "displayValue": "",
              "isKeyBinding": false
            },
            "MYSQL_DBNAME": {
              "displayName": "Database Schema Name",
              "type": "STRING",
              "value": "mydatabase",
              "displayValue": "mydatabase",
              "isKeyBinding": false
            },
            "shape": {
              "displayName": "Compute Shape",
              "type": "SHAPE",
              "value": "oc3",
              "displayValue": "oc3",
              "isKeyBinding": false
            },
            "MYSQL_TIMEZONE": {
              "displayName": "Timezone",
              "type": "STRING",
              "value": "SYSTEM",
              "displayValue": "SYSTEM",
              "isKeyBinding": false
            },
            "MYSQL_DBSTORAGE": {
              "displayName": "Usable Database Storage (GB)",
              "type": "INTEGER",
              "value": "25",
              "displayValue": "25",
              "isKeyBinding": false
            },
            "MYSQL_ENTERPRISE_MONITOR": {
              "displayName": "Configure MySQL Enterprise Monitor",
              "type": "STRING",
              "value": "No",
              "displayValue": "No",
              "isKeyBinding": false
            },
            "CONNECT_STRING": {
              "displayName": "Connect Descriptor",
              "type": "STRING",
              "value": "203.0.113.11:3306/mydatabase",
              "displayValue": "203.0.113.11:3306/mydatabase",
              "isKeyBinding": true
            }
          },
          "vmInstances": {
            "exampleinstance-mysql-1": {
              "vmId": 749988,
              "id": 749988,
              "uuid": "DAFEB05114FE4581A796FC29260EC0E5",
              "hostName": "exampleinstance-mysql-1",
              "label": "ExampleInstance mysql MYSQL_SERVER 1",
              "ipAddress": "203.0.113.11",
              "publicIpAddress": "203.0.113.11",
              "usageType": "MYSQL_SERVER",
              "role": "MYSQL_SERVER",
              "componentType": "mysql",
              "state": "READY",
              "vmStateDisplayName": "Ready",
              "shapeId": "oc3",
              "totalStorage": 128000,
              "creationDate": "2018-03-08T13:22:59.000+0000",
              "isAdminNode": true,
              "servers": {
                "MySQL": {
                  "serverId": 345158,
                  "serverName": "MySQL",
                  "serverType": "MASTER",
                  "serverRole": "MYSQLCS_ROLE",
                  "state": "READY",
                  "serverStateDisplayName": "Ready",
                  "creationDate": "2018-03-08T13:22:59.000+0000",
                  "isPermanent": false
                }
              },
              "storageVolumes": {
                "data": {
                  "name": "data",
                  "size": "25GB",
                  "partitions": "1",
                  "displayName": "Data Storage",
                  "isUserVisible": true
                },
                "tools": {
                  "name": "tools",
                  "size": "5GB",
                  "partitions": "1",
                  "isUserVisible": false
                },
                "boot": {
                  "name": "boot",
                  "size": "25GB",
                  "partitions": "1",
                  "isUserVisible": false
                },
                "bin": {
                  "name": "bin",
                  "size": "10GB",
                  "partitions": "1",
                  "isUserVisible": false
                },
                "MySQLlog": {
                  "name": "MySQLlog",
                  "size": "60GB",
                  "partitions": "1",
                  "displayName": "Redo and Binary Log Storage",
                  "isUserVisible": true
                }
              }
            }
          },
          "adminHostName": "exampleinstance-mysql-1",
          "storageVolumes": {
            "data": {
              "name": "data",
              "size": "25G",
              "mount": "/u01/data"
            },
            "tools": {
              "name": "tools",
              "size": "5G",
              "mount": "/u01/app/oracle/tools"
            },
            "boot": {
              "name": "boot",
              "size": "25G",
              "mount": "/"
            },
            "bin": {
              "name": "bin",
              "size": "10G",
              "mount": "/u01/bin"
            },
            "MySQLlog": {
              "name": "MySQLlog",
              "size": "60G",
              "mount": "/u01/translog"
            }
          },
          "hosts": {
            "userHosts": {
              "exampleinstance-mysql-1": {
                "vmId": 749988,
                "id": 749988,
                "uuid": "DAFEB05114FE4581A796FC29260EC0E5",
                "hostName": "exampleinstance-mysql-1",
                "label": "ExampleInstance mysql MYSQL_SERVER 1",
                "ipAddress": "203.0.113.11",
                "publicIpAddress": "203.0.113.11",
                "usageType": "MYSQL_SERVER",
                "role": "MYSQL_SERVER",
                "componentType": "mysql",
                "state": "READY",
                "vmStateDisplayName": "Ready",
                "shapeId": "oc3",
                "totalStorage": 128000,
                "creationDate": "2018-03-08T13:22:59.000+0000",
                "isAdminNode": true,
                "servers": {
                  "MySQL": {
                    "serverId": 345158,
                    "serverName": "MySQL",
                    "serverType": "MASTER",
                    "serverRole": "MYSQLCS_ROLE",
                    "state": "READY",
                    "serverStateDisplayName": "Ready",
                    "creationDate": "2018-03-08T13:22:59.000+0000"
                  }
                },
                "storageVolumes": {
                  "data": {
                    "name": "data",
                    "size": "25GB",
                    "partitions": "1"
                  },
                  "tools": {
                    "name": "tools",
                    "size": "5GB",
                    "partitions": "1"
                  },
                  "boot": {
                    "name": "boot",
                    "size": "25GB",
                    "partitions": "1"
                  },
                  "bin": {
                    "name": "bin",
                    "size": "10GB",
                    "partitions": "1"
                  },
                  "MySQLlog": {
                    "name": "MySQLlog",
                    "size": "60GB",
                    "partitions": "1"
                  }
                }
              }
            }
          },
          "paasServers": {},
          "clusters": {},
          "displayName": "MySQL Component"
        }
      },
      "activityLogs": [
        {
          "activityLogId": 14794614,
          "serviceName": "ExampleInstance",
          "serviceType": "mysqlcs",
          "identityDomain": "ExampleIdentityDomain",
          "serviceId": 558125,
          "jobId": 22570625,
          "startDate": "2018-03-08T13:23:00.611+0000",
          "endDate": "2018-03-08T13:32:12.481+0000",
          "status": "SUCCEED",
          "operationId": 558125,
          "operationType": "CREATE_SERVICE",
          "summaryMessage": "CREATE_SERVICE",
          "authDomain": "ExampleIdentityDomain",
          "authUser": "yourusername",
          "initiatedBy": "USER",
          "messages": [
            {
              "activityDate": "2018-03-08T13:23:00.611+0000",
              "message": "Activity Submitted"
            },
            {
              "activityDate": "2018-03-08T13:23:00.652+0000",
              "message": "Activity Started"
            },
            {
              "activityDate": "2018-03-08T13:23:00.798+0000",
              "message": "Started operation to create service [ExampleInstance] in identity domain [ExampleIdentityDomain]."
            },
            {
              "activityDate": "2018-03-08T13:23:00.990+0000",
              "message": "Creating service [ExampleInstance] resources [exampleinstance-mysql-1]."
            },
            {
              "activityDate": "2018-03-08T13:29:19.943+0000",
              "message": "Completed creating service [ExampleInstance] in domain [ExampleIdentityDomain]."
            },
            {
              "activityDate": "2018-03-08T13:29:23.615+0000",
              "message": "Completed operation to establish security on VMs for component [mysql]"
            },
            {
              "activityDate": "2018-03-08T13:29:23.615+0000",
              "message": "Started operation to establish security on VMs for component [mysql]."
            },
            {
              "activityDate": "2018-03-08T13:29:24.134+0000",
              "message": "Started operation to check provisioning status on the VMs for [mysql]"
            },
            {
              "activityDate": "2018-03-08T13:31:35.101+0000",
              "message": "Provisioning Succeeded on hosts: exampleinstance-mysql-1"
            },
            {
              "activityDate": "2018-03-08T13:31:35.404+0000",
              "message": "Provisioning of [mysql] succeeded."
            },
            {
              "activityDate": "2018-03-08T13:31:35.543+0000",
              "message": "Started service reachability check operation for [mysql]."
            },
            {
              "activityDate": "2018-03-08T13:31:41.112+0000",
              "message": "Successfully completed service reachability check for [mysql]"
            },
            {
              "activityDate": "2018-03-08T13:31:41.112+0000",
              "message": "Successfully validated that exampleinstance-mysql-1 returned astatus of 200 on retry 1, waited 0seconds;"
            },
            {
              "activityDate": "2018-03-08T13:31:41.417+0000",
              "message": "Service reachability check of [mysql] succeeded."
            },
            {
              "activityDate": "2018-03-08T13:31:41.417+0000",
              "message": "Service reachability check of all components completed."
            },
            {
              "activityDate": "2018-03-08T13:32:12.463+0000",
              "message": "Activity Ended"
            },
            {
              "activityDate": "2018-03-08T13:32:12.481+0000",
              "message": "Activity Ended"
            }
          ]
        }
      ],
      "layeringMode": "None",
      "serviceLevelDisplayName": "Oracle MySQL Cloud Service",
      "editionDisplayName": "Enterprise Edition",
      "meteringFrequencyDisplayName": "Hourly",
      "BACKUP_FILE_PATH": "null",
      "DATA_VOLUME_SIZE": "25G",
      "USE_SSD": "false",
      "provisionEngine": "Metadata_1_0",
      "MYSQL_PORT": "3306",
      "CLOUD_STORAGE_CONTAINER": "Storage-StorageIdentityDomain/MySQLCS",
      "BACKUP_DESTINATION": "NONE",
      "totalSharedStorage": 0,
      "region": "uscom-east-1",
      "patching": {
        "currentOperation": {
          "operation": "NONE"
        },
        "totalAvailablePatches": 0
      }
    }
  }
}