Gets the details of a specified instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetInstance |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. Call the GetUserActiveTenant operation to obtain this value. |
2*** |
| Host |
string |
Yes |
The endpoint of the instance. Call the ListInstances operation to obtain this value. |
172.17.XXX.XXX |
| Port |
integer |
Yes |
The port of the instance. Call the ListInstances operation to obtain this value. |
5432 |
| Sid |
string |
No |
The SID of the instance. Call the ListInstances operation to obtain this value. |
test |
| RealLoginUserUid |
string |
No |
This parameter is reserved. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F6C80B69-3203-56AC-8021-18BA72A6F4E1 |
| Instance |
object |
Details about the instance. |
|
| VpcId |
string |
The ID of the VPC to which the instance belongs. |
vpc-o6wrloqsdqc9io3mg**** |
| DatabaseUser |
string |
The username used to log on to the instance. |
dbuser |
| DbaId |
string |
The ID of the database administrator (DBA) of the instance. |
29**** |
| UseDsql |
integer |
Indicates whether cross-database query is enabled for the instance. Valid values:
|
0 |
| Port |
integer |
The port used to connect to the instance. |
5432 |
| EcsInstanceId |
string |
The ID of the ECS instance on which the database instance is deployed. |
i-bp124ldpklqz59y3**** |
| EnvType |
string |
The type of the environment to which the instance belongs. Valid values:
|
test |
| Sid |
string |
The system ID (SID) of the instance. |
test |
| OwnerIdList |
object |
The IDs of the instance owners. |
|
| OwnerIds |
array |
The user IDs of the instance owners. |
|
|
string |
The user ID of an instance owner. |
10**** |
|
| SafeRuleId |
string |
The ID of the security rule set for the instance. |
3**** |
| OwnerNameList |
object |
The nicknames of the instance owners. |
|
| OwnerNames |
array |
The nicknames of the instance owners. |
|
|
string |
The nickname of an instance owner. |
yang_test |
|
| DbaNickName |
string |
The nickname of the DBA of the instance. |
dbaname |
| QueryTimeout |
integer |
The timeout period for querying data in the instance. Unit: seconds. |
7200 |
| InstanceSource |
string |
The source of the instance. |
ECS_OWN |
| Host |
string |
The endpoint used to connect to the instance. |
192.168.XXX.XXX |
| State |
string |
The state of the instance. Valid values:
|
NORMAL |
| DataLinkName |
string |
The name of the data link for the instance. |
test |
| ExportTimeout |
integer |
The timeout period for exporting data from the instance. Unit: seconds. |
86400 |
| InstanceId |
string |
The ID of the instance. |
188**** |
| InstanceType |
string |
The type of the database. |
postgresql |
| DatabasePassword |
string |
The password that corresponds to the username. |
****** |
| InstanceAlias |
string |
The alias of the instance. |
测试 |
| DdlOnline |
integer |
Indicates whether lock-free schema change is enabled for the instance. |
0 |
| EcsRegion |
string |
The region where the instance resides. |
cn-beijing |
| StandardGroup |
object |
The control mode of the instance. |
|
| GroupName |
string |
The name of the security rule set that corresponds to the control mode. |
自由操作 |
| GroupMode |
string |
The control mode. Valid values:
|
NONE_CONTROL |
| SellSitd |
string |
Indicates whether sensitive data protection is enabled. Valid values:
|
false |
| SellTrust |
string |
This parameter is reserved. |
|
| ErrorCode |
string |
The error code returned. |
UnknownError |
| ErrorMessage |
string |
The error message returned. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
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": "测试",
"DdlOnline": 0,
"EcsRegion": "cn-beijing",
"StandardGroup": {
"GroupName": "自由操作",
"GroupMode": "NONE_CONTROL"
},
"SellSitd": "false",
"SellTrust": ""
},
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.