View All Service Instances
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances
Request
-
identityDomainId: string
Name of the identity domain for the MySQL Cloud Service account.
-
X-ID-TENANT-NAME: string
Name of the identity domain for the MySQL Cloud Service account.
Response
- application/json
200 Response
object
View All Instances Response
-
services(optional):
array All MySQL Cloud Service Instances
Title:
All MySQL Cloud Service Instances
Array of JSON object elements, with one element for each MySQL Cloud Service instance in the identity domain.
array
All MySQL Cloud Service Instances
-
[0]:
object Service Instance Details
Title:
Service Instance Details
object
Service Instance Details
-
activityLogs(optional):
array Root Activity Log Schema
Title:
Root Activity Log Schema
Activity log for the service instance. -
attributes(optional):
array attributes
Array of the service attributes. For example,
MYSQL_PORT
,CLOUD_STORAGE_CONTAINER
,LOCAL_BACKUP_VOLUME_SIZE
, etc. -
BACKUP_DESTINATION(optional):
string
Backup destination; either
BOTH
- Both Cloud Storage and Local Storage, orNONE
- None. -
CLOUD_STORAGE_CONTAINER(optional):
string
Name of the Oracle Storage Cloud Service container used to provide storage for MySQL service instance backups.
-
components(optional):
array components
Details for each service component.
-
computeSiteName(optional):
string
The Oracle Cloud location housing the service instance.
-
DATA_VOLUME_SIZE(optional):
string
Storage volume size for MySQL data.
-
domainName(optional):
string
The identity domain housing the service instance.
-
edition(optional):
string
The edition of MySQL Server. For example,
EE
. -
editionDisplayName(optional):
string
The display name of MySQL Server edition. For example,
Enterprise Edition
. -
LOCAL_BACKUP_VOLUME_MOUNT(optional):
string
The volume mount point for local backups.
-
LOCAL_BACKUP_VOLUME_SIZE(optional):
string
Storage volume size for MySQL local backups.
-
metaVersion(optional):
string
The release version of metadata service manager.
-
meteringFrequency(optional):
string
The billing frequency of the service instance; either
MONTHLY
orHOURLY
. -
meteringFrequencyDisplayName(optional):
string
The display name of the metering frequency; either
Monthly
orHourly
. -
MYSQL_PORT(optional):
string
The listener port for MySQL server.
-
patching(optional):
object Service Patching Details
Title:
Service Patching Details
-
region(optional):
string
Region where the service instanced is provisioned.
-
releaseVersion(optional):
string
The release version of MySQL Server. For example,
5.7.20
. -
serviceId(optional):
string
ID of the Oracle MySQL Cloud Service instance.
-
serviceLevel(optional):
string
The service level of the service instance. For example,
PAAS
for Oracle Cloud Service. -
serviceLevelDisplayName(optional):
string
The display name of the service level. For example,
Oracle MySQL Cloud Service
. -
serviceName(optional):
string
Name of the Oracle MySQL Cloud Service instance.
-
serviceStateDisplayName(optional):
string
The display name of the service current state.
-
serviceType(optional):
string
Type of the Oracle MySQL Cloud Service instance, such as
MySQLCS
. -
serviceVersion(optional):
string
The major version of MySQL Server. For example,
5.7
. -
subscription(optional):
string
The subscription type of the service instance; either
MONTHLY
orHOURLY
. - totalSharedStorage(optional): string
array
Root Activity Log Schema
-
[0]:
object Activity Log Details
Title:
Activity Log Details
Activity logs of the operation.
array
MYSQL_PORT
, CLOUD_STORAGE_CONTAINER
, LOCAL_BACKUP_VOLUME_SIZE
, etc.-
[0]:
object Service Component Attribute Details
Title:
Service Component Attribute Details
array
-
[0]:
object Service Instance Component Details
Title:
Service Instance Component Details
object
Service Patching Details
-
currentOperation(optional):
object Service Patching Operation Details
Title:
Service Patching Operation Details
-
totalAvailablePatches(optional):
integer
Total number of available patches.
object
Activity Log Details
-
activityLogId(optional):
string
The log ID of the operation.
-
authDomain(optional):
string
Identity domain for the Oracle MySQL Cloud Service account.
-
authUser(optional):
string
The authentication user.
-
endDate(optional):
string
The date and time when the job ended.
-
identityDomain(optional):
string
The identity domain hosting the instance.
-
initiatedBy(optional):
string
The user making the request.
-
jobId(optional):
string
The ID of the current job.
-
messages(optional):
array messages
Log details of the operation.
-
operationId(optional):
string
The corresponding ID of the operation.
-
operationType(optional):
string
The type of the operation, such as
CREATE_SERVICE
. -
serviceId(optional):
string
The corresponding ID of the MySQL Cloud Service instance.
-
serviceName(optional):
string
The name of the instance.
-
serviceType(optional):
string
The service type of the instance.
-
startDate(optional):
string
The date and time when the job started.
-
status(optional):
string
Current status of the job; one of:
In Progress
,Succeeded
,Failed
. -
summaryMessage(optional):
string
The summary of the activity log.
array
-
[0]:
object Service Message Details
Title:
Service Message Details
Details for a specific service message log.
object
Service Message Details
-
activityDate(optional):
string
The date and time of the current activity.
-
message(optional):
string
The message of the activity.
object
Service Component Attribute Details
-
displayName(optional):
string
Display name of the attribute.
-
displayValue(optional):
string
Display value of the attribute.
-
isKeyBinding(optional):
boolean
Indicates whether the attribute is key binding.
-
type(optional):
string
Type of the attribute.
-
value(optional):
string
Value of the attribute.
object
Service Instance Component Details
-
adminHostName(optional):
string
The host name of the administration node. It is usually the instance itself.
-
attributes(optional):
array attributes
Array of service component attributes, such as compute shape, connect string, etc.
-
componentId(optional):
string
ID of the service component.
-
creationDate(optional):
string
The date and time when the service instance was created.
-
instanceName(optional):
string
The component name of the service instance. For example,
mysql
. -
instanceRole(optional):
string
The role of the service instance. It is
None
for Oracle MySQL Cloud Service. -
serviceId(optional):
string
ID of the Oracle MySQL Cloud Service instance.
-
state(optional):
string
The current state of the component.
-
storageVolumes(optional):
array storageVolumes
All storage volumes of the service instance.
-
version(optional):
string
The version of the component. For example,
5.7
. -
vmInstances(optional):
array vmInstances
VM instances details.
array
-
[0]:
object Service Component Attribute Details
Title:
Service Component Attribute Details
array
-
[0]:
object Storage Volume Details
Title:
Storage Volume Details
array
-
[0]:
object Virtual Machine (VM) Instance Details
Title:
Virtual Machine (VM) Instance Details
object
Storage Volume Details
-
name(optional):
string
Name of the storage volume.
-
partitions(optional):
string
Number of partitions of the storage volume.
-
size(optional):
string
Size of the storage volume.
object
Virtual Machine (VM) Instance Details
-
componentType(optional):
string
The type of the component. It is usually
mysql
for Oracle MySQL Cloud Service. -
creationDate(optional):
string
The date and time when the service instance was created.
-
hostname(optional):
string
The host name of the compute node.
-
ipAddress(optional):
string
The IP address of the compute node.
-
isAdminNode(optional):
boolean
Indicates whether the compute node is an administration node.
-
label(optional):
string
The label of the compute node.
-
publicIpAddress(optional):
string
The IP address of the compute node.
-
role(optional):
string
The role of the compute node. It is usually
MYSQL_SERVER
for Oracle MySQL Cloud Service. -
servers(optional):
array servers
Servers instance information.
-
shapeId(optional):
string
The Oracle Compute Cloud shape of the compute node.
-
state(optional):
string
The current state of the compute node. Valid values are:
Ready
: Fully operationalStarting
: Being created or initializedStopping
: Being stoppedError
: Has some error condition(s)
-
storageVolumes(optional):
array storageVolumes
All storage volumes of the service instance.
-
totalStorage(optional):
integer
The size in GB of the total storage allocated to the compute node, including data volume, backup volume, and MySQL log volume.
-
usageType(optional):
string
The usage type of the compute node. It is usually
MYSQL_SERVER
for Oracle MySQL Cloud Service. -
vmId(optional):
string
The ID of the compute node.
-
vmStateDisplayName(optional):
string
The display name of the current state of the compute node.
array
-
[0]:
object Server Instance Details
Title:
Server Instance Details
array
-
[0]:
object Storage Volume Details
Title:
Storage Volume Details
object
Server Instance Details
-
creationDate(optional):
string
Date and time when the server was created.
-
serverId(optional):
integer
ID of the server.
-
serverName(optional):
string
Name of the server.
-
serverRole(optional):
string
Role of the server.
-
serverStateDisplayName(optional):
string
Display name of the server.
-
serverType(optional):
string
Type of the server, such as
MASTER
. -
state(optional):
string
Current state of the server.
object
Service Patching Operation Details
-
operation(optional):
string
Current patching operation.
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 } } } }