Grants a RAM user or RAM role permissions to access ApsaraVideo VOD applications.
Operation description
Each RAM user or RAM role can be granted permissions to access a maximum of 10 applications.
To call this operation, you must have application administrator permissions. We recommend that you use your Alibaba Cloud account for the first call.
The AppId parameter is optional only if you set PolicyNames to VODAppAdministratorAccess.
Try it now

RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
vod:AttachAppPolicyToIdentity | none | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
IdentityType | string | Yes | The identity type. Valid values:
| RamRole |
IdentityName | string | Yes | The ID of the RAM user or the name of the RAM role.
| **** |
AppId | string | No | The application ID. Default value: app-1000000. For more information, see Multi-application. Note This parameter is optional only if you set PolicyNames to VODAppAdministratorAccess. | app-**** |
PolicyNames | string | Yes | Only system policies are supported. Separate multiple policy names with commas (,). Valid values:
| VODAppFullAccess |
Response parameters
Parameter | Type | Description | Example |
object | |||
RequestId | string | The ID of the request. | 25818875-5F78-4A13-****-D7393642CA58 |
NonExistPolicyNames | array | The names of the policies that were not found. | |
string | The names of the policies that were not found. | test****1 | |
FailedPolicyNames | array | The names of the policies that failed to be granted to the RAM user or RAM role. | |
string | The names of the policies that failed to be granted to the RAM user or RAM role. | test****2 |
Examples
Success response
JSON
format
{
"RequestId": "25818875-5F78-4A13-****-D7393642CA58",
"NonExistPolicyNames": [
"test****1"
],
"FailedPolicyNames": [
"test****2"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.