All Products
Search
Document Center

ApsaraVideo VOD:ListAppPoliciesForIdentity

Last Updated:Apr 16, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vod:ListAppPoliciesForIdentityList
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
IdentityTypestringYes

The type of the identity. Valid values:

  • RamUser: a RAM user.
  • RamRole: a RAM role.
RamUser
IdentityNamestringYes

The name of the identity.

  • Specifies the ID of the RAM user when the IdentityType parameter is set to RamUser.
  • Specifies the name of the RAM role when the IdentityType parameter is set to RamRole.
test****name
AppIdstringNo

The ID of the application. Default value: app-1000000. For more information, see Overview .

app-****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

C9F3E715-B3B8-4D*****27-3A70346F0E04
AppPolicyListobject []

The details of each policy.

Note A maximum of 100 entries can be returned.
CreationTimestring

The time when the application policy was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2019-01-01T01:01:01Z
Descriptionstring

The description of the policy.

App full access permission
AppIdstring

The ID of the application.

app-****
PolicyValuestring

The content of the policy.

****
PolicyNamestring

The name of the policy.

VODAppFullAccess
ModificationTimestring

The last time when the application policy was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2019-01-01T01:08:01Z
PolicyTypestring

The type of the policy. Valid values:

  • System
  • Custom
System

Examples

Sample success responses

JSONformat

{
  "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.

Common errors

The following table describes the common errors that this operation can return.

Error codeError messageHTTP status codeDescription
OperationDenied.NotOpenAppServiceThe app service is not open.403The error message returned because the multi-application service has not been activated.