You can call this operation to check whether the name of a private zone is valid.

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

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

Lang String No en

The language of the specific content returned in the response.

UserClientIp String No 1.1.1.1

The IP address of the client.

ZoneName String No demo.com

The name of the private zone.

Response parameters

Parameter Type Example Description
Check Boolean true

Indicates whether the name of the private zone is valid. Valid values:

  • true: yes
  • false: no
RequestId String CA29B88F-A571-4123-80D5-768AC2F7F806

The ID of the request.

Success Boolean true

Indicates whether the call was successful.

Examples

Sample requests

  1. http://pvtz.aliyuncs.com/?Action=CheckZoneName&ZoneName=demo.com&<Common request parameters>

Sample success responses

XML format

  1. <CheckZoneNameResponse> <Check>true</Check> <RequestId>CA29B88F-A571-4123-80D5-768AC2F7F806</RequestId></CheckZoneNameResponse>

JSON format

  1. {“Check”:true,“RequestId”:”0AF4FE63-5904-4E62-B1AC-B36810377811”}

Error codes

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