调用 DescribeDBInstanceDetail 接口查询实例详细信息。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | postgres-21a3333b**** | 实例 ID。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
BasicInfo | Object | 请参见返回示例。 | 实例基本信息。 |
Endpoints | Object[] | 请参见返回示例。 | 实例的连接信息。 |
ChargeDetail | Object | 请参见返回示例。 | 实例计费信息。 |
Nodes | Object[] | 请参见返回示例。 | 实例节点信息。 |
POST /?Action=DescribeDBInstanceDetail&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20231002T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "postgres-ca7b7019****" }
{ "ResponseMetadata": { "RequestId": "20231024180205883ABE275E5AA2B2DCD9", "Action": "DescribeDBInstanceDetail", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": { "BasicInfo": { "CreateTime": "2023-09-08T13:24:23.000Z", "DBEngineVersion": "PostgreSQL_12", "DataSyncMode": "Async", "InstanceId": "postgres-2a1d7921****", "InstanceName": "Name123", "InstanceStatus": "Running", "InstanceType": "HA", "Memory": 2, "NodeNumber": "2", "NodeSpec": "rds.postgres.1c2g", "ProjectName": "default", "RegionId": "cn-beijing", "StorageDataUse": 25643329, "StorageLogUse": 1099319325, "StorageSpace": 20, "StorageTempUse": 4096, "StorageType": "LocalSSD", "StorageUse": 2332934996, "StorageWALUse": 1207968246, "SubnetId": "subnet-mjhwyy1uz2f45smt1b0u****", "UpdateTime": "2023-10-19T15:56:44.000Z", "VCPU": 1, "VpcID": "vpc-mjhwy6ffeark5smt1alf****", "ZoneId": "cn-beijing-a" }, "ChargeDetail": { "AutoRenew": false, "ChargeEndTime": "", "ChargeStartTime": "2023-09-08T13:24:23.000Z", "ChargeStatus": "Normal", "ChargeType": "PostPaid", "Number": 1, "OverdueReclaimTime": "", "OverdueTime": "", "Period": 1, "PeriodUnit": "Month", "TempModifyEndTime": "2023-12-10T12:04:05.000Z", "TempModifyStartTime": "2023-12-05T12:04:05.000Z" }, "Endpoints": [ { "Address": [ { "DNSVisibility": false, "Domain": "postgres2a1d7921****.rds-pg.ivolces.com", "EipId": "", "IPAddress": "192.168.0.6", "NetworkType": "Private", "Port": "5432", "SubnetId": "subnet-mjhwyy1uz2f45smt1b0u****" } ], "AutoAddNewNodes": "Enable", "Description": "", "EnableReadOnly": "Disable", "EnableReadWriteSplitting": "Disable", "EndpointId": "postgres-2a1d7921****-cluster", "EndpointName": "", "EndpointType": "Cluster", "ReadOnlyNodeDistributionType": "Default", "ReadOnlyNodeMaxDelayTime": 30, "ReadOnlyNodeWeight": [ { "NodeId": "", "NodeType": "Primary", "Weight": 300 } ], "ReadWriteMode": "ReadWrite" } ], "Nodes": [ { "CreateTime": "2023-09-08T13:24:23.000Z", "InstanceId": "postgres-2a1d7921****", "Memory": 2, "NodeId": "postgres-2a1d7921****", "NodeSpec": "rds.postgres.1c2g", "NodeStatus": "Running", "NodeType": "Secondary", "RegionId": "cn-beijing", "UpdateTime": "", "VCPU": 1, "ZoneId": "cn-beijing-a" }, { "CreateTime": "2023-09-08T13:24:23.000Z", "InstanceId": "postgres-2a1d7921****", "Memory": 2, "NodeId": "postgres-2a1d7921****-tvgm", "NodeSpec": "rds.postgres.1c2g", "NodeStatus": "Running", "NodeType": "Primary", "RegionId": "cn-beijing", "UpdateTime": "", "VCPU": 1, "ZoneId": "cn-beijing-a" } ] } }