Get service unit
GET/unit
Gets information about the service unit.
Request
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
The response code.
data
object
The information about the service unit.
The alias of the service unit.
The creation timestamp of the service unit.
creator
object
The cloud account information.
The creation timestamp of the account.
The domain name assigned to the main account.
The email used by the cloud account.
The ID of the cloud account.
Whether the cloud account is a main account.
The ID of the role to which the cloud account is assigned.
The ID of the main account.
Possible values: [INACTIVE
, ACTIVATED
, DISABLED
]
The cloud account status.
defaultDps
object
The DPS cluster information.
aqsSpec
object
The information about the DPS cluster specification.
The number of DPUs allocated to the DPS cluster.
The ID of the DPS cluster specification.
The name of the DPS cluster specification.
The number of credits consumed per unit of time.
The creation time of the DPS cluster.
creator
object
The cloud account information.
The creation timestamp of the account.
The domain name assigned to the main account.
The email used by the cloud account.
The ID of the cloud account.
Whether the cloud account is a main account.
The ID of the role to which the cloud account is assigned.
The ID of the main account.
Possible values: [INACTIVE
, ACTIVATED
, DISABLED
]
The cloud account status.
The description of the DPS cluster.
Whether Adaptive Query Scaling is enabled.
Whether Auto Resume is enabled.
Whether Auto Suspend is enabled.
Possible values: [hybrid
, extreme
]
The type of the DPS cluster.
The ID of the DPS cluster. The value can be Hybrid or Extreme.
The maximum idle time before a DPS cluster is automatically suspended.
The name of the DPS cluster.
owner
object
The cloud account information.
The creation timestamp of the account.
The domain name assigned to the main account.
The email used by the cloud account.
The ID of the cloud account.
Whether the cloud account is a main account.
The ID of the role to which the cloud account is assigned.
The ID of the main account.
Possible values: [INACTIVE
, ACTIVATED
, DISABLED
]
The cloud account status.
spec
object
The information about the DPS cluster specification.
The number of DPUs allocated to the DPS cluster.
The ID of the DPS cluster specification.
The name of the DPS cluster specification.
The number of credits consumed per unit of time.
Possible values: [READY
, AUTO
, SUSPENDED
, PROVISIONING
, DROPPING
, DROPPED
, RESUMING
, RESIZING
, SUSPENDING
, INVALID
, LOADING
]
The status of the DPS cluster.
The last time when the DPS cluster was updated.
The domain name of the service unit.
edition
object
The edition information of the service unit.
The description of the edition.
features
object[]
The list of features supported by the edition.
The description of the feature.
The ID of the feature.
The name of the feature.
The ID of the edition.
Whether the edition is available.
The name of the edition.
endpoints
object[]
The list of endpoints that can be used to connect to the service unit.
The name of the host used by the endpoint.
The ID of the endpoint.
The port number used by the endpoint.
Possible values: [HTTP
, HTTPS
, JDBC
]
The protocol used by the endpoint.
Possible values: [openapi
, web_console
, database
]
The type of the endpoint.
The URI of the endpoint.
The ID of the service unit.
owner
object
The cloud account information.
The creation timestamp of the account.
The domain name assigned to the main account.
The email used by the cloud account.
The ID of the cloud account.
Whether the cloud account is a main account.
The ID of the role to which the cloud account is assigned.
The ID of the main account.
Possible values: [INACTIVE
, ACTIVATED
, DISABLED
]
The cloud account status.
region
object
The region information.
The location of the region.
cloud
object
The cloud provider information.
The ID of the cloud provider.
Whether the cloud provider is a public cloud provider.
Whether the cloud provider is a public cloud provider.
The URL of the cloud provider.
The name of the cloud provider.
The ID of the region.
The name of the region.
regionInfo
object
The region information.
The region information.
Possible values: [PROVISIONING
, PROVISIONING_FAILED
, READY
, DROPPING
]
The status of the service unit.
The tags of the service unit.
The last update timestamp of the service unit.
The response message.
{
"code": 0,
"data": {
"alias": "string",
"createTimestamp": "2024-01-11T11:03:20.786Z",
"creator": {
"createTimestamp": 1685510869834,
"domain": "string",
"email": "[email protected]",
"id": "account-100001",
"isRoot": true,
"roleId": "role-100001",
"rootAccountId": "rootAccount-100002",
"status": "INACTIVE"
},
"defaultDps": {
"aqsSpec": {
"dpuSize": 0,
"id": 0,
"name": "string",
"price": {}
},
"createTime": "2023-05-18T14:20:11.01+09:00",
"creator": {
"createTimestamp": 1685510869834,
"domain": "string",
"email": "[email protected]",
"id": "account-100001",
"isRoot": true,
"roleId": "role-100001",
"rootAccountId": "rootAccount-100002",
"status": "INACTIVE"
},
"description": "string",
"enableAdaptiveQueryScaling": true,
"enableAutoResume": true,
"enableAutoSuspend": true,
"engine": "hybrid",
"id": "string",
"keepAliveTime": 0,
"name": "string",
"owner": {
"createTimestamp": 1685510869834,
"domain": "string",
"email": "[email protected]",
"id": "account-100001",
"isRoot": true,
"roleId": "role-100001",
"rootAccountId": "rootAccount-100002",
"status": "INACTIVE"
},
"spec": {
"dpuSize": 0,
"id": 0,
"name": "string",
"price": {}
},
"status": "READY",
"updateTime": "2023-05-18T14:20:11.01+09:00"
},
"domain": "string",
"edition": {
"description": "string",
"features": [
{
"description": "string",
"id": "string",
"name": "string"
}
],
"id": "string",
"isAvailable": true,
"name": "string"
},
"endpoints": [
{
"host": "string",
"id": "string",
"port": 0,
"protocol": "HTTP",
"type": "openapi",
"uri": "string"
}
],
"id": "string",
"owner": {
"createTimestamp": 1685510869834,
"domain": "string",
"email": "[email protected]",
"id": "account-100001",
"isRoot": true,
"roleId": "role-100001",
"rootAccountId": "rootAccount-100002",
"status": "INACTIVE"
},
"region": {
"area": "Singapore",
"cloud": {
"id": "string",
"isAvailable": true,
"isPublic": true,
"link": "string",
"name": "string"
},
"id": "string",
"name": "string",
"public": true,
"regionInfo": {
"info": {}
}
},
"status": "PROVISIONING",
"tags": [
"string"
],
"updateTimestamp": "2024-01-11T11:03:20.787Z"
},
"msg": "string"
}