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

cloudflare.DnsZoneTransfersOutgoing

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 exampleDnsZoneTransfersOutgoing = new cloudflare.DnsZoneTransfersOutgoing("example_dns_zone_transfers_outgoing", {
        zoneId: "269d8f4853475ca241c4e730be286b20",
        name: "www.example.com.",
        peers: [
            "23ff594956f20c2a721606e94745a8aa",
            "00920f38ce07c2e2f4df50b1f61d4194",
        ],
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_dns_zone_transfers_outgoing = cloudflare.DnsZoneTransfersOutgoing("example_dns_zone_transfers_outgoing",
        zone_id="269d8f4853475ca241c4e730be286b20",
        name="www.example.com.",
        peers=[
            "23ff594956f20c2a721606e94745a8aa",
            "00920f38ce07c2e2f4df50b1f61d4194",
        ])
    
    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.NewDnsZoneTransfersOutgoing(ctx, "example_dns_zone_transfers_outgoing", &cloudflare.DnsZoneTransfersOutgoingArgs{
    			ZoneId: pulumi.String("269d8f4853475ca241c4e730be286b20"),
    			Name:   pulumi.String("www.example.com."),
    			Peers: pulumi.StringArray{
    				pulumi.String("23ff594956f20c2a721606e94745a8aa"),
    				pulumi.String("00920f38ce07c2e2f4df50b1f61d4194"),
    			},
    		})
    		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 exampleDnsZoneTransfersOutgoing = new Cloudflare.DnsZoneTransfersOutgoing("example_dns_zone_transfers_outgoing", new()
        {
            ZoneId = "269d8f4853475ca241c4e730be286b20",
            Name = "www.example.com.",
            Peers = new[]
            {
                "23ff594956f20c2a721606e94745a8aa",
                "00920f38ce07c2e2f4df50b1f61d4194",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.DnsZoneTransfersOutgoing;
    import com.pulumi.cloudflare.DnsZoneTransfersOutgoingArgs;
    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 exampleDnsZoneTransfersOutgoing = new DnsZoneTransfersOutgoing("exampleDnsZoneTransfersOutgoing", DnsZoneTransfersOutgoingArgs.builder()
                .zoneId("269d8f4853475ca241c4e730be286b20")
                .name("www.example.com.")
                .peers(            
                    "23ff594956f20c2a721606e94745a8aa",
                    "00920f38ce07c2e2f4df50b1f61d4194")
                .build());
    
        }
    }
    
    resources:
      exampleDnsZoneTransfersOutgoing:
        type: cloudflare:DnsZoneTransfersOutgoing
        name: example_dns_zone_transfers_outgoing
        properties:
          zoneId: 269d8f4853475ca241c4e730be286b20
          name: www.example.com.
          peers:
            - 23ff594956f20c2a721606e94745a8aa
            - 00920f38ce07c2e2f4df50b1f61d4194
    

    Create DnsZoneTransfersOutgoing Resource

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

    Constructor syntax

    new DnsZoneTransfersOutgoing(name: string, args: DnsZoneTransfersOutgoingArgs, opts?: CustomResourceOptions);
    @overload
    def DnsZoneTransfersOutgoing(resource_name: str,
                                 args: DnsZoneTransfersOutgoingArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def DnsZoneTransfersOutgoing(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 name: Optional[str] = None,
                                 peers: Optional[Sequence[str]] = None,
                                 zone_id: Optional[str] = None)
    func NewDnsZoneTransfersOutgoing(ctx *Context, name string, args DnsZoneTransfersOutgoingArgs, opts ...ResourceOption) (*DnsZoneTransfersOutgoing, error)
    public DnsZoneTransfersOutgoing(string name, DnsZoneTransfersOutgoingArgs args, CustomResourceOptions? opts = null)
    public DnsZoneTransfersOutgoing(String name, DnsZoneTransfersOutgoingArgs args)
    public DnsZoneTransfersOutgoing(String name, DnsZoneTransfersOutgoingArgs args, CustomResourceOptions options)
    
    type: cloudflare:DnsZoneTransfersOutgoing
    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 DnsZoneTransfersOutgoingArgs
    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 DnsZoneTransfersOutgoingArgs
    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 DnsZoneTransfersOutgoingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnsZoneTransfersOutgoingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnsZoneTransfersOutgoingArgs
    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 dnsZoneTransfersOutgoingResource = new Cloudflare.DnsZoneTransfersOutgoing("dnsZoneTransfersOutgoingResource", new()
    {
        Name = "string",
        Peers = new[]
        {
            "string",
        },
        ZoneId = "string",
    });
    
    example, err := cloudflare.NewDnsZoneTransfersOutgoing(ctx, "dnsZoneTransfersOutgoingResource", &cloudflare.DnsZoneTransfersOutgoingArgs{
    	Name: pulumi.String("string"),
    	Peers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ZoneId: pulumi.String("string"),
    })
    
    var dnsZoneTransfersOutgoingResource = new DnsZoneTransfersOutgoing("dnsZoneTransfersOutgoingResource", DnsZoneTransfersOutgoingArgs.builder()
        .name("string")
        .peers("string")
        .zoneId("string")
        .build());
    
    dns_zone_transfers_outgoing_resource = cloudflare.DnsZoneTransfersOutgoing("dnsZoneTransfersOutgoingResource",
        name="string",
        peers=["string"],
        zone_id="string")
    
    const dnsZoneTransfersOutgoingResource = new cloudflare.DnsZoneTransfersOutgoing("dnsZoneTransfersOutgoingResource", {
        name: "string",
        peers: ["string"],
        zoneId: "string",
    });
    
    type: cloudflare:DnsZoneTransfersOutgoing
    properties:
        name: string
        peers:
            - string
        zoneId: string
    

    DnsZoneTransfersOutgoing 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 DnsZoneTransfersOutgoing resource accepts the following input properties:

    Name string
    Zone name.
    Peers List<string>
    A list of peer tags.
    ZoneId string
    Name string
    Zone name.
    Peers []string
    A list of peer tags.
    ZoneId string
    name String
    Zone name.
    peers List<String>
    A list of peer tags.
    zoneId String
    name string
    Zone name.
    peers string[]
    A list of peer tags.
    zoneId string
    name str
    Zone name.
    peers Sequence[str]
    A list of peer tags.
    zone_id str
    name String
    Zone name.
    peers List<String>
    A list of peer tags.
    zoneId String

    Outputs

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

    CheckedTime string
    The time for a specific event.
    CreatedTime string
    The time for a specific event.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastTransferredTime string
    The time for a specific event.
    SoaSerial double
    The serial number of the SOA for the given zone.
    CheckedTime string
    The time for a specific event.
    CreatedTime string
    The time for a specific event.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastTransferredTime string
    The time for a specific event.
    SoaSerial float64
    The serial number of the SOA for the given zone.
    checkedTime String
    The time for a specific event.
    createdTime String
    The time for a specific event.
    id String
    The provider-assigned unique ID for this managed resource.
    lastTransferredTime String
    The time for a specific event.
    soaSerial Double
    The serial number of the SOA for the given zone.
    checkedTime string
    The time for a specific event.
    createdTime string
    The time for a specific event.
    id string
    The provider-assigned unique ID for this managed resource.
    lastTransferredTime string
    The time for a specific event.
    soaSerial number
    The serial number of the SOA for the given zone.
    checked_time str
    The time for a specific event.
    created_time str
    The time for a specific event.
    id str
    The provider-assigned unique ID for this managed resource.
    last_transferred_time str
    The time for a specific event.
    soa_serial float
    The serial number of the SOA for the given zone.
    checkedTime String
    The time for a specific event.
    createdTime String
    The time for a specific event.
    id String
    The provider-assigned unique ID for this managed resource.
    lastTransferredTime String
    The time for a specific event.
    soaSerial Number
    The serial number of the SOA for the given zone.

    Look up Existing DnsZoneTransfersOutgoing Resource

    Get an existing DnsZoneTransfersOutgoing 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?: DnsZoneTransfersOutgoingState, opts?: CustomResourceOptions): DnsZoneTransfersOutgoing
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            checked_time: Optional[str] = None,
            created_time: Optional[str] = None,
            last_transferred_time: Optional[str] = None,
            name: Optional[str] = None,
            peers: Optional[Sequence[str]] = None,
            soa_serial: Optional[float] = None,
            zone_id: Optional[str] = None) -> DnsZoneTransfersOutgoing
    func GetDnsZoneTransfersOutgoing(ctx *Context, name string, id IDInput, state *DnsZoneTransfersOutgoingState, opts ...ResourceOption) (*DnsZoneTransfersOutgoing, error)
    public static DnsZoneTransfersOutgoing Get(string name, Input<string> id, DnsZoneTransfersOutgoingState? state, CustomResourceOptions? opts = null)
    public static DnsZoneTransfersOutgoing get(String name, Output<String> id, DnsZoneTransfersOutgoingState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:DnsZoneTransfersOutgoing    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:
    CheckedTime string
    The time for a specific event.
    CreatedTime string
    The time for a specific event.
    LastTransferredTime string
    The time for a specific event.
    Name string
    Zone name.
    Peers List<string>
    A list of peer tags.
    SoaSerial double
    The serial number of the SOA for the given zone.
    ZoneId string
    CheckedTime string
    The time for a specific event.
    CreatedTime string
    The time for a specific event.
    LastTransferredTime string
    The time for a specific event.
    Name string
    Zone name.
    Peers []string
    A list of peer tags.
    SoaSerial float64
    The serial number of the SOA for the given zone.
    ZoneId string
    checkedTime String
    The time for a specific event.
    createdTime String
    The time for a specific event.
    lastTransferredTime String
    The time for a specific event.
    name String
    Zone name.
    peers List<String>
    A list of peer tags.
    soaSerial Double
    The serial number of the SOA for the given zone.
    zoneId String
    checkedTime string
    The time for a specific event.
    createdTime string
    The time for a specific event.
    lastTransferredTime string
    The time for a specific event.
    name string
    Zone name.
    peers string[]
    A list of peer tags.
    soaSerial number
    The serial number of the SOA for the given zone.
    zoneId string
    checked_time str
    The time for a specific event.
    created_time str
    The time for a specific event.
    last_transferred_time str
    The time for a specific event.
    name str
    Zone name.
    peers Sequence[str]
    A list of peer tags.
    soa_serial float
    The serial number of the SOA for the given zone.
    zone_id str
    checkedTime String
    The time for a specific event.
    createdTime String
    The time for a specific event.
    lastTransferredTime String
    The time for a specific event.
    name String
    Zone name.
    peers List<String>
    A list of peer tags.
    soaSerial Number
    The serial number of the SOA for the given zone.
    zoneId String

    Import

    $ pulumi import cloudflare:index/dnsZoneTransfersOutgoing:DnsZoneTransfersOutgoing example '<zone_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