You can call this operation to query roles defined in Enterprise Distributed Application Service (EDAS).

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 only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

POST /pop/v5/account/role_list HTTPS|HTTP

Request parameters

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

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

The ID of the request.

RoleList Array

The returned list of roles.

ActionList Array

The set of operation permissions granted to the role returned.

GroupId String 31

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

Code String 1

The code of the permission granted to the role returned.

Name String Operation records

The name of the permission granted to the role returned.

Description String Operations on operation records

The description of the permission granted to the role returned.

Role Struct

The returned role.

Id Integer 1

The ID of the role returned.

AdminUserId String test**@aliyun.com

The ID of the primary account corresponding to the role returned.

Name String Super Admin(All privileges)

The name of the role returned.

CreateTime Long 1542717260156

The time when the role was created.

UpdateTime Long 1542717260156

The time when the role was updated.

IsDefault Boolean false

Indicates whether the role is a default role.

Examples

Sample requests

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

Sample success responses

JSON format

{
    "Message": "success",
    "Code": 200,
    "RoleList": {
        "RoleItem": [
            {
                "Role": {
                    "Name": "Super Admin(All privileges)",
                    "CreateTime": 1542717260156,
                    "UpdateTime": 1542717260156,
                    "Id": 11111111
                },
                "ActionList": {
                    "Action": [
                        {
                            "Name": "Operation records",
                            "Description": "Operations on operation records",
                            "Code": "1",
                            "GroupId": "31"
                        }
                    ]
                }
            }
        ]
    }
}

XML format

<Message>success</Message>
<Code>200</Code>
<RoleList>
    <RoleItem>
        <Role>
            <Name>Super Admin(All privileges)</Name>
            <CreateTime>1542717260156</CreateTime>
            <UpdateTime>1542717260156</UpdateTime>
            <Id>15691</Id>
        </Role>
        <ActionList>
            <Action>
                <Name>Operation records</Name>
                <Description>Operations on operation records</Description>
                <Code>1</Code>
                <GroupId>31</GroupId>
            </Action>
        </ActionList>
    </RoleItem>
</RoleList>

Error codes

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