Configures a recursive DNS proxy.

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 SetProxyPattern

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

ZoneId String Yes AgIDE0OQ_149

The ID of the private zone.

Lang String No en

The language.

ProxyPattern String No ZONE

Specifies whether to enable the recursive DNS proxy. Valid values:

  • ZONE: disables the recursive DNS proxy for the private zone.
  • RECORD: enables the recursive DNS proxy for the private zone.
UserClientIp String No 1.1.1.1

The IP address of the client.

Response parameters

Parameter Type Example Description 
RequestId String C6F1D541-E7A6-447A-A2B5-9F7A20B2A8FB

The ID of the request.

ZoneId String AgIDE0OQ_149

The ID of the private zone.

Examples

Sample requests

  1. http(s)://pvtz.aliyuncs.com/? Action=SetProxyPattern&ZoneId=AgIDE0OQ_149&<Common request parameters>

Sample success responses

XML format

  1. <SetProxyPatternResponse> <RequestId>D1324D48-1E23-4AEF-9EDE-466120561C6F</RequestId> <ZoneId>AgIDE0OQ_149</ZoneId></SetProxyPatternResponse>

JSON format

  1. { RequestId”:”C6F1D541-E7A6-447A-A2B5-9F7A20B2A8FB”, ZoneId”:”AgIDE0OQ_149”}

Error codes

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