Queries the information of a member.

This topic provides an example on how to call the API operation to query the information of the member whose Alibaba Cloud account ID is 181761095690****.

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.

IncludeTags Boolean No true

Specifies whether to return the information of tags. Valid values:

  • false (default value)
  • true

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 being confirmed.
  • 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. Valid values:

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

The display 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.

Tags Array of Tag

The tags that are added to the member.

Key String tag_key

A tag key.

Value String tag_value

A tag value.

Location String root/AlRd****/Z5Aa****

The location of the member in the resource directory.

EmailStatus String WAIT_MODIFY

The status of the modification for the email address bound to the member. Valid values:

  • WAIT_MODIFY: in progress
  • CANCELLED: canceled
  • EXPIRED: expired

If the value of this parameter is empty, no modification is performed for the email address.

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

<GetAccountResponse>
    <Account>
        <Status>CreateSuccess</Status>
        <Type>ResourceAccount</Type>
        <DisplayName>admin</DisplayName>
        <FolderId>fd-bVaRIG****</FolderId>
        <ResourceDirectoryId>rd-k3****</ResourceDirectoryId>
        <IdentityInformation>aliyun-admin</IdentityInformation>
        <JoinTime>2015-01-23T12:33:18Z</JoinTime>
        <AccountId>181761095690****</AccountId>
        <JoinMethod>created</JoinMethod>
        <ModifyTime>2015-01-23T12:33:18Z</ModifyTime>
        <AccountName>someone@example.com</AccountName>
        <ResourceDirectoryPath>rd-k3****/r-Wm****/fd-bVaRIG****/181761095690****</ResourceDirectoryPath>
        <Tags>
            <Key>tag_key</Key>
            <Value>tag_value</Value>
        </Tags>
        <Location>root/AlRd****/Z5Aa****</Location>
        <EmailStatus>WAIT_MODIFY</EmailStatus>
    </Account>
    <RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
</GetAccountResponse>

JSON format

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

{
  "Account" : {
    "Status" : "CreateSuccess",
    "Type" : "ResourceAccount",
    "DisplayName" : "admin",
    "FolderId" : "fd-bVaRIG****",
    "ResourceDirectoryId" : "rd-k3****",
    "IdentityInformation" : "aliyun-admin",
    "JoinTime" : "2015-01-23T12:33:18Z",
    "AccountId" : "181761095690****",
    "JoinMethod" : "created",
    "ModifyTime" : "2015-01-23T12:33:18Z",
    "AccountName" : "someone@example.com",
    "ResourceDirectoryPath" : "rd-k3****/r-Wm****/fd-bVaRIG****/181761095690****",
    "Tags" : [ {
      "Key" : "tag_key",
      "Value" : "tag_value"
    } ],
    "Location" : "root/AlRd****/Z5Aa****",
    "EmailStatus" : "WAIT_MODIFY"
  },
  "RequestId" : "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}

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 account has not been used to enable a resource directory. Use the account to enable a resource directory first.

For a list of error codes, see Service error codes.