Configures a recursive DNS proxy.
Debugging
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:
|
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
http(s)://pvtz.aliyuncs.com/? Action=SetProxyPattern&ZoneId=AgIDE0OQ_149&<Common request parameters>
Sample success responses
XML
format
<SetProxyPatternResponse> <RequestId>D1324D48-1E23-4AEF-9EDE-466120561C6F</RequestId> <ZoneId>AgIDE0OQ_149</ZoneId></SetProxyPatternResponse>
JSON
format
{ “RequestId”:”C6F1D541-E7A6-447A-A2B5-9F7A20B2A8FB”, “ZoneId”:”AgIDE0OQ_149”}
Error codes
For a list of error codes, visit the API Error Center.