Decodes the diagnostic information in the response that contains an access denied error. The error is caused by no RAM permissions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:DecodeDiagnosticMessage |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EncodedDiagnosticMessage |
string |
No |
The encoded diagnostic information in the response that contains an access denied error. The error is caused by no RAM permissions. |
AQEAAAAAZBgxr0U1MjA1NTM1LUM4BBktMzE5RS1CODgxLUU1QTI0RDNFQTM1**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
D2331703-AADF-5564-BA9B-26CD51A33BA0 |
| DecodedDiagnosticMessage |
object |
The decoded diagnostic information. |
|
| ExplicitDeny |
boolean |
Indicates whether the access denied error is caused by an explicit deny. Valid values:
Valid values:
|
true |
| NoPermissionPolicyType |
string |
The type of the policy that causes the access denied error. Valid values:
Valid values:
|
AccountLevelIdentityBasedPolicy |
| AuthAction |
string |
The operation that is used for authentication in the request. |
ram:DecodeDiagnosticMessage |
| AuthResource |
string |
The resource that is used for authentication in the request. |
* |
| AuthPrincipal |
object |
The operator that is used for authentication in the request. |
|
| AuthPrincipalType |
string |
The identity type that is used for authentication in the request. Valid values:
Valid values:
|
SubUser |
| AuthPrincipalOwnerId |
string |
The ID of the Alibaba Cloud account to which the identity belongs. |
196813200012**** |
| AuthPrincipalDisplayName |
string |
The identity.
|
28877424437521**** |
| AuthConditions |
array<object> |
The conditions that are used for authentication in the request. |
|
|
object |
The conditions that are used for authentication in the request. |
||
| ConditionKey |
string |
The key of the condition. |
acs:SourceIp |
| ConditionValues |
array |
The values that correspond to the key. |
|
|
string |
The value that corresponds to the key. |
172.16.215.218 |
|
| MatchedPolicies |
array<object> |
The policies that are matched. |
|
|
object |
The policies that are matched. |
||
| Effect |
string |
The effect of the policy. Valid values:
Valid values:
|
Deny |
| PolicyIdentifier |
string |
The identifier of the policy.
|
MyPolicyName |
| PolicyType |
string |
The type of the policy. Valid values:
Valid values:
|
Custom |
| PolicyVersion |
string |
The version number of the policy. Note
Only custom policies have version numbers. |
v1 |
| AttachedEntityType |
string |
The type of the entity to which the policy is attached. Valid values:
Valid values:
|
RamUser |
| AttachedScope |
string |
The authorization scope of the policy. Valid values:
Valid values:
|
Account |
Examples
Success response
JSON format
{
"RequestId": "D2331703-AADF-5564-BA9B-26CD51A33BA0",
"DecodedDiagnosticMessage": {
"ExplicitDeny": true,
"NoPermissionPolicyType": "AccountLevelIdentityBasedPolicy",
"AuthAction": "ram:DecodeDiagnosticMessage",
"AuthResource": "*",
"AuthPrincipal": {
"AuthPrincipalType": "SubUser",
"AuthPrincipalOwnerId": "196813200012****",
"AuthPrincipalDisplayName": "28877424437521****"
},
"AuthConditions": [
{
"ConditionKey": "acs:SourceIp",
"ConditionValues": [
"172.16.215.218"
]
}
],
"MatchedPolicies": [
{
"Effect": "Deny",
"PolicyIdentifier": "MyPolicyName",
"PolicyType": "Custom",
"PolicyVersion": "v1",
"AttachedEntityType": "RamUser",
"AttachedScope": "Account"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NotSupport | This method can only be invoked by customer, sub user and assumed role user. | |
| 400 | EncodedMessageExpire | The EncodedDiagnosticMessage is expired. | |
| 403 | NoPermission | You do not have the required permissions. | |
| 404 | SearchInaccurate | The search result is inaccurate, please retry later. | |
| 404 | EntityNotExist | The specific DecodedDiagnosticMessage cannot be found. | |
| 429 | TooManyRequests | Too many search requests at same time, please retry later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.