external help file | Module Name | online version | schema |
---|---|---|---|
pwshCloudflare-help.xml |
pwshCloudflare |
2.0.0 |
Retrieves DNS records for a Cloudflare zone.
Get-CFZoneRecord -ZoneId <String> [<CommonParameters>]
Get-CFZoneRecord -ZoneName <String> [<CommonParameters>]
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.
Get-CFZoneRecord -ZoneId "1234567890"
Retrieves all DNS records for the Cloudflare zone with the specified ZoneId.
Get-CFZoneRecord -ZoneName "example.com"
Retrieves all DNS records for the Cloudflare zone with the specified ZoneName.
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
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
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).
https://github.com/connorcarnes/pwshCloudflare
https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-list-dns-records