Use GetHostedZone with an Amazon SDK or CLI - 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).

Use GetHostedZone with an Amazon SDK or CLI

The following code examples show how to use GetHostedZone.

CLI
Amazon CLI

To get information about a hosted zone

The following get-hosted-zone command gets information about the hosted zone with an id of Z1R8UBAEXAMPLE:

aws route53 get-hosted-zone --id Z1R8UBAEXAMPLE
  • For API details, see GetHostedZone in Amazon CLI Command Reference.

PowerShell
Tools for PowerShell

Example 1: Returns details of the hosted zone with ID Z1D633PJN98FT9.

Get-R53HostedZone -Id Z1D633PJN98FT9
  • For API details, see GetHostedZone in Amazon Tools for PowerShell Cmdlet Reference.

For a complete list of Amazon SDK developer guides and code examples, see Using Route 53 with an Amazon SDK. This topic also includes information about getting started and details about previous SDK versions.