1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. DnsZoneTransfersPeer
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.DnsZoneTransfersPeer

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleDnsZoneTransfersPeer = new cloudflare.DnsZoneTransfersPeer("example_dns_zone_transfers_peer", {
        accountId: "01a7362d577a6c3019a474fd6f485823",
        name: "my-peer-1",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_dns_zone_transfers_peer = cloudflare.DnsZoneTransfersPeer("example_dns_zone_transfers_peer",
        account_id="01a7362d577a6c3019a474fd6f485823",
        name="my-peer-1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewDnsZoneTransfersPeer(ctx, "example_dns_zone_transfers_peer", &cloudflare.DnsZoneTransfersPeerArgs{
    			AccountId: pulumi.String("01a7362d577a6c3019a474fd6f485823"),
    			Name:      pulumi.String("my-peer-1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleDnsZoneTransfersPeer = new Cloudflare.DnsZoneTransfersPeer("example_dns_zone_transfers_peer", new()
        {
            AccountId = "01a7362d577a6c3019a474fd6f485823",
            Name = "my-peer-1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.DnsZoneTransfersPeer;
    import com.pulumi.cloudflare.DnsZoneTransfersPeerArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleDnsZoneTransfersPeer = new DnsZoneTransfersPeer("exampleDnsZoneTransfersPeer", DnsZoneTransfersPeerArgs.builder()
                .accountId("01a7362d577a6c3019a474fd6f485823")
                .name("my-peer-1")
                .build());
    
        }
    }
    
    resources:
      exampleDnsZoneTransfersPeer:
        type: cloudflare:DnsZoneTransfersPeer
        name: example_dns_zone_transfers_peer
        properties:
          accountId: 01a7362d577a6c3019a474fd6f485823
          name: my-peer-1
    

    Create DnsZoneTransfersPeer Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DnsZoneTransfersPeer(name: string, args: DnsZoneTransfersPeerArgs, opts?: CustomResourceOptions);
    @overload
    def DnsZoneTransfersPeer(resource_name: str,
                             args: DnsZoneTransfersPeerArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def DnsZoneTransfersPeer(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             account_id: Optional[str] = None,
                             name: Optional[str] = None,
                             ip: Optional[str] = None,
                             ixfr_enable: Optional[bool] = None,
                             port: Optional[float] = None,
                             tsig_id: Optional[str] = None)
    func NewDnsZoneTransfersPeer(ctx *Context, name string, args DnsZoneTransfersPeerArgs, opts ...ResourceOption) (*DnsZoneTransfersPeer, error)
    public DnsZoneTransfersPeer(string name, DnsZoneTransfersPeerArgs args, CustomResourceOptions? opts = null)
    public DnsZoneTransfersPeer(String name, DnsZoneTransfersPeerArgs args)
    public DnsZoneTransfersPeer(String name, DnsZoneTransfersPeerArgs args, CustomResourceOptions options)
    
    type: cloudflare:DnsZoneTransfersPeer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DnsZoneTransfersPeerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DnsZoneTransfersPeerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DnsZoneTransfersPeerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnsZoneTransfersPeerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnsZoneTransfersPeerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dnsZoneTransfersPeerResource = new Cloudflare.DnsZoneTransfersPeer("dnsZoneTransfersPeerResource", new()
    {
        AccountId = "string",
        Name = "string",
        Ip = "string",
        IxfrEnable = false,
        Port = 0,
        TsigId = "string",
    });
    
    example, err := cloudflare.NewDnsZoneTransfersPeer(ctx, "dnsZoneTransfersPeerResource", &cloudflare.DnsZoneTransfersPeerArgs{
    	AccountId:  pulumi.String("string"),
    	Name:       pulumi.String("string"),
    	Ip:         pulumi.String("string"),
    	IxfrEnable: pulumi.Bool(false),
    	Port:       pulumi.Float64(0),
    	TsigId:     pulumi.String("string"),
    })
    
    var dnsZoneTransfersPeerResource = new DnsZoneTransfersPeer("dnsZoneTransfersPeerResource", DnsZoneTransfersPeerArgs.builder()
        .accountId("string")
        .name("string")
        .ip("string")
        .ixfrEnable(false)
        .port(0)
        .tsigId("string")
        .build());
    
    dns_zone_transfers_peer_resource = cloudflare.DnsZoneTransfersPeer("dnsZoneTransfersPeerResource",
        account_id="string",
        name="string",
        ip="string",
        ixfr_enable=False,
        port=0,
        tsig_id="string")
    
    const dnsZoneTransfersPeerResource = new cloudflare.DnsZoneTransfersPeer("dnsZoneTransfersPeerResource", {
        accountId: "string",
        name: "string",
        ip: "string",
        ixfrEnable: false,
        port: 0,
        tsigId: "string",
    });
    
    type: cloudflare:DnsZoneTransfersPeer
    properties:
        accountId: string
        ip: string
        ixfrEnable: false
        name: string
        port: 0
        tsigId: string
    

    DnsZoneTransfersPeer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DnsZoneTransfersPeer resource accepts the following input properties:

    AccountId string
    Name string
    The name of the peer.
    Ip string
    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.
    IxfrEnable bool
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    Port double
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    TsigId string
    TSIG authentication will be used for zone transfer if configured.
    AccountId string
    Name string
    The name of the peer.
    Ip string
    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.
    IxfrEnable bool
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    Port float64
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    TsigId string
    TSIG authentication will be used for zone transfer if configured.
    accountId String
    name String
    The name of the peer.
    ip String
    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.
    ixfrEnable Boolean
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    port Double
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    tsigId String
    TSIG authentication will be used for zone transfer if configured.
    accountId string
    name string
    The name of the peer.
    ip string
    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.
    ixfrEnable boolean
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    port number
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    tsigId string
    TSIG authentication will be used for zone transfer if configured.
    account_id str
    name str
    The name of the peer.
    ip 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 bool
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    port float
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    tsig_id str
    TSIG authentication will be used for zone transfer if configured.
    accountId String
    name String
    The name of the peer.
    ip String
    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.
    ixfrEnable Boolean
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    port Number
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    tsigId String
    TSIG authentication will be used for zone transfer if configured.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DnsZoneTransfersPeer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DnsZoneTransfersPeer Resource

    Get an existing DnsZoneTransfersPeer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DnsZoneTransfersPeerState, opts?: CustomResourceOptions): DnsZoneTransfersPeer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            ip: Optional[str] = None,
            ixfr_enable: Optional[bool] = None,
            name: Optional[str] = None,
            port: Optional[float] = None,
            tsig_id: Optional[str] = None) -> DnsZoneTransfersPeer
    func GetDnsZoneTransfersPeer(ctx *Context, name string, id IDInput, state *DnsZoneTransfersPeerState, opts ...ResourceOption) (*DnsZoneTransfersPeer, error)
    public static DnsZoneTransfersPeer Get(string name, Input<string> id, DnsZoneTransfersPeerState? state, CustomResourceOptions? opts = null)
    public static DnsZoneTransfersPeer get(String name, Output<String> id, DnsZoneTransfersPeerState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:DnsZoneTransfersPeer    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    Ip string
    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.
    IxfrEnable bool
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    Name string
    The name of the peer.
    Port double
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    TsigId string
    TSIG authentication will be used for zone transfer if configured.
    AccountId string
    Ip string
    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.
    IxfrEnable bool
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    Name string
    The name of the peer.
    Port float64
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    TsigId string
    TSIG authentication will be used for zone transfer if configured.
    accountId String
    ip String
    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.
    ixfrEnable Boolean
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    name String
    The name of the peer.
    port Double
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    tsigId String
    TSIG authentication will be used for zone transfer if configured.
    accountId string
    ip string
    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.
    ixfrEnable boolean
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    name string
    The name of the peer.
    port number
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    tsigId string
    TSIG authentication will be used for zone transfer if configured.
    account_id str
    ip 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 bool
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    name str
    The name of the peer.
    port float
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    tsig_id str
    TSIG authentication will be used for zone transfer if configured.
    accountId String
    ip String
    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.
    ixfrEnable Boolean
    Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.
    name String
    The name of the peer.
    port Number
    DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.
    tsigId String
    TSIG authentication will be used for zone transfer if configured.

    Import

    $ pulumi import cloudflare:index/dnsZoneTransfersPeer:DnsZoneTransfersPeer example '<account_id>/<peer_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi