Queries the information of a member.

In this example, the information of the member 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.

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

Response parameters

Parameter Type Example Description
Account Object

The information of the member.

Status String CreateSuccess

The status of the member. Valid values:

  • CreateSuccess: The member is created.
  • PromoteVerifying: The upgrade of the member is under confirmation.
  • PromoteFailed: The upgrade of the member fails.
  • PromoteExpired: The upgrade of the member expires.
  • PromoteCancelled: The upgrade of the member is canceled.
  • PromoteSuccess: The member is upgraded.
  • InviteSuccess: The member accepts the invitation.
Type String ResourceAccount

The type of the member.

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

The name of the member.

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 joined the resource directory.

AccountId String 181761095690****

The Alibaba Cloud account ID of the member.

JoinMethod String created

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

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

The time when the member was modified.

AccountName String someone@example.com

The Alibaba Cloud account name of the member.

ResourceDirectoryPath String rd-k3****/r-Wm****/fd-bVaRIG****/181761095690****

The path of the member in the resource directory.

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>
        <ResourceDirectoryPath>rd-k3****/r-Wm****/fd-bVaRIG****/181761095690****</ResourceDirectoryPath>
    </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",
    "ResourceDirectoryPath" : "rd-k3****/r-Wm****/fd-bVaRIG****/181761095690****"
  }
}

Error codes

HTTP status code Error code Error message Description
400 MissingParameter.AccountId You must specify AccountId. The error message returned because the AccountId parameter is not configured.
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.
404 EntityNotExists.Account This resource directory account does not exist. The error message returned because the member does not exist. Create such a member 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.