查詢 ContextDB-X 執行個體資訊。
介面說明
PolarDB-X 2.0 SQL 審計與分析功能本身免費使用,但日誌服務會對儲存空間、讀取流量、請求數量、資料加工、資料投遞等進行收費,更多關於 SQL 審計功能的詳情,請參見開啟 SQL 審計與分析。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-hangzhou |
| DBInstanceName |
string |
是 |
執行個體名稱。 |
pxc-******** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
Id of the request |
1A586DCB-39A6-4050-81CC-C7BD4CCDB49F |
| Data |
object |
執行個體資料。 |
|
| Instance |
object |
執行個體資訊。 |
|
| InstanceId |
string |
pxc-spsil01pww4hfz-mem |
|
| RegionId |
string |
ap-southeast-1 |
|
| ZoneId |
string |
ap-southeast-1a |
|
| ClassCode |
string |
mysql.x2.large.2c |
|
| NodeCount |
integer |
1 |
|
| CreateTime |
string |
2026-02-17T02:00:20Z |
|
| Status |
string |
Running |
|
| StorageType |
string |
local_ssd |
|
| VPCId |
string |
vpc-t4n4hf9xey7ea3lp4bwwx |
|
| VSwitchId |
string |
vsw-t4ny14pr37spmjsbv5dc2 |
|
| OpenSearchInstanceName |
string |
pxs-******** |
|
| ConnAddrs |
array<object> |
||
|
object |
|||
| NodeType |
string |
service |
|
| Type |
string |
VPC |
|
| VPCId |
string |
vpc-t4n4hf9xey7ea3lp4bwwx |
|
| VSwitchId |
string |
vsw-t4ny14pr37spmjsbv5dc2 |
|
| Port |
integer |
3306 |
|
| VpcInstanceId |
string |
pxc-spsil01pww4hfzjayd-cn-20251013180429 |
|
| ConnectionString |
string |
pxc-spsil01pww4hfz.polarx.singapore.rds.aliyuncs.com |
|
| ReplicaSets |
array<object> |
||
|
array<object> |
|||
| NodeType |
string |
service |
|
| InstanceId |
string |
pxc-hzrbqgiocrpu8a |
|
| ZoneId |
string |
cn-beijing-i |
|
| ClassCode |
string |
pg.x2.13large.2c |
|
| NodeCount |
integer |
1 |
|
| CreateTime |
string |
2026-07-28T02:01:13Z |
|
| Status |
string |
enabled |
|
| StorageType |
string |
cloud_essd |
|
| ConnAddrs |
array<object> |
||
|
object |
|||
| NodeType |
string |
service |
|
| Type |
string |
RemoveHeader |
|
| VPCId |
string |
vpc-bp1550umsomy2mw24vhwl |
|
| VSwitchId |
string |
vsw-2zedp17pfss1133bvdizl |
|
| Port |
integer |
3306 |
|
| VpcInstanceId |
string |
vpc-8vbdw66evguopfcfvieoi |
|
| ConnectionString |
string |
pxc-hzrlz8e3khuaoz.polarx.rds.aliyuncs.com |
|
| DBInstanceName |
string |
pxc-hzr9qzafkeury3 |
|
| AccessDeniedDetail |
object |
無權限存取詳情。 |
|
| AuthAction |
string |
鑑權動作。 |
xxx |
| AuthPrincipalType |
string |
鑑權主體類型。 |
222 |
| AuthPrincipalOwnerId |
string |
鑑權主體 OwnerId。 |
111 |
| AuthPrincipalDisplayName |
string |
鑑權主體名稱。 |
xxx |
| PolicyType |
string |
策略類型。 |
PRIORITY |
| NoPermissionType |
string |
無權限類型。 |
ImplicitDeny |
| EncodedDiagnosticMessage |
string |
診斷資訊。 |
AQEAAAAAaKPfwjY0MzMyODRGLUZCQkQtNTA1RS04MUUxLTc5NTkzODk2MUIzMg== |
樣本
正常返回樣本
JSON格式
{
"RequestId": "1A586DCB-39A6-4050-81CC-C7BD4CCDB49F",
"Data": {
"Instance": {
"InstanceId": "pxc-spsil01pww4hfz-mem",
"RegionId": "ap-southeast-1",
"ZoneId": "ap-southeast-1a",
"ClassCode": "mysql.x2.large.2c",
"NodeCount": 1,
"CreateTime": "2026-02-17T02:00:20Z",
"Status": "Running",
"StorageType": "local_ssd",
"VPCId": "vpc-t4n4hf9xey7ea3lp4bwwx",
"VSwitchId": "vsw-t4ny14pr37spmjsbv5dc2",
"OpenSearchInstanceName": "pxs-********",
"ConnAddrs": [
{
"NodeType": "service",
"Type": "VPC",
"VPCId": "vpc-t4n4hf9xey7ea3lp4bwwx",
"VSwitchId": "vsw-t4ny14pr37spmjsbv5dc2",
"Port": 3306,
"VpcInstanceId": "pxc-spsil01pww4hfzjayd-cn-20251013180429",
"ConnectionString": "pxc-spsil01pww4hfz.polarx.singapore.rds.aliyuncs.com"
}
],
"ReplicaSets": [
{
"NodeType": "service",
"InstanceId": "pxc-hzrbqgiocrpu8a",
"ZoneId": "cn-beijing-i",
"ClassCode": "pg.x2.13large.2c",
"NodeCount": 1,
"CreateTime": "2026-07-28T02:01:13Z",
"Status": "enabled",
"StorageType": "cloud_essd",
"ConnAddrs": [
{
"NodeType": "service",
"Type": "RemoveHeader",
"VPCId": "vpc-bp1550umsomy2mw24vhwl",
"VSwitchId": "vsw-2zedp17pfss1133bvdizl",
"Port": 3306,
"VpcInstanceId": "vpc-8vbdw66evguopfcfvieoi",
"ConnectionString": "pxc-hzrlz8e3khuaoz.polarx.rds.aliyuncs.com"
}
]
}
],
"DBInstanceName": "pxc-hzr9qzafkeury3"
}
},
"AccessDeniedDetail": {
"AuthAction": "xxx",
"AuthPrincipalType": "222",
"AuthPrincipalOwnerId": "111",
"AuthPrincipalDisplayName": "xxx",
"PolicyType": "PRIORITY",
"NoPermissionType": "ImplicitDeny",
"EncodedDiagnosticMessage": "AQEAAAAAaKPfwjY0MzMyODRGLUZCQkQtNTA1RS04MUUxLTc5NTkzODk2MUIzMg=="
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。