Creates a private zone.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | AddZone |
The operation that you want to perform. Set the value to AddZone. |
Lang | String | No | en |
The language. |
ProxyPattern | String | No | ZONE |
|
ResourceGroupId | String | No | rg-resourcegroupid1 |
The ID of the resource group. |
UserClientIp | String | No | 192.0.2.0 |
The IP address of the client. |
ZoneName | String | No | example.com |
The name of the zone. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 46973D4C-E3E4-4ABA-9190-9A9DE406C7E |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call is successful. |
ZoneId | String | AgIDE1MQ_151 |
The ID of the zone. |
ZoneName | String | example.com |
The name of the zone. |
Examples
Sample requests
http://pvtz.aliyuncs.com/?Action=AddZone
&ZoneName=example.com
&<Common request parameters>
Sample success responses
XML
format
<AddZoneResponse>
<ZoneName>example.com</ZoneName>
<RequestId>0C9959BE-3A6A-4803-8DCE-973B42ACD599</RequestId>
<ZoneId>AgIDE1MA_150</ZoneId>
</AddZoneResponse>
JSON
format
{
"ZoneName":"example.com",
"RequestId":"46973D4C-E3E4-4ABA-9190-9A9DE406C7EE",
"ZoneId":"AgIDE1MQ_151"
}
Error codes
For a list of error codes, visit the API Error Center.