Queries an available subdomain.
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeSubDomain | The operation that you want to perform. Set the value to DescribeSubDomain. |
| RegionId | String | No | cn-hangzhou | The ID of the region. |
| ZoneId | String | No | cn-hangzhou-f | The ID of the zone to query. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | F4208C83-B9BC-4A64-A739-8F88E98DA469 | The ID of the request. |
| SubDomain | String | cn-hangzhou-h-aliyun | The available subdomain. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeSubDomain
&<Common request parameters>
Sample success responses
XML format
<SubDomain>cn-hangzhou-h-aliyun</SubDomain>
<RequestId>F4208C83-B9BC-4A64-A739-8F88E98DA469</RequestId>
JSON format
{
"SubDomain": "cn-hangzhou-h-aliyun",
"RequestId": "F4208C83-B9BC-4A64-A739-8F88E98DA469"
}
Error codes
For a list of error codes, see Service error codes.