Queries all the permissions granted to a role.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request header. For more information, see Common parameters for API calls.

Request syntax

POST /pop/v5/account/authority_list HTTP/1.1

Request parameters

None.

Response parameters

Parameter Type Example Description
AuthorityList Array of Authority

The list of permissions.

Authority
ActionList Array of Action

The set of permissions.

Action
Code String 1

The serial number of the permission granted to the role.

Description String Create an application

The description of the permission.

GroupId String 1

The ID of the permission group to which the permission granted to the role belongs.

Name String Create an application

The name of the permission.

Description String Operations on applications

The description of the permission group.

GroupId String 1

The ID of the permission group to which the permission granted to the role belongs.

Name String Application management

The name of the permission group.

Code Integer 200

The HTTP status code.

Message String success

The returned message that indicates whether the request is successful.

RequestId String 57609587-DFA2-41EC-****-*********

The ID of the request.

Examples

Sample requests

POST /pop/v5/account/authority_list HTTP/1.1
Common request headers

Sample success responses

XML format

<RequestId>57609587-DFA2-41EC-****-*********</RequestId>
<Message>success</Message>
<Code>200</Code>
<AuthorityList>
    <Authority>
        <Description>Operations on applications</Description>
        <Name>Application management</Name>
        <GroupId>1</GroupId>
        <ActionList>
            <Action>
                <Description>Creates an application</Description>
                <Code>1</Code>
                <Name>Create an application</Name>
                <GroupId>1</GroupId>
            </Action>
        </ActionList>
    </Authority>
</AuthorityList>

JSON format

{
    "RequestId": "57609587-DFA2-41EC-****-*********",
    "Message": "success",
    "Code": 200,
    "AuthorityList": {
        "Authority": {
            "Description": "Operations on applications",
            "Name": "Application management",
            "GroupId": 1,
            "ActionList": {
                "Action": {
                    "Description": "Creates an application",
                    "Code": 1,
                    "Name": "Create an application",
                    "GroupId": 1
                }
            }
        }
    }
}

Error codes

For a list of error codes, visit the API Error Center.