Queries the sub-accounts and Resource Access Management (RAM) users.

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 the common request header. For more information, see Common request parameters.

Request syntax

POST /pop/v5/account/sub_account_list HTTP/1.1

Request parameters

No request parameters.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Message String message

The returned message.

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

The ID of the request.

SubAccountList Array of SubAccount

The sub-accounts and RAM users.

SubAccount
AdminEdasId String 12456889****

The ID of the Alibaba Cloud account. This ID is generated by Enterprise Distributed Application Service (EDAS).

AdminUserId String test@13624697***

The user ID of the Alibaba Cloud account.

AdminUserKp String 12456889****

This parameter is the same as the AdminEdasId parameter. This parameter is obsolete.

Email String email@aliyun.com

The email address of the user who created the Alibaba Cloud account.

Phone String 1373322****

The contact information of the Alibaba Cloud account.

SubEdasId String 28382009411268****

The ID of the sub-account or RAM user. This ID is generated by EDAS.

SubUserId String ram1@117274586608****

The user ID of the sub-account or RAM user.

SubUserKp String 28382009411268****

This parameter is the same as the SubEdasId parameter. This parameter is obsolete.

Examples

Sample requests

POST /pop/v5/account/sub_account_list HTTP/1.1
Common request header

Sample success responses

XML format

<RequestId>57609587-DFA2-41EC-****-*********</RequestId>
<Message>message</Message>
<SubAccountList>
    <SubAccount>
        <AdminEdasId>12456889****</AdminEdasId>
        <AdminUserKp>12456889****</AdminUserKp>
        <Email>email@aliyun.com</Email>
        <SubEdasId>28382009411268****</SubEdasId>
        <Phone>1373322****</Phone>
        <AdminUserId>test@13624697***</AdminUserId>
        <SubUserId>ram1@117274586608****</SubUserId>
        <SubUserKp>28382009411268****</SubUserKp>
    </SubAccount>
</SubAccountList>
<Code>200</Code>

JSON format

{
    "RequestId": "57609587-DFA2-41EC-****-*********",
    "Message": "message",
    "SubAccountList": {
        "SubAccount": {
            "AdminEdasId": "12456889****",
            "AdminUserKp": "12456889****",
            "Email": "email@aliyun.com",
            "SubEdasId": "28382009411268****",
            "Phone": "1373322****",
            "AdminUserId": "test@13624697***",
            "SubUserId": "ram1@117274586608****",
            "SubUserKp": "28382009411268****"
        }
    },
    "Code": 200
}

Error codes

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