Configures the default domain name.


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
Action String Yes SetDefaultDomain

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

DefaultDomainName String Yes

The default domain name.

The name is in the format of <AccountAlias> <AccountAlias> indicates the account alias. By default, the value of AccountAlias is the ID of the Alibaba Cloud account. The default domain name must end with

The default domain name can contain up to 64 characters in length. The name can contain letters, digits, periods (.), underscores (_), and hyphens (-).

Note The default domain name cannot start or end with a hyphen (-) and cannot have two consecutive hyphens (-).

Response parameters

Parameter Type Example Description
DefaultDomainName String

The default domain name.

RequestId String 66815255-7CCE-4759-AC37-9755794C3626

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

  "DefaultDomainName": "",
  "RequestId": "66815255-7CCE-4759-AC37-9755794C3626"

Error codes

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