Accepts an invitation.
Operation description
After an invited Alibaba Cloud account joins a resource directory, it becomes a member of the resource directory. By default, the name of the invited Alibaba Cloud account is used as the display name of the account in the resource directory.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
HandshakeId | string | Yes | The ID of the invitation. You can call the ListHandshakesForAccount operation to obtain the ID. | h-Ih8IuPfvV0t0**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "5828C836-3286-49A6-9006-15231BB19342",
"Handshake": {
"Status": "Accepted",
"ExpireTime": "2021-01-20T02:15:40Z",
"ResourceDirectoryId": "rd-3G****",
"CreateTime": "2021-01-06T02:15:40Z",
"Note": "Welcome\n",
"TargetEntity": "177242285274****",
"MasterAccountId": "151266687691****",
"MasterAccountName": "CompanyA",
"ModifyTime": "2021-01-06T02:16:40Z",
"TargetType": "Account",
"HandshakeId": "h-Ih8IuPfvV0t0****"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingParameter.HandshakeId | You must specify HandshakeId. | - |
400 | InvalidParameter.HandshakeId | The HandshakeId is invalid. | - |
404 | EntityNotExists.Handshake | The specified handshake does not exist. | - |
404 | SpecifiedResourceDirectoryNotExists | The specified resource directory does not exist. You must specify a valid resource directory. | The specified resource directory does not exist. Specify a valid resource directory. |
409 | HandshakeStatusMismatch | The invitation is invalid. | The invitation is invalid. |
409 | NotSupport.AccountInAnotherResourceDirectory | Your account is a management account for another resource directory or a member of another resource directory. | - |
409 | Invalid.AccountType | The specified profile type of account is invalid. | The account type is invalid. Use an enterprise account. |
409 | NotSupport.Account.RealNameType | Your account is not a real-name of enterprise type, so you cannot accept the invitation. | You cannot accept the invitation because your account does not pass enterprise real-name verification. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history