All Products
Search
Document Center

Resource Management:PromoteResourceAccount

Last Updated:Feb 28, 2025

Upgrades a resource account to a cloud account.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
resourcemanager:PromoteResourceAccountupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AccountIdstringYes

The ID of the resource account you want to upgrade.

12323344****
EmailstringYes

The email address used to log on to the cloud account after the upgrade.

someone@example.com

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

9B34724D-54B0-4A51-B34D-4512372FE1BE
Accountobject

The information of the member account.

Statusstring

The status of the member account. Valid values:

  • CreateSuccess: The member account is created.
  • CreateVerifying: The creation of the member account is under confirmation.
  • CreateFailed: The member account failed to be created.
  • CreateExpired: The creation of the member account expired.
  • CreateCancelled: The creation of the member account is canceled.
  • PromoteVerifying: The upgrade of the member account is under confirmation.
  • PromoteFailed: The member account failed to be upgraded.
  • PromoteExpired: The upgrade of the member account expired.
  • PromoteCancelled: The upgrade of the member account is canceled.
  • PromoteSuccess: The member account is upgraded.
  • InviteSuccess: The owner of the member account accepted the invitation.
  • Removed: The member account is removed from the resource directory.
PromoteVerifying
Typestring

The type of the member account. Valid values:

  • CloudAccount
  • ResourceAccount
ResourceAccount
DisplayNamestring

The display name of the member account.

admin
FolderIdstring

The ID of the folder.

fd-bVaRIG****
ResourceDirectoryIdstring

The ID of the resource directory.

rd-k3****
RecordIdstring

The account record ID.

06950264-3f0d-4ca9-82dd-6ee7a3d33d6b
JoinTimestring

The time when the member account joined the resource directory.

2015-01-23T12:33:18Z
AccountIdstring

The ID of the member account.

12323344****
JoinMethodstring

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

  • invited: The member account is invited to join the resource directory.
  • created: The member account is directly created in the resource directory.
created
AccountNamestring

The name of the member account.

someone@example.com
ModifyTimestring

The time when the member account was modified.

2015-01-23T12:33:18Z

Examples

Sample success responses

JSONformat

{
  "RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE",
  "Account": {
    "Status": "PromoteVerifying",
    "Type": "ResourceAccount",
    "DisplayName": "admin",
    "FolderId": "fd-bVaRIG****",
    "ResourceDirectoryId": "rd-k3****",
    "RecordId": "06950264-3f0d-4ca9-82dd-6ee7a3d33d6b",
    "JoinTime": "2015-01-23T12:33:18Z",
    "AccountId": "12323344****",
    "JoinMethod": "created",
    "AccountName": "someone@example.com",
    "ModifyTime": "2015-01-23T12:33:18Z"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400MissingParameter.AccountIdYou must specify AccountId.-
400InvalidParameter.AccountIdThe AccountId is invalid.The specified member account ID is invalid. You must specify a valid 16-digit alphanumeric account ID.
400MissingParameter.EmailYou must specify Email.The specified email address is invalid. You must specify a valid email address.
400InvalidParameter.EmailThe Email is invalid.The format of the specified email address is invalid.
404EntityNotExists.AccountThis resource directory account does not exist.The specified member account does not exist. We recommend that you first create a member account.
404EntityNotExists.ResourceDirectoryThe 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.
409AccountTypeOrStatusMismatchYou cannot perform the action on the member account.You cannot perform the action on the member account.
409InvalidParameter.Email.AlreadyUsedThe email has been used.The specified email address already exists. You must specify a valid email address.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history