edit-icon download-icon

SetAccountAlias

Last Updated: Nov 10, 2017

Interface description

Sets the Alibaba Cloud account alias.

Request parameters

Action

  • Type: String
  • Required: Yes
  • Description: Operation interface, required. The parameter value is “SetAccountAlias”.

AccountAlias

  • Type: String
  • Required: Yes
  • Description: Alibaba Cloud account alias. It consists of 3 to 32 characters.
  • Restriction: ^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$

Return parameters

Only public parameters are returned. For details, see Public return parameters.

Required permissions

Action

ram:SetAccountAlias

Resource

acs:ram:*:${AccountId}:*

Error messages

InvalidParameter.AccountAlias.Format
  • HTTP Status: 400
  • Error Message: The format of parameter - “AccountAlias” is incorrect.
InvalidParameter.AccountAlias.Length
  • HTTP Status: 400
  • Error Message: The parameter - “AccountAlias” MUST be in the range of 3 and 32.
EntityAlreadyExists.AccountAlias
  • HTTP Status: 409
  • Error Message: The account alias does already exist.

Operation examples

Request example

  1. https://ram.aliyuncs.com/?Action=SetAccountAlias
  2. &AcccountAlias=myalias
  3. &<Public request parameters>

Return example

XML format

  1. <SetAccountAliasResponse>
  2. <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  3. </SetAccountAliasResponse>

JSON format

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
  3. }
Thank you! We've received your feedback.