Queries the information of a member account.

In this example, the information of the member account whose Alibaba Cloud account ID is 181761095690**** is queried.

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 parameters

Parameter Type Required Example Description
Action String Yes GetAccount

The operation that you want to perform. Set the value to GetAccount.

AccountId String Yes 181761095690****

The Alibaba Cloud account ID of the member account.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
Account Object

The information of the member account.

Status String CreateSuccess

The status of the member account. Valid values:

  • CreateSuccess: The member account is created.
  • PromoteVerifying: The upgrade of the member account is under confirmation.
  • PromoteFailed: The upgrade of the member account failed.
  • PromoteExpired: The upgrade of the member account expired.
  • PromoteCancelled: The upgrade of the member account is canceled.
  • PromoteSuccess: The member account is upgraded.
  • InviteSuccess: The owner of the member account accepted the invitation.
Type String ResourceAccount

The type of the member account.

  • CloudAccount: cloud account
  • ResourceAccount: resource account
DisplayName String admin

The name of the member account.

FolderId String fd-bVaRIG****

The ID of the folder.

ResourceDirectoryId String rd-k3****

The ID of the resource directory.

IdentityInformation String aliyun-admin

The real-name verification information.

JoinTime String 2015-01-23T12:33:18Z

The time when the member account joined the resource directory.

AccountId String 181761095690****

The Alibaba Cloud account ID of the member account.

JoinMethod String created

The way in which the member account joins the resource directory. Valid values:

  • invited: The member account is invited to join the resource directory.
  • created: The member account is directly created in the resource directory.
ModifyTime String 2015-01-23T12:33:18Z

The time when the member account was modified.

AccountName String someone@example.com

The Alibaba Cloud account name of the member account.

RequestId String 9B34724D-54B0-4A51-B34D-4512372FE1BE

The ID of the request.

Examples

Sample requests

https://resourcemanager.aliyuncs.com/?Action=GetAccount
&AccountId=181761095690****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8" ?>
<GetAccountResponse>
    <RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
    <Account>
        <ResourceDirectoryId>rd-k3****</ResourceDirectoryId>
        <AccountId>181761095690****</AccountId>
        <AccountName>someone@example.com</AccountName>
        <DisplayName>admin</DisplayName>
        <FolderId>fd-bVaRIG****</FolderId>
        <JoinMethod>created</JoinMethod>
        <JoinTime>2015-01-23T12:33:18Z</JoinTime>
        <IdentityInformation>aliyun-admin</IdentityInformation>
        <Type>ResourceAccount</Type>
        <Status>CreateSuccess</Status>
        <ModifyTime>2015-01-23T12:33:18Z</ModifyTime>
    </Account>
</GetAccountResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "9B34724D-54B0-4A51-B34D-4512372FE1BE",
  "Account" : {
    "ResourceDirectoryId" : "rd-k3****",
    "AccountId" : "181761095690****",
    "AccountName" : "someone@example.com",
    "DisplayName" : "admin",
    "FolderId" : "fd-bVaRIG****",
    "JoinMethod" : "created",
    "JoinTime" : "2015-01-23T12:33:18Z",
    "IdentityInformation" : "aliyun-admin",
    "Type" : "ResourceAccount",
    "Status" : "CreateSuccess",
    "ModifyTime" : "2015-01-23T12:33:18Z"
  }
}

Error codes

HTTP status code Error code Error message Description
400 InvalidParameter.AccountId The AccountId is invalid. The error message returned because the value of the AccountId parameter is invalid. Specify a 16-digit ID.
400 MissingParameter.AccountId You must specify AccountId. The error message returned because the AccountId parameter is not specified.
404 EntityNotExists.Account This resource directory account does not exist. The error message returned because the member account does not exist. Create such a member account first.
404 EntityNotExists.ResourceDirectory The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. The error message returned because the resource directory for the account is not enabled. Enable the resource directory for the account.

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