Upgrades a resource account to a cloud account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcemanager:PromoteResourceAccount |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AccountId |
string |
Yes |
The ID of the resource account to upgrade. |
12323344**** |
|
string |
Yes |
The email address used to log on to the cloud account after the upgrade. |
someone@example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Account |
object |
Information about the member account. |
|
| AccountId |
string |
The ID of the member account. |
12323344**** |
| AccountName |
string |
The name of the member account. |
someone@example.com |
| DisplayName |
string |
The display name of the member account. |
admin |
| FolderId |
string |
The ID of the folder. |
fd-bVaRIG**** |
| JoinMethod |
string |
How the member account joined the resource directory. Valid values:
|
created |
| JoinTime |
string |
The time when the member account joined the resource directory. |
2015-01-23T12:33:18Z |
| ModifyTime |
string |
The time when the member account was modified. |
2015-01-23T12:33:18Z |
| RecordId |
string |
The account record ID. |
06950264-3f0d-4ca9-82dd-6ee7a3d33d6b |
| ResourceDirectoryId |
string |
The ID of the resource directory. |
rd-k3**** |
| Status |
string |
The status of the member account. Valid values:
|
PromoteVerifying |
| Type |
string |
The type of the member account. Valid values:
|
ResourceAccount |
| RequestId |
string |
The request ID. |
9B34724D-54B0-4A51-B34D-4512372FE1BE |
Examples
Success response
JSON format
{
"Account": {
"AccountId": "12323344****",
"AccountName": "someone@example.com",
"DisplayName": "admin",
"FolderId": "fd-bVaRIG****",
"JoinMethod": "created",
"JoinTime": "2015-01-23T12:33:18Z",
"ModifyTime": "2015-01-23T12:33:18Z",
"RecordId": "06950264-3f0d-4ca9-82dd-6ee7a3d33d6b",
"ResourceDirectoryId": "rd-k3****",
"Status": "PromoteVerifying",
"Type": "ResourceAccount"
},
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter.AccountId | You must specify AccountId. | |
| 400 | InvalidParameter.AccountId | The AccountId is invalid. | The specified member account ID is invalid. You must specify a valid 16-digit alphanumeric account ID. |
| 400 | MissingParameter.Email | You must specify Email. | The specified email address is invalid. You must specify a valid email address. |
| 400 | InvalidParameter.Email | The Email is invalid. | The format of the specified email address is invalid. |
| 404 | EntityNotExists.Account | This resource directory account does not exist. | The specified member account does not exist. We recommend that you first create a member account. |
| 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 resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. |
| 409 | AccountTypeOrStatusMismatch | You cannot perform the action on the member account. | You cannot perform the action on the member account. |
| 409 | InvalidParameter.Email.AlreadyUsed | The email has been used. | The specified email address already exists. You must specify a valid email address. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.