Amazon.Route53.AmazonRoute53Client.ListHostedZones C# (CSharp) Method

ListHostedZones() public method

To retrieve a list of your public and private hosted zones, send a GET request to the /2013-04-01/hostedzone resource. The response to this request includes a HostedZones child element for each hosted zone created by the current AWS account.

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of hosted zones, you can use the maxitems parameter to list them in groups of up to 100. The response includes four values that help navigate from one group of maxitems hosted zones to the next:

  • MaxItems is the value specified for the maxitems parameter in the request that produced the current response.

  • If the value of IsTruncated in the response is true, there are more hosted zones associated with the current AWS account.

  • NextMarker is the hosted zone ID of the next hosted zone that is associated with the current AWS account. If you want to list more hosted zones, make another call to ListHostedZones, and specify the value of the NextMarker element in the marker parameter.

    If IsTruncated is false, the NextMarker element is omitted from the response.

  • If you're making the second or subsequent call to ListHostedZones, the Marker element matches the value that you specified in the marker parameter in the previous request.

/// A reusable delegation set with the specified ID does not exist. /// /// The input is not valid. /// /// A reusable delegation set with the specified ID does not exist. ///
public ListHostedZones ( ) : ListHostedZonesResponse
return ListHostedZonesResponse
        public ListHostedZonesResponse ListHostedZones()
        {
            return ListHostedZones(new ListHostedZonesRequest());
        }

Same methods

AmazonRoute53Client::ListHostedZones ( ListHostedZonesRequest request ) : ListHostedZonesResponse
AmazonRoute53Client