ListTrafficPolicies - Amazon Route 53
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Gets information about the latest version for every traffic policy that is associated with the current Amazon Web Services account. Policies are listed in the order that they were created in.

For information about how of deleting a traffic policy affects the response from ListTrafficPolicies, see DeleteTrafficPolicy.

Request Syntax

GET /2013-04-01/trafficpolicies?maxitems=MaxItems&trafficpolicyid=TrafficPolicyIdMarker HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.


(Optional) The maximum number of traffic policies that you want Amazon Route 53 to return in response to this request. If you have more than MaxItems traffic policies, the value of IsTruncated in the response is true, and the value of TrafficPolicyIdMarker is the ID of the first traffic policy that Route 53 will return if you submit another request.


(Conditional) For your first request to ListTrafficPolicies, don't include the TrafficPolicyIdMarker parameter.

If you have more traffic policies than the value of MaxItems, ListTrafficPolicies returns only the first MaxItems traffic policies. To get the next group of policies, submit another request to ListTrafficPolicies. For the value of TrafficPolicyIdMarker, specify the value of TrafficPolicyIdMarker that was returned in the previous response.

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

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 <?xml version="1.0" encoding="UTF-8"?> <ListTrafficPoliciesResponse> <IsTruncated>boolean</IsTruncated> <MaxItems>string</MaxItems> <TrafficPolicyIdMarker>string</TrafficPolicyIdMarker> <TrafficPolicySummaries> <TrafficPolicySummary> <Id>string</Id> <LatestVersion>integer</LatestVersion> <Name>string</Name> <TrafficPolicyCount>integer</TrafficPolicyCount> <Type>string</Type> </TrafficPolicySummary> </TrafficPolicySummaries> </ListTrafficPoliciesResponse>

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 ListTrafficPoliciesResponse parameters.

Required: Yes


A flag that indicates whether there are more traffic policies to be listed. If the response was truncated, you can get the next group of traffic policies by submitting another ListTrafficPolicies request and specifying the value of TrafficPolicyIdMarker in the TrafficPolicyIdMarker request parameter.

Type: Boolean


The value that you specified for the MaxItems parameter in the ListTrafficPolicies request that produced the current response.

Type: String


If the value of IsTruncated is true, TrafficPolicyIdMarker is the ID of the first traffic policy in the next group of MaxItems traffic policies.

Type: String

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


A list that contains one TrafficPolicySummary element for each traffic policy that was created by the current Amazon Web Services account.

Type: Array of TrafficPolicySummary objects


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


The input is not valid.

HTTP Status Code: 400


Example Request

This example illustrates one usage of ListTrafficPolicies.

GET /2013-04-01/trafficpolicies?maxitems=1

Example Response

This example illustrates one usage of ListTrafficPolicies.

HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8"?> <ListTrafficPoliciesResponse xmlns=""> <TrafficPolicySummaries> <TrafficPolicySummary> <Id>12345678-abcd-9876-fedc-1a2b3c4de5f6</Id> <Name>MyTrafficPolicy</Name> <Type>A</Type> <LatestVersion>77</LatestVersion> <TrafficPolicyCount>44</TrafficPolicyCount> </TrafficPolicySummary> </TrafficPolicySummaries> <IsTrucated>true</IsTruncated> <TrafficPolicyIdMarker>12345678-abcd-9876-fedc-1a2b3c4de5f7</TrafficPolicyIdMarker> <MaxItems>1</MaxItems> </ListTrafficPoliciesResponse>

See Also

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