Queries the management credentials of ContextDB-X.
Operation description
The SQL audit and analysis feature of PolarDB-X 2.0 is free of charge. However, Simple Log Service charges fees for storage space, read traffic, number of requests, data transformation, and data shipping. For more information about the SQL audit feature, see Enable SQL audit and analysis.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| DBInstanceName |
string |
Yes |
The instance ID. |
pxc-******** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Id of the request |
9B2F3840-5C98-475C-B269-2D5C3A31797C |
| Data |
object |
The data struct. |
|
| ContextDBInstanceName |
string |
The name of the context service instance. |
pxt-********* |
| ContextDBAdminKey |
string |
The admin key of the context service instance. |
ctx-admin-*** |
| ContextDBOwnerKey |
string |
The owner key of the context service instance. |
ctx-*** |
| DBInstanceName |
string |
The instance name. |
pxc-********* |
| OpenSearchInstanceName |
string |
The name of the PolarDB-X Search instance. |
pxs-********* |
| AccessDeniedDetail |
object |
The details of the access denial. |
|
| AuthAction |
string |
The authentication action. |
xxx |
| AuthPrincipalType |
string |
The type of the authentication principal. |
222 |
| AuthPrincipalOwnerId |
string |
The owner ID of the authentication principal. |
111 |
| AuthPrincipalDisplayName |
string |
The display name of the authentication principal. |
xxx |
| PolicyType |
string |
The policy type. |
PRIORITY |
| NoPermissionType |
string |
NoPermissionType |
ImplicitDeny |
| EncodedDiagnosticMessage |
string |
The encoded diagnostic message. |
AQEAAAAAaKPfwjY0MzMyODRGLUZCQkQtNTA1RS04MUUxLTc5NTkzODk2MUIzMg== |
Examples
Success response
JSON format
{
"RequestId": "9B2F3840-5C98-475C-B269-2D5C3A31797C",
"Data": {
"ContextDBInstanceName": "pxt-*********",
"ContextDBAdminKey": "ctx-admin-***",
"ContextDBOwnerKey": "ctx-***",
"DBInstanceName": "pxc-*********",
"OpenSearchInstanceName": "pxs-*********"
},
"AccessDeniedDetail": {
"AuthAction": "xxx",
"AuthPrincipalType": "222",
"AuthPrincipalOwnerId": "111",
"AuthPrincipalDisplayName": "xxx",
"PolicyType": "PRIORITY",
"NoPermissionType": "ImplicitDeny",
"EncodedDiagnosticMessage": "AQEAAAAAaKPfwjY0MzMyODRGLUZCQkQtNTA1RS04MUUxLTc5NTkzODk2MUIzMg=="
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.