Queries the application policies that are attached to the specified identity. The identity may be a RAM user or RAM role.
Operation description
Note
The IdentityType and IdentityName parameters take effect only when an identity assumes the application administrator role to call this operation. Otherwise, only application policies that are attached to the current identity are returned.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
IdentityType | string | Yes | The type of the identity. Valid values:
| RamUser |
IdentityName | string | Yes | The name of the identity.
| test****name |
AppId | string | No | The ID of the application. Default value: app-1000000. For more information, see Overview . | app-**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C9F3E715-B3B8-4D*****27-3A70346F0E04",
"AppPolicyList": [
{
"CreationTime": "2019-01-01T01:01:01Z",
"Description": "App full access permission",
"AppId": "app-****",
"PolicyValue": "****",
"PolicyName": "VODAppFullAccess",
"ModificationTime": "2019-01-01T01:08:01Z",
"PolicyType": "System"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.