Record set
New-EdnsRecordSet
Synopsis
Create record sets.
Syntax
New-EdnsRecordSet -Zone <String> -Name <String> -Type <String> -TTL <String> -RData <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-EdnsRecordSet -Zone <String> -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Creates one or more new record sets for this zone. Single records can be supplied as individual attributes (Name
, Type
, TTL
, and more) , or you can construct a JSON string or PSCustomObject
with a top-level property named recordsets
, which is an array of such entries.
If any record set fails to create, for example, because a record set with that name and type already exists, the entire operation fails.
Parameters
‑AccountSwitchKey |
An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey. |
‑Body Conditionally required |
A request body, either as a |
‑EdgeRCFile |
Your EdgeGrid resource file to authenticate your command. Defaults to |
‑Name Conditionally required |
A domain name, including the parent zone. |
‑RData Conditionally required |
An array or a comma-separated string. Each entry encodes the rdata for a single record. If you want to have three |
‑Section |
The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to |
‑TTL Conditionally required |
The number of seconds that this record should live in a resolver's cache before being refetched. |
‑Type Conditionally required |
The record set type. |
‑Zone Required |
Your zone's name |
Related Links
Updated 10 days ago