Record sets

Get-EdnsRecordSet

Synopsis

Get a zone's record sets.

Syntax

Get-EdnsRecordSet -Zone <String> [-SortBy <String>] [-Types <String>] [-Search <Object>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-EdnsRecordSet -Zone <String> -Name <String> -Type <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Lists all record sets for this Zone. It works only for PRIMARY and SECONDARY zones.

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.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑Name
Conditionally required

A domain name, including the parent zone.

‑Search

Displays only record sets whose NAME or RDATA field matches this value. The entire record set, that is all records with the same name and type are shown if any record in the set has a NAME or RDATA that matches the value case-insensitively.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑SortBy

Sorts the list on the specified fields. You can specify multiple fields as a comma-separated list. Placing a dash before a field name sorts it in descending order. Allowed fields include name and type.

‑Type
Conditionally required

The record set type.

‑Types

Displays only record sets that match one of the provided types. Specifies multiple fields as a comma-separated list. Ignores illegal or disallowed record types.

‑Zone
Required

Your zone's name

Related Links

User Guide: Overview