Skip to content
Start here

Peers

List Peers
dns.zone_transfers.peers.list(PeerListParams**kwargs) -> SyncSinglePage[Peer]
GET/accounts/{account_id}/secondary_dns/peers
Peer Details
dns.zone_transfers.peers.get(strpeer_id, PeerGetParams**kwargs) -> Peer
GET/accounts/{account_id}/secondary_dns/peers/{peer_id}
Create Peer
dns.zone_transfers.peers.create(PeerCreateParams**kwargs) -> Peer
POST/accounts/{account_id}/secondary_dns/peers
Update Peer
dns.zone_transfers.peers.update(strpeer_id, PeerUpdateParams**kwargs) -> Peer
PUT/accounts/{account_id}/secondary_dns/peers/{peer_id}
Delete Peer
dns.zone_transfers.peers.delete(strpeer_id, PeerDeleteParams**kwargs) -> PeerDeleteResponse
DELETE/accounts/{account_id}/secondary_dns/peers/{peer_id}
ModelsExpand Collapse
class Peer:
id: str
name: str

The name of the peer.

ip: Optional[str]

IPv4/IPv6 address of primary or secondary nameserver, depending on what zone this peer is linked to. For primary zones this IP defines the IP of the secondary nameserver Cloudflare will NOTIFY upon zone changes. For secondary zones this IP defines the IP of the primary nameserver Cloudflare will send AXFR/IXFR requests to.

ixfr_enable: Optional[bool]

Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.

port: Optional[float]

DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.

tsig_id: Optional[str]

TSIG authentication will be used for zone transfer if configured.

class PeerDeleteResponse:
id: Optional[str]