Skip to content

Latest commit

 

History

History
93 lines (70 loc) · 2.24 KB

Get-CFZoneRecord.md

File metadata and controls

93 lines (70 loc) · 2.24 KB
external help file Module Name online version schema
pwshCloudflare-help.xml
pwshCloudflare
2.0.0

Get-CFZoneRecord

SYNOPSIS

Retrieves DNS records for a Cloudflare zone.

SYNTAX

ZoneId

Get-CFZoneRecord -ZoneId <String> [<CommonParameters>]

ZoneName

Get-CFZoneRecord -ZoneName <String> [<CommonParameters>]

DESCRIPTION

The Get-CFZoneRecord function retrieves DNS records for a Cloudflare zone. It can be used to get all DNS records for a specific zone by providing either the ZoneId or ZoneName parameter.

EXAMPLES

EXAMPLE 1

Get-CFZoneRecord -ZoneId "1234567890"
Retrieves all DNS records for the Cloudflare zone with the specified ZoneId.

EXAMPLE 2

Get-CFZoneRecord -ZoneName "example.com"
Retrieves all DNS records for the Cloudflare zone with the specified ZoneName.

PARAMETERS

-ZoneId

Specifies the ID of the Cloudflare zone for which to retrieve DNS records. This parameter is mandatory when using the ZoneId parameter set.

Type: String
Parameter Sets: ZoneId
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ZoneName

Specifies the name of the Cloudflare zone for which to retrieve DNS records. This parameter is mandatory when using the ZoneName parameter set.

Type: String
Parameter Sets: ZoneName
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None.

OUTPUTS

Cloudflare.ZoneRecord

NOTES

RELATED LINKS

https://github.com/connorcarnes/pwshCloudflare

https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-list-dns-records