Invokes this operation to attach access permissions of an ApsaraVideo VOD application to a specified identity (Resource Access Management (RAM) user or RAM role).
Operation description
If the policy name is VODAppAdministratorAccess, AppId is optional. For other policies, AppId is required.
Try it now
Test
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 identity name.
|
**** |
| AppId |
string |
No |
The application ID. Default value: app-1000000. For more information, see Multi-application. Note
If the policy name is VODAppAdministratorAccess, this parameter is optional. For other policies, this parameter is required. |
app-**** |
| PolicyNames |
string |
Yes |
The policy names. Separate multiple names with commas (,). Only system policies are supported. Valid values:
|
VODAppFullAccess |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25818875-5F78-4A13-****-D7393642CA58 |
| NonExistPolicyNames |
array |
The list of policy names that do not exist. |
|
|
string |
The list of policy names that do not exist. |
test****1 |
|
| FailedPolicyNames |
array |
The policy names that failed to be attached. |
|
|
string |
The policy names that failed to be attached. |
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.