调用 DescribeDBInstanceDetail 接口查询 veDB MySQL 实例的详情信息。
同步请求。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | vedbm-r3xq0zdl**** | 实例 ID。 说明 您可以调用 DescribeDBInstances 接口查询实例 ID。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ChargeDetail | ChargeDetailObject | 请参见返回示例。 | 计费详细信息。详细信息,请参见 ChargeDetailObject。 |
Nodes | Array of NodeObject | 实例节点的详细信息。详细信息,请参见 NodeObject。 | |
Endpoints | Array of EndpointObject | 连接终端的详细信息。详细信息,请参见 EndpointObject。 | |
InstanceDetail | InstanceDetailObject | 实例的基本信息。详细信息,请参见 InstanceDetailObject。 | |
Tags | Array of TagObject | 实例绑定的标签键和标签值数组对象。详细信息,请参见 TagObject。 |
POST /?Action=DescribeDBInstanceDetail&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: vedbm.volcengineapi.com X-Date: 20220410T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20220410/cn-beijing/vedbm/request,SignedHeaders=x-date, Signature=6a593bf5f59e7c1109fb205c739d1cff4c672fe2d251963f4d48c8701d16**** { "InstanceId" : "vedbm-1ql2ff4u****" }
正常返回示例
{ "ResponseMetadata": { "RequestId": "2023080110352963A9D3FB2611C013333C", "Action": "DescribeDBInstanceDetail", "Version": "2022-01-01", "Service": "vedbm", "Region": "cn-beijing" }, "Result": { "ChargeDetail": { "ChargeStatus": "Normal", "ChargeType": "PostPaid", "OverdueReclaimTime": "", "OverdueTime": "" }, "Endpoints": [ { "Addresses": [ { "DNSVisibility": false, "Domain": "vedbm-gzwdsf9b****.pri.mysql.vedb.ivolces.com", "EipId": "", "IPAddress": "192.***.***.3", "NetworkType": "Private", "Port": "3306", "SubnetId": "subnet-13fz1bsbrsw743n6nu47c****" } ], "AutoAddNewNodes": false, "ConsistLevel": "Global", "ConsistTimeout": 0, "ConsistTimeoutAction": "ReadMaster", "Description": "主节点终端", "DistributedTransaction": false, "EndpointId": "vedbm-gzwdsf9b****-Primary", "EndpointName": "主节点终端", "EndpointType": "Primary", "MasterAcceptReadRequests": true, "NodeIds": [ "vedbm-gzwdsf9b****-1" ], "ReadWriteMode": "ReadWrite" }, { "Addresses": [ { "DNSVisibility": false, "Domain": "vedbm-gzwdsf9b****.default.mysql.vedb.ivolces.com", "EipId": "", "IPAddress": "192.***.***.2", "NetworkType": "Private", "Port": "3306", "SubnetId": "subnet-13fz1bsbrsw743n6nu47c****" } ], "AutoAddNewNodes": true, "ConsistLevel": "Session", "ConsistTimeout": 20000, "ConsistTimeoutAction": "ReadMaster", "Description": "默认终端", "DistributedTransaction": true, "EndpointId": "vedbm-gzwdsf9b****-ReadWriteSplit", "EndpointName": "默认终端", "EndpointType": "Cluster", "MasterAcceptReadRequests": true, "NodeIds": [ "vedbm-gzwdsf9b****-0", "vedbm-gzwdsf9b****-1" ], "ReadWriteMode": "ReadWrite" }, { "Addresses": [ { "DNSVisibility": false, "Domain": "vedbm-gzwdsf9b****.custom-t5ly.mysql.vedb.ivolces.com", "EipId": "", "IPAddress": "192.***.***.10", "NetworkType": "Private", "Port": "3306", "SubnetId": "subnet-13fz1bsbrsw743n6nu47c****" } ], "AutoAddNewNodes": false, "Description": "", "DistributedTransaction": true, "EndpointId": "vedbm-gzwdsf9b****-Custom-t5ly", "EndpointName": "自定义终端", "EndpointType": "Custom", "MasterAcceptReadRequests": true, "NodeIds": [ "vedbm-gzwdsf9b****-0", "vedbm-gzwdsf9b****-1" ], "ReadWriteMode": "ReadWrite" } ], "InstanceDetail": { "CreateTime": "2023-07-14T03:36:42Z", "DBEngineVersion": "MySQL_8_0", "DeletionProtection": "disabled", "InstanceId": "vedbm-gzwdsf9b****", "InstanceName": "yangrui_test1", "InstanceStatus": "Running", "InstanceStructures": [ { "Nodes": [ { "Memory": 16, "NodeId": "vedbm-gzwdsf9b****-0", "NodeSpec": "vedb.mysql.x4.large", "NodeType": "ReadOnly", "ZoneId": "cn-beijing-b", "vCPU": 4 }, { "Memory": 16, "NodeId": "vedbm-gzwdsf9b****-1", "NodeSpec": "vedb.mysql.x4.large", "NodeType": "Primary", "ZoneId": "cn-beijing-b", "vCPU": 4 } ], "SubInstanceType": "Primary", "ZoneIds": "cn-beijing-b" } ], "LowerCaseTableNames": "1", "PrePaidStorageInGB": 50, "PrimaryDBAccount": "", "ProjectName": "default", "RegionId": "cn-beijing", "SpecFamily": "General", "StorageChargeType": "PostPaid", "StorageUsedGiB": 0.997, "SubnetId": "subnet-13fz1bsbrsw743n6nu47c****", "TimeZone": "UTC +08:00", "VpcId": "vpc-13fz0iip9nlds3n6nu4fi****", "ZoneIds": "cn-beijing-b" }, "Nodes": [ { "Memory": 16, "NodeId": "vedbm-gzwdsf9b****-0", "NodeSpec": "vedb.mysql.x4.large", "NodeType": "ReadOnly", "ZoneId": "cn-beijing-b", "vCPU": 4 }, { "Memory": 16, "NodeId": "vedbm-gzwdsf9b****-1", "NodeSpec": "vedb.mysql.x4.large", "NodeType": "Primary", "ZoneId": "cn-beijing-b", "vCPU": 4 } ], "Tags": [ { "Key": "instancetype", "Value": "cluster" } ] } }
更多详情,请参见错误码。