CheckDGEnabled
Checks if Database Gateway (DG) is enabled.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
200 |
| Data |
string |
The response data. |
true |
| ErrorMsg |
string |
The error message returned if the request fails. |
未开通 |
| RequestId |
string |
The request ID, used to locate logs and troubleshoot issues. |
8F29E3E9-2847-53BF-ADF0-130E3CEA5C63 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| AccessDeniedDetail |
object |
Details about the access denial. |
|
| AuthAction |
string |
The API name. |
dms-dg:CheckDGEnabled |
| AuthPrincipalDisplayName |
string |
The principal that initiated the request. |
23894333884425**** |
| AuthPrincipalOwnerId |
string |
The ID of the Alibaba Cloud account that owns the principal. |
1218522260143*** |
| AuthPrincipalType |
string |
The principal type. |
SubUser |
| EncodedDiagnosticMessage |
string |
The encoded diagnostic message. |
AQFpaFA9aWhQPUVGNTY4MDU3LTE1OEQtMzYwMi05RkM5LUM0MEJGRjA4RkExOQ== |
| NoPermissionType |
string |
The cause of the authorization failure. |
ExplicitDeny |
| PolicyType |
string |
The policy type that caused the authorization failure. |
COST_OPTIMIZED |
Examples
Success response
JSON format
{
"Code": "200",
"Data": "true",
"ErrorMsg": "未开通",
"RequestId": "8F29E3E9-2847-53BF-ADF0-130E3CEA5C63",
"Success": true,
"AccessDeniedDetail": {
"AuthAction": "dms-dg:CheckDGEnabled",
"AuthPrincipalDisplayName": "23894333884425****",
"AuthPrincipalOwnerId": "1218522260143***",
"AuthPrincipalType": "SubUser",
"EncodedDiagnosticMessage": "AQFpaFA9aWhQPUVGNTY4MDU3LTE1OEQtMzYwMi05RkM5LUM0MEJGRjA4RkExOQ==",
"NoPermissionType": "ExplicitDeny",
"PolicyType": "COST_OPTIMIZED"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.