GetQueryLoggingConfig - Amazon Route 53


Gets information about a specified configuration for DNS query logging.

For more information about DNS query logs, see CreateQueryLoggingConfig and Logging DNS Queries.

Request Syntax

GET /2013-04-01/queryloggingconfig/Id HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.


The ID of the configuration for DNS query logging that you want to get information about.

Length Constraints: Minimum length of 1. Maximum length of 36.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 <?xml version="1.0" encoding="UTF-8"?> <GetQueryLoggingConfigResponse> <QueryLoggingConfig> <CloudWatchLogsLogGroupArn>string</CloudWatchLogsLogGroupArn> <HostedZoneId>string</HostedZoneId> <Id>string</Id> </QueryLoggingConfig> </GetQueryLoggingConfigResponse>

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service.


Root level tag for the GetQueryLoggingConfigResponse parameters.

Required: Yes


A complex type that contains information about the query logging configuration that you specified in a GetQueryLoggingConfig request.

Type: QueryLoggingConfig object


For information about the errors that are common to all actions, see Common Errors.


The input is not valid.

HTTP Status Code: 400


There is no DNS query logging configuration with the specified ID.

HTTP Status Code: 404


Example Request

The following request gets information about the configuration with the ID 87654321-dcba-1234-abcd-1a2b3c4d5e6f.

GET /2013-04-01/queryloggingconfig HTTP/1.1 <?xml version="1.0" encoding="UTF-8"?> <GetQueryLoggingConfigRequest xmlns=""> <Id>87654321-dcba-1234-abcd-1a2b3c4d5e6f</Id> </GetQueryLoggingConfigRequest>

Example Response

This example illustrates one usage of GetQueryLoggingConfig.

HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8"?> <GetQueryLoggingConfigResponse xmlns=""> <QueryLoggingConfig> <Id>87654321-dcba-1234-abcd-1a2b3c4d5e6f</Id> <HostedZoneId>Z1D633PJN98FT9</HostedZoneId> <CloudWatchLogsLogGroupArn>*</CloudWatchLogsLogGroupArn> </QueryLoggingConfig> </GetQueryLoggingConfigResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: