Selecione suas preferências de cookies

Usamos cookies essenciais e ferramentas semelhantes que são necessárias para fornecer nosso site e serviços. Usamos cookies de desempenho para coletar estatísticas anônimas, para que possamos entender como os clientes usam nosso site e fazer as devidas melhorias. Cookies essenciais não podem ser desativados, mas você pode clicar em “Personalizar” ou “Recusar” para recusar cookies de desempenho.

Se você concordar, a AWS e terceiros aprovados também usarão cookies para fornecer recursos úteis do site, lembrar suas preferências e exibir conteúdo relevante, incluindo publicidade relevante. Para aceitar ou recusar todos os cookies não essenciais, clique em “Aceitar” ou “Recusar”. Para fazer escolhas mais detalhadas, clique em “Personalizar”.

ListTrafficPolicies - Amazon Route 53
Esta página não foi traduzida para seu idioma. Solicitar tradução

ListTrafficPolicies

Gets information about the latest version for every traffic policy that is associated with the current AWS 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.

maxitems

(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.

trafficpolicyid

(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.

ListTrafficPoliciesResponse

Root level tag for the ListTrafficPoliciesResponse parameters.

Required: Yes

IsTruncated

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

MaxItems

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

Type: String

TrafficPolicyIdMarker

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.

TrafficPolicySummaries

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

Type: Array of TrafficPolicySummary objects

Errors

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

InvalidInput

The input is not valid.

HTTP Status Code: 400

Examples

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="https://route53.amazonaws.com/doc/2013-04-01/"> <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 AWS SDKs, see the following:

PrivacidadeTermos do sitePreferências de cookies
© 2025, Amazon Web Services, Inc. ou suas afiliadas. Todos os direitos reservados.