There are more AWS SDK examples available in the AWS Doc SDK Examples
Use GetHostedZone with a CLI
The following code examples show how to use GetHostedZone.
- CLI
-
- AWS CLI
-
To get information about a hosted zone
The following
get-hosted-zonecommand gets information about the hosted zone with anidofZ1R8UBAEXAMPLE:aws route53 get-hosted-zone --idZ1R8UBAEXAMPLE-
For API details, see GetHostedZone
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: Returns details of the hosted zone with ID Z1D633PJN98FT9.
Get-R53HostedZone -Id Z1D633PJN98FT9-
For API details, see GetHostedZone in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: Returns details of the hosted zone with ID Z1D633PJN98FT9.
Get-R53HostedZone -Id Z1D633PJN98FT9-
For API details, see GetHostedZone in AWS Tools for PowerShell Cmdlet Reference (V5).
-