< Back

New-GcdResourceRecordSet

Mon Jan 13, 2020 11:24 pm

NAME New-GcdResourceRecordSet



SYNOPSIS

Create an independent new ResourceRecordSet resource.





SYNTAX

New-GcdResourceRecordSet [-Name] <string> [-Rrdata] <string[]> [-Type] <string> [[-Ttl] <int>] [<CommonParameters>]





DESCRIPTION

Creates and returns a new ResourceRecordSet resource.



The newly created ResourceRecordSet will be created and returned independently, not within any Project or

ManagedZone.





PARAMETERS

-Name <string>

Get the name of the new ResourceRecordSet (e.g., "gcloudexample.com.").



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Rrdata <string[]>

Get the resource record data for the ResourceRecordSet.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Data <string[]>

Get the resource record data for the ResourceRecordSet.



This is an alias of the Rrdata parameter.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Type <string>

Get the type of the ResourceRecordSet.



The supported types are A, AAAA, CNAME, MX, NAPTR, NS, PTR, SOA, SPF, SRV, and TXT.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Ttl <int>

Get the ttl, which is the number of seconds the ResourceRecordSet can be cached by resolvers.



Required? false

Position? 3

Default value 3600

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:\\> New-GcdResourceRecordSet -Name "gcloudexample.com." -Rrdata "7.5.7.8" -Type "A" -Ttl 300



Create a new ResourceRecordSet resource with name "gcloudexample.com.", Rrdata ["7.5.7.8"], type "A," and ttl 300.



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)