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

cloudflare.getDnsZoneTransfersPeer

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 = cloudflare.getDnsZoneTransfersPeer({
        accountId: "01a7362d577a6c3019a474fd6f485823",
        peerId: "23ff594956f20c2a721606e94745a8aa",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_dns_zone_transfers_peer = cloudflare.get_dns_zone_transfers_peer(account_id="01a7362d577a6c3019a474fd6f485823",
        peer_id="23ff594956f20c2a721606e94745a8aa")
    
    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.LookupDnsZoneTransfersPeer(ctx, &cloudflare.LookupDnsZoneTransfersPeerArgs{
    			AccountId: "01a7362d577a6c3019a474fd6f485823",
    			PeerId:    pulumi.StringRef("23ff594956f20c2a721606e94745a8aa"),
    		}, nil)
    		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 = Cloudflare.GetDnsZoneTransfersPeer.Invoke(new()
        {
            AccountId = "01a7362d577a6c3019a474fd6f485823",
            PeerId = "23ff594956f20c2a721606e94745a8aa",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetDnsZoneTransfersPeerArgs;
    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) {
            final var exampleDnsZoneTransfersPeer = CloudflareFunctions.getDnsZoneTransfersPeer(GetDnsZoneTransfersPeerArgs.builder()
                .accountId("01a7362d577a6c3019a474fd6f485823")
                .peerId("23ff594956f20c2a721606e94745a8aa")
                .build());
    
        }
    }
    
    variables:
      exampleDnsZoneTransfersPeer:
        fn::invoke:
          function: cloudflare:getDnsZoneTransfersPeer
          arguments:
            accountId: 01a7362d577a6c3019a474fd6f485823
            peerId: 23ff594956f20c2a721606e94745a8aa
    

    Using getDnsZoneTransfersPeer

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDnsZoneTransfersPeer(args: GetDnsZoneTransfersPeerArgs, opts?: InvokeOptions): Promise<GetDnsZoneTransfersPeerResult>
    function getDnsZoneTransfersPeerOutput(args: GetDnsZoneTransfersPeerOutputArgs, opts?: InvokeOptions): Output<GetDnsZoneTransfersPeerResult>
    def get_dns_zone_transfers_peer(account_id: Optional[str] = None,
                                    peer_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetDnsZoneTransfersPeerResult
    def get_dns_zone_transfers_peer_output(account_id: Optional[pulumi.Input[str]] = None,
                                    peer_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetDnsZoneTransfersPeerResult]
    func LookupDnsZoneTransfersPeer(ctx *Context, args *LookupDnsZoneTransfersPeerArgs, opts ...InvokeOption) (*LookupDnsZoneTransfersPeerResult, error)
    func LookupDnsZoneTransfersPeerOutput(ctx *Context, args *LookupDnsZoneTransfersPeerOutputArgs, opts ...InvokeOption) LookupDnsZoneTransfersPeerResultOutput

    > Note: This function is named LookupDnsZoneTransfersPeer in the Go SDK.

    public static class GetDnsZoneTransfersPeer 
    {
        public static Task<GetDnsZoneTransfersPeerResult> InvokeAsync(GetDnsZoneTransfersPeerArgs args, InvokeOptions? opts = null)
        public static Output<GetDnsZoneTransfersPeerResult> Invoke(GetDnsZoneTransfersPeerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsZoneTransfersPeerResult> getDnsZoneTransfersPeer(GetDnsZoneTransfersPeerArgs args, InvokeOptions options)
    public static Output<GetDnsZoneTransfersPeerResult> getDnsZoneTransfersPeer(GetDnsZoneTransfersPeerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getDnsZoneTransfersPeer:getDnsZoneTransfersPeer
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    PeerId string
    AccountId string
    PeerId string
    accountId String
    peerId String
    accountId string
    peerId string
    accountId String
    peerId String

    getDnsZoneTransfersPeer Result

    The following output properties are available:

    AccountId string
    Id string
    The ID of this resource.
    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.
    PeerId string
    AccountId string
    Id string
    The ID of this resource.
    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.
    PeerId string
    accountId String
    id String
    The ID of this resource.
    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.
    peerId String
    accountId string
    id string
    The ID of this resource.
    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.
    peerId string
    account_id str
    id str
    The ID of this resource.
    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.
    peer_id str
    accountId String
    id String
    The ID of this resource.
    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.
    peerId String

    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