AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the ListResourceRecordSets operation. Lists the resource record sets in a specified hosted zone.
ListResourceRecordSets
returns up to 300 resource record sets at a time in
ASCII order, beginning at a position specified by the name
and type
elements.
Sort order
ListResourceRecordSets
sorts results first by DNS name with the labels reversed,
for example:
com.example.www.
Note the trailing dot, which can change the sort order when the record name contains
characters that appear before .
(decimal 46) in the ASCII table. These characters
include the following: ! " # $ % & ' ( ) * + , -
When multiple records have the same DNS name, ListResourceRecordSets
sorts
results by the record type.
Specifying where to start listing records
You can use the name and type elements to specify the resource record set that the list begins with:
The results begin with the first resource record set that the hosted zone contains.
The results begin with the first resource record set in the list whose name is greater
than or equal to Name
.
Amazon Route 53 returns the InvalidInput
error.
The results begin with the first resource record set in the list whose name is greater
than or equal to Name
, and whose type is greater than or equal to Type
.
Resource record sets that are PENDING
This action returns the most current version of the records. This includes records
that are PENDING
, and that are not yet available on all Route 53 DNS servers.
Changing resource record sets
To ensure that you get an accurate listing of the resource record sets for a hosted
zone at a point in time, do not submit a ChangeResourceRecordSets
request while
you're paging through the results of a ListResourceRecordSets
request. If you
do, some pages may display results without the latest changes while other pages display
results with the latest changes.
Displaying the next page of results
If a ListResourceRecordSets
command returns more than one page of results,
the value of IsTruncated
is true
. To display the next page of results,
get the values of NextRecordName
, NextRecordType
, and NextRecordIdentifier
(if any) from the response. Then submit another ListResourceRecordSets
request,
and specify those values for StartRecordName
, StartRecordType
, and StartRecordIdentifier
.
Namespace: Amazon.Route53.Model
Assembly: AWSSDK.Route53.dll
Version: 3.x.y.z
public class ListResourceRecordSetsRequest : AmazonRoute53Request IAmazonWebServiceRequest
The ListResourceRecordSetsRequest type exposes the following members
Name | Description | |
---|---|---|
ListResourceRecordSetsRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
ListResourceRecordSetsRequest(string) |
Instantiates ListResourceRecordSetsRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
HostedZoneId | System.String |
Gets and sets the property HostedZoneId. The ID of the hosted zone that contains the resource record sets that you want to list. |
|
MaxItems | System.String |
Gets and sets the property MaxItems.
(Optional) The maximum number of resource records sets to include in the response
body for this request. If the response includes more than |
|
StartRecordIdentifier | System.String |
Gets and sets the property StartRecordIdentifier. Resource record sets that have a routing policy other than simple: If results
were truncated for a given DNS name and type, specify the value of |
|
StartRecordName | System.String |
Gets and sets the property StartRecordName.
The first name in the lexicographic ordering of resource record sets that you want
to list. If the specified record name doesn't exist, the results begin with the first
resource record set that has a name greater than the value of |
|
StartRecordType | Amazon.Route53.RRType |
Gets and sets the property StartRecordType. The type of resource record set to begin the record listing from.
Valid values for basic resource record sets:
Values for weighted, latency, geolocation, and failover resource record sets: Values for alias resource record sets:
Constraint: Specifying |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5