Retrieves the basic information of an instance by using the endpoint of the instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:DescribeDBInstanceViaEndpoint |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Endpoint |
string |
Yes |
The endpoint of the instance. |
pxc-hz*******.polarx.rds.aliyuncs.com |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
14036EBE-CF2E-44DB-ACE9-AC6157D3A6FC |
| DBInstance |
object |
The instance information. |
|
| Type |
string |
The instance type. Valid values:
|
ReadWrite |
| Status |
string |
The instance status. For more information, see Instance status. |
Running |
| RightsSeparationStatus |
string |
The three-role mode status. Valid values:
|
disabled |
| DBNodeCount |
integer |
The number of instance nodes. |
2 |
| Expired |
string |
Indicates whether the instance has expired. Valid values:
|
false |
| CreateTime |
string |
The creation time. |
2021-08-31T08:56:25.000+0000 |
| PayType |
string |
The billing method of the instance. Valid values:
|
Postpaid |
| Port |
string |
The port of the instance endpoint. |
3306 |
| LockMode |
string |
The lock mode of the instance. Valid values:
|
Unlock |
| Description |
string |
The instance description. |
test instance |
| ConnectionString |
string |
The endpoint of the instance. |
pxc-sprpx766vo****.polarx.singapore.rds.aliyuncs.com |
| StorageUsed |
integer |
The used storage space, in bytes. |
17042505728 |
| ExpireDate |
string |
The expiration time. The time is in the yyyy-MM-ddTHH:mm:ss.sss+0000 format (UTC). |
2022-08-31T16:00:00.000+0000 |
| CommodityCode |
string |
The commodity code of the instance. The value is fixed as drds_polarxpost_public_cn. |
drds_polarxpost_public_cn |
| MaintainStartTime |
string |
The start time of the maintenance window. The time is in UTC. Add 8 hours to obtain the maintenance window displayed in the console. |
06:00 |
| DBInstanceType |
string |
The instance type. Valid values:
|
ReadWrite |
| DBNodeClass |
string |
The node specifications of the instance. |
polarx.x4.large.2e |
| LatestMinorVersion |
string |
The latest kernel version supported by the instance. |
polarx-kernel_5.4.11-16301083_xcluster-20210805 |
| MaintainEndTime |
string |
The end time of the maintenance window. The time is in UTC. Add 8 hours to obtain the maintenance window displayed in the console. |
06:00 |
| DBType |
string |
The database type. The value is fixed as polarx. |
polarx |
| RightsSeparationEnabled |
boolean |
Indicates whether the three-role mode is enabled. Valid values:
|
false |
| VPCId |
string |
VPC ID。 |
vpc-xxxxx |
| MinorVersion |
string |
The current kernel version. |
polarx-kernel_5.4.11-16301083_xcluster-20210805 |
| RegionId |
string |
The region where the instance resides. |
cn-hangzhou |
| Network |
string |
The network type of the instance. Only VPC is supported, which indicates a virtual private cloud (VPC). |
VPC |
| DBVersion |
string |
The database version. |
5.5 |
| VSwitchId |
string |
The vSwitch ID. |
vsw-******** |
| ZoneId |
string |
The zone where the instance resides. |
cn-hangzhou-a |
| Engine |
string |
The database type. The value is fixed as MySQL. |
MySQL |
| KindCode |
integer |
The DPI engine version of the instance. This is an internal parameter. |
18 |
| Id |
string |
The ID of the primary instance. If this parameter is not returned, the instance is a primary instance. |
pxc-zkralxpc5d**** |
| DBNodes |
array<object> |
The database node information. |
|
|
object |
The database node information. |
||
| ComputeNodeId |
string |
The name of the compute node. |
pxc-i-******** |
| NodeClass |
string |
The node specifications. |
polarx.x4.large.2e |
| DataNodeId |
string |
The name of the storage node. |
pxc-xdb-xxxxxx |
| ZoneId |
string |
The zone where the node resides. |
cn-hangzhou-a |
| Id |
string |
The logical node ID. |
pxi-********* |
| RegionId |
string |
The region ID of the node. |
cn-hangzhou |
| ConnAddrs |
array<object> |
The endpoint information. |
|
|
object |
The endpoint information. |
||
| Type |
string |
The connection type. VPC indicates an internal network connection. PUBLIC indicates a public network connection. |
VPC |
| VSwitchId |
string |
The vSwitch ID. |
vsw-********* |
| Port |
integer |
The port number. |
3306 |
| VPCId |
string |
VPC ID。 |
vpc-xxxxxx |
| ConnectionString |
string |
The endpoint. |
polardbx-xxx.aliyuncs.com |
| VpcInstanceId |
string |
The internal cloud instance ID within the VPC. You can ignore this parameter. |
pxc-zkralxpc5d**** |
| ReadDBInstances |
array |
The names of read-only instances. |
|
|
string |
The names of read-only instances. |
pxr-********* |
|
| ResourceGroupId |
string |
The resource group ID. |
rg-xxxx |
| TagSet |
array<object> |
The tag set. |
|
|
object |
The tag set. |
||
| Key |
string |
The tag key. |
key2 |
| Value |
string |
The tag value. |
value2 |
| CnNodeCount |
integer |
The number of CN nodes. |
2 |
| DnNodeCount |
integer |
The number of DN nodes. |
2 |
| CnNodeClassCode |
string |
The CN node specifications. Valid values:
|
polarx.x4.xlarge.2e |
| DnNodeClassCode |
string |
The DN node specifications. Valid values:
|
mysql.x8.large.25 |
| Series |
string |
The instance edition. Valid values:
|
enterprise |
| LTSVersions |
array |
The LTS version numbers. |
|
|
string |
The LTS version numbers. |
X.X.X.X |
Examples
Success response
JSON format
{
"RequestId": "14036EBE-CF2E-44DB-ACE9-AC6157D3A6FC",
"DBInstance": {
"Type": "ReadWrite",
"Status": "Running",
"RightsSeparationStatus": "disabled",
"DBNodeCount": 2,
"Expired": "false",
"CreateTime": "2021-08-31T08:56:25.000+0000",
"PayType": "Postpaid",
"Port": "3306",
"LockMode": "Unlock",
"Description": "test instance",
"ConnectionString": "pxc-sprpx766vo****.polarx.singapore.rds.aliyuncs.com",
"StorageUsed": 17042505728,
"ExpireDate": "2022-08-31T16:00:00.000+0000",
"CommodityCode": "drds_polarxpost_public_cn",
"MaintainStartTime": "06:00",
"DBInstanceType": "ReadWrite",
"DBNodeClass": "polarx.x4.large.2e",
"LatestMinorVersion": "polarx-kernel_5.4.11-16301083_xcluster-20210805",
"MaintainEndTime": "06:00",
"DBType": "polarx",
"RightsSeparationEnabled": false,
"VPCId": "vpc-xxxxx",
"MinorVersion": "polarx-kernel_5.4.11-16301083_xcluster-20210805",
"RegionId": "cn-hangzhou",
"Network": "VPC",
"DBVersion": "5.5",
"VSwitchId": "vsw-********",
"ZoneId": "cn-hangzhou-a",
"Engine": "MySQL",
"KindCode": 18,
"Id": "pxc-zkralxpc5d****",
"DBNodes": [
{
"ComputeNodeId": "pxc-i-********",
"NodeClass": "polarx.x4.large.2e",
"DataNodeId": "pxc-xdb-xxxxxx",
"ZoneId": "cn-hangzhou-a",
"Id": "pxi-*********",
"RegionId": "cn-hangzhou"
}
],
"ConnAddrs": [
{
"Type": "VPC",
"VSwitchId": "vsw-*********",
"Port": 3306,
"VPCId": "vpc-xxxxxx",
"ConnectionString": "polardbx-xxx.aliyuncs.com",
"VpcInstanceId": "pxc-zkralxpc5d****"
}
],
"ReadDBInstances": [
"pxr-*********"
],
"ResourceGroupId": "rg-xxxx",
"TagSet": [
{
"Key": "key2",
"Value": "value2"
}
],
"CnNodeCount": 2,
"DnNodeCount": 2,
"CnNodeClassCode": "polarx.x4.xlarge.2e",
"DnNodeClassCode": "mysql.x8.large.25",
"Series": "enterprise",
"LTSVersions": [
"X.X.X.X"
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.