Queries the details of a database instance.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Tid | long | No | The ID of the tenant. You can call the GetUserActiveTenant operation to obtain the tenant ID. | 2*** |
Host | string | Yes | The endpoint of the database instance. You can call the ListInstances operation to obtain the endpoint. | 172.17.XXX.XXX |
Port | integer | Yes | The port number that is used to connect to the database instance. You can call the ListInstances operation to obtain the port number. | 5432 |
Sid | string | No | The system ID (SID) of the database instance. You can call the ListInstances operation to obtain the SID. | test |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "F6C80B69-3203-56AC-8021-18BA72A6F4E1",
"Instance": {
"VpcId": "vpc-o6wrloqsdqc9io3mg****",
"DatabaseUser": "dbuser",
"DbaId": "29****",
"UseDsql": 0,
"Port": 5432,
"EcsInstanceId": "i-bp124ldpklqz59y3****",
"EnvType": "test",
"Sid": "test",
"OwnerIdList": {
"OwnerIds": [
"10****"
]
},
"SafeRuleId": "3****",
"OwnerNameList": {
"OwnerNames": [
"yang_test"
]
},
"DbaNickName": "dbaname",
"QueryTimeout": 7200,
"InstanceSource": "ECS_OWN",
"Host": "192.168.XXX.XXX",
"State": "NORMAL",
"DataLinkName": "test",
"ExportTimeout": 86400,
"InstanceId": "188****",
"InstanceType": "postgresql",
"DatabasePassword": "******",
"InstanceAlias": "test",
"DdlOnline": 0,
"EcsRegion": "cn-beijing",
"StandardGroup": {
"GroupName": "test group name",
"GroupMode": "NONE_CONTROL"
},
"SellSitd": "false"
},
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history