Queries the information about the DNS server configured for a gateway.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Parameter | Type | Required | Example | Description |
Action | String | Yes | DescribeGatewayDNS | The operation that you want to perform. Set the value to DescribeGatewayDNS. |
GatewayId | String | Yes | gw-000eg44nmxbsfwbvq*** | The ID of the gateway. |
Response parameters
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeGatewayDNS
&GatewayId=gw-000eg44nmxbsfwbvq***
&<Common request parameters>
Sample success responses
XML
format
<DescribeGatewayDNSResponse>
<RequestId>ACB4BBBB-9046-4D46-BA93-0737DE78B735</RequestId>
<Message>successful</Message>
<Code>200</Code>
<Success>true</Success>
<DnsServer>100.100.2.136,100.100.2.188</DnsServer>
</DescribeGatewayDNSResponse>
JSON
format
{
"RequestId":"ACB4BBBB-9046-4D46-BA93-0737DE78B735",
"Message":"successful",
"Code":"200",
"Success":true,
"DnsServer":"100.100.2.136,100.100.2.188"
}
Error codes
HttpCode | Error code | Error message | Description |
HttpCode | Error code | Error message | Description |
400 | GatewayInUpgrading | The gateway is upgrading. Try again later. | The error message returned because the gateway is being upgraded. Try again later. |
400 | GatewayNotExist | The specified gateway does not exist. You must specify a valid parameter. | The error message returned because the specified gateway does not exist. Check whether the parameters are valid. |
400 | GatewayInOperation | The gateway is processing requests. Try again later. | The error message returned because another operation is in progress. Try again later. |
400 | GatewayStatusRunningRequired | The gateway is not in the Running state. Try again later. | The error message returned because the gateway is not in the Running state. Try again later. |
400 | EmptyGatewayId | You must enter a valid ID for the gateway. | The error message returned because the gateway ID is not specified. |
For a list of error codes, visit the API Error Center.