Views the alias of an Alibaba Cloud account.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes GetAccountAlias

The name of this action.

Value: GetAccountAlias

Response parameters

Parameter Type Example value Description
AccountAlias String myalias The alias of the Alibaba Cloud account.
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368 The request ID.

Example

Request example

https://ram.aliyuncs.com/?Action=GetAccountAlias
&<Common parameters>

Response example

XML format

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

JSON format

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

Errors

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