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

cloudflare.DnsZoneTransfersAcl

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 exampleDnsZoneTransfersAcl = new cloudflare.DnsZoneTransfersAcl("example_dns_zone_transfers_acl", {
        accountId: "01a7362d577a6c3019a474fd6f485823",
        ipRange: "192.0.2.53/28",
        name: "my-acl-1",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_dns_zone_transfers_acl = cloudflare.DnsZoneTransfersAcl("example_dns_zone_transfers_acl",
        account_id="01a7362d577a6c3019a474fd6f485823",
        ip_range="192.0.2.53/28",
        name="my-acl-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.NewDnsZoneTransfersAcl(ctx, "example_dns_zone_transfers_acl", &cloudflare.DnsZoneTransfersAclArgs{
    			AccountId: pulumi.String("01a7362d577a6c3019a474fd6f485823"),
    			IpRange:   pulumi.String("192.0.2.53/28"),
    			Name:      pulumi.String("my-acl-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 exampleDnsZoneTransfersAcl = new Cloudflare.DnsZoneTransfersAcl("example_dns_zone_transfers_acl", new()
        {
            AccountId = "01a7362d577a6c3019a474fd6f485823",
            IpRange = "192.0.2.53/28",
            Name = "my-acl-1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.DnsZoneTransfersAcl;
    import com.pulumi.cloudflare.DnsZoneTransfersAclArgs;
    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 exampleDnsZoneTransfersAcl = new DnsZoneTransfersAcl("exampleDnsZoneTransfersAcl", DnsZoneTransfersAclArgs.builder()
                .accountId("01a7362d577a6c3019a474fd6f485823")
                .ipRange("192.0.2.53/28")
                .name("my-acl-1")
                .build());
    
        }
    }
    
    resources:
      exampleDnsZoneTransfersAcl:
        type: cloudflare:DnsZoneTransfersAcl
        name: example_dns_zone_transfers_acl
        properties:
          accountId: 01a7362d577a6c3019a474fd6f485823
          ipRange: 192.0.2.53/28
          name: my-acl-1
    

    Create DnsZoneTransfersAcl Resource

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

    Constructor syntax

    new DnsZoneTransfersAcl(name: string, args: DnsZoneTransfersAclArgs, opts?: CustomResourceOptions);
    @overload
    def DnsZoneTransfersAcl(resource_name: str,
                            args: DnsZoneTransfersAclArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DnsZoneTransfersAcl(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            account_id: Optional[str] = None,
                            ip_range: Optional[str] = None,
                            name: Optional[str] = None)
    func NewDnsZoneTransfersAcl(ctx *Context, name string, args DnsZoneTransfersAclArgs, opts ...ResourceOption) (*DnsZoneTransfersAcl, error)
    public DnsZoneTransfersAcl(string name, DnsZoneTransfersAclArgs args, CustomResourceOptions? opts = null)
    public DnsZoneTransfersAcl(String name, DnsZoneTransfersAclArgs args)
    public DnsZoneTransfersAcl(String name, DnsZoneTransfersAclArgs args, CustomResourceOptions options)
    
    type: cloudflare:DnsZoneTransfersAcl
    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 DnsZoneTransfersAclArgs
    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 DnsZoneTransfersAclArgs
    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 DnsZoneTransfersAclArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnsZoneTransfersAclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnsZoneTransfersAclArgs
    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 dnsZoneTransfersAclResource = new Cloudflare.DnsZoneTransfersAcl("dnsZoneTransfersAclResource", new()
    {
        AccountId = "string",
        IpRange = "string",
        Name = "string",
    });
    
    example, err := cloudflare.NewDnsZoneTransfersAcl(ctx, "dnsZoneTransfersAclResource", &cloudflare.DnsZoneTransfersAclArgs{
    	AccountId: pulumi.String("string"),
    	IpRange:   pulumi.String("string"),
    	Name:      pulumi.String("string"),
    })
    
    var dnsZoneTransfersAclResource = new DnsZoneTransfersAcl("dnsZoneTransfersAclResource", DnsZoneTransfersAclArgs.builder()
        .accountId("string")
        .ipRange("string")
        .name("string")
        .build());
    
    dns_zone_transfers_acl_resource = cloudflare.DnsZoneTransfersAcl("dnsZoneTransfersAclResource",
        account_id="string",
        ip_range="string",
        name="string")
    
    const dnsZoneTransfersAclResource = new cloudflare.DnsZoneTransfersAcl("dnsZoneTransfersAclResource", {
        accountId: "string",
        ipRange: "string",
        name: "string",
    });
    
    type: cloudflare:DnsZoneTransfersAcl
    properties:
        accountId: string
        ipRange: string
        name: string
    

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

    AccountId string
    IpRange string
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    Name string
    The name of the acl.
    AccountId string
    IpRange string
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    Name string
    The name of the acl.
    accountId String
    ipRange String
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    name String
    The name of the acl.
    accountId string
    ipRange string
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    name string
    The name of the acl.
    account_id str
    ip_range str
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    name str
    The name of the acl.
    accountId String
    ipRange String
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    name String
    The name of the acl.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DnsZoneTransfersAcl 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 DnsZoneTransfersAcl Resource

    Get an existing DnsZoneTransfersAcl 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?: DnsZoneTransfersAclState, opts?: CustomResourceOptions): DnsZoneTransfersAcl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            ip_range: Optional[str] = None,
            name: Optional[str] = None) -> DnsZoneTransfersAcl
    func GetDnsZoneTransfersAcl(ctx *Context, name string, id IDInput, state *DnsZoneTransfersAclState, opts ...ResourceOption) (*DnsZoneTransfersAcl, error)
    public static DnsZoneTransfersAcl Get(string name, Input<string> id, DnsZoneTransfersAclState? state, CustomResourceOptions? opts = null)
    public static DnsZoneTransfersAcl get(String name, Output<String> id, DnsZoneTransfersAclState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:DnsZoneTransfersAcl    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
    IpRange string
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    Name string
    The name of the acl.
    AccountId string
    IpRange string
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    Name string
    The name of the acl.
    accountId String
    ipRange String
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    name String
    The name of the acl.
    accountId string
    ipRange string
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    name string
    The name of the acl.
    account_id str
    ip_range str
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    name str
    The name of the acl.
    accountId String
    ipRange String
    Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.
    name String
    The name of the acl.

    Import

    $ pulumi import cloudflare:index/dnsZoneTransfersAcl:DnsZoneTransfersAcl example '<account_id>/<acl_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