< Back

Get-GcdResourceRecordSet

Mon Jan 13, 2020 11:08 pm

NAME Get-GcdResourceRecordSet



SYNOPSIS

Gets the ResourceRecordSet resources within a ManagedZone of a Project.





SYNTAX

Get-GcdResourceRecordSet [-Project <string>] [-Zone] <string> [[-Filter] <string[]>] [<CommonParameters>]





DESCRIPTION

Lists the ManagedZone's ResourceRecordSets.



If a Project is specified, the cmdlet will instead return the ResourceRecordSets in the specified ManagedZone

governed by that project. The optional -Filter can be provided to restrict the ResourceRecordSet types returned.





PARAMETERS

-Project <string>

Get the Project to check.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Zone <string>

Get the ManagedZone (name or id permitted) to check for ResourceRecordSets.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ManagedZone <string>

Get the ManagedZone (name or id permitted) to check for ResourceRecordSets.



This is an alias of the Zone parameter.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Filter <string[]>

Filter the type(s) of ResourceRecordSets to return (e.g., -Filter "CNAME","NS")



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Google.Apis.Dns.v1.Data.ResourceRecordSet





---------- EXAMPLE 1 ----------



PS C:\\> Get-GcdResourceRecordSet -Project "testing" -Zone "test1"



Get the ResourceRecordSet resources in the ManagedZone "test1" in the Project "testing."

---------- EXAMPLE 2 ----------



PS C:\\> Get-GcdResourceRecordSet -Project "testing" -Zone "testZone2" -Filter "NS","AAAA"



Get the ResourceRecordSets of type "NS" or "AAAA" in the ManagedZone "testZone2" in the Project "testing."



RELATED LINKS

[Supported Resource Record Formats] (https://cloud.google.com/dns/records/json-record)

[Managing Records] (https://cloud.google.com/dns/records/)

[Troubleshooting] (https://cloud.google.com/dns/troubleshooting)