Queries the invitations that are associated with an account.
Usage notes
This topic provides an example on how to call the API operation to query the invitations
that are associated with the management account 172841235500****
. The response shows that two invitations are associated with the management account.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListHandshakesForAccount |
The operation that you want to perform. Set the value to ListHandshakesForAccount. |
PageNumber | Integer | No | 1 |
The number of the page to return. Pages start from page 1. Default value: 1. |
PageSize | Integer | No | 10 |
The number of entries to return on each page. Valid values: 1 to 100. Default value: 10. |
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
TotalCount | Integer | 2 |
The total number of invitations. |
RequestId | String | 9B34724D-54B0-4A51-B34D-4512372FE1BE |
The ID of the request. |
PageSize | Integer | 10 |
The number of entries returned per page. |
PageNumber | Integer | 1 |
The page number of the returned page. |
Handshakes | Array of Handshake |
The information of the invitations. |
|
Handshake | |||
Status | String | Pending |
The status of the invitation. Valid values:
|
ExpireTime | String | 2018-08-24T09:55:41Z |
The time when the invitation expires. The time is displayed in UTC. |
ResourceDirectoryId | String | rd-abcdef**** |
The ID of the resource directory. |
CreateTime | String | 2018-08-10T09:55:41Z |
The time when the invitation was created. The time is displayed in UTC. |
Note | String | Welcome |
The comment on the invitation. |
TargetEntity | String | someone@example.com |
The ID or logon email address of the invited Alibaba Cloud account. |
MasterAccountId | String | 172841235500**** |
The ID of the management account of the resource directory. |
MasterAccountName | String | CompanyA |
The name of the management account of the resource directory. |
ModifyTime | String | 2018-08-10T09:55:41Z |
The time when the invitation was modified. The time is displayed in UTC. |
TargetType | String |
The type of the invited Alibaba Cloud account. Valid values:
|
|
HandshakeId | String | h-4N57QZzCTtES**** |
The ID of the invitation. |
Examples
Sample requests
https://resourcemanager.aliyuncs.com/?Action=ListHandshakesForAccount
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListHandshakesForAccountResponse>
<RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<TotalCount>2</TotalCount>
<Handshakes>
<Handshake>
<HandshakeId>h-4N57QZzCTtES****</HandshakeId>
<ResourceDirectoryId>rd-abcdef****</ResourceDirectoryId>
<MasterAccountId>172841235500****</MasterAccountId>
<MasterAccountName>CompanyA</MasterAccountName>
<TargetEntity>someone@example.com</TargetEntity>
<TargetType>Email</TargetType>
<Note>Welcome</Note>
<Status>Pending</Status>
<CreateTime>2018-08-10T09:55:41Z</CreateTime>
<ModifyTime>2018-08-10T09:55:41Z</ModifyTime>
<ExpireTime>2018-08-24T09:55:41Z</ExpireTime>
</Handshake>
<Handshake>
<HandshakeId>h-BeJZW63fHT4l****</HandshakeId>
<ResourceDirectoryId>rd-abcdef****</ResourceDirectoryId>
<MasterAccountId>172841235500****</MasterAccountId>
<MasterAccountName>CompanyA</MasterAccountName>
<TargetEntity>172841235500****</TargetEntity>
<TargetType>Account</TargetType>
<Note>Welcome</Note>
<Status>Pending</Status>
<CreateTime>2018-08-10T09:55:41Z</CreateTime>
<ModifyTime>2018-08-10T09:55:41Z</ModifyTime>
<ExpireTime>2018-08-24T09:55:41Z</ExpireTime>
</Handshake>
</Handshakes>
</ListHandshakesForAccountResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "9B34724D-54B0-4A51-B34D-4512372FE1BE",
"PageNumber" : 1,
"PageSize" : 10,
"TotalCount" : 2,
"Handshakes" : {
"Handshake" : [ {
"HandshakeId" : "h-4N57QZzCTtES****",
"ResourceDirectoryId" : "rd-abcdef****",
"MasterAccountId" : "172841235500****",
"MasterAccountName" : "CompanyA",
"TargetEntity" : "someone@example.com",
"TargetType" : "Email",
"Note" : "Welcome",
"Status" : "Pending",
"CreateTime" : "2018-08-10T09:55:41Z",
"ModifyTime" : "2018-08-10T09:55:41Z",
"ExpireTime" : "2018-08-24T09:55:41Z"
}, {
"HandshakeId" : "h-BeJZW63fHT4l****",
"ResourceDirectoryId" : "rd-abcdef****",
"MasterAccountId" : "172841235500****",
"MasterAccountName" : "CompanyA",
"TargetEntity" : "172841235500****",
"TargetType" : "Account",
"Note" : "Welcome",
"Status" : "Pending",
"CreateTime" : "2018-08-10T09:55:41Z",
"ModifyTime" : "2018-08-10T09:55:41Z",
"ExpireTime" : "2018-08-24T09:55:41Z"
} ]
}
}
Error codes
For a list of error codes, visit the API Error Center.