All Products
Search
Document Center

ApsaraVideo VOD:ListAppPoliciesForIdentity

Last Updated:Jul 19, 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

There is currently no authorization information disclosed in the API.

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
AppPolicyListarray<object>

The details of each policy.

Note A maximum of 100 entries can be returned.
object
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.