You can call this operation to specify an alias for an Alibaba Cloud account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
AccountAlias String Yes myalias

The alias of the Alibaba Cloud account.

The alias must be 3 to 32 characters in length, and can contain lowercase letters, digits, and hyphens (-).

Note It cannot start or end with a hyphen (-), and cannot contain consecutive hyphens (-).
Action String Yes SetAccountAlias

The operation that you want to perform. Set the value to SetAccountAlias.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

Examples

Sample requests


https://ram.aliyuncs.com/?Action=SetAccountAlias
&AcccountAlias=myalias
&<Common request parameters>

Sample success responses

XML format

<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>

JSON format

{
	"RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368"
}

Error codes

For a list of error codes, visit the API Error Center.