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

cloudflare.DnsZoneTransfersTsig

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 exampleDnsZoneTransfersTsig = new cloudflare.DnsZoneTransfersTsig("example_dns_zone_transfers_tsig", {
        accountId: "01a7362d577a6c3019a474fd6f485823",
        algo: "hmac-sha512.",
        name: "tsig.customer.cf.",
        secret: "caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_dns_zone_transfers_tsig = cloudflare.DnsZoneTransfersTsig("example_dns_zone_transfers_tsig",
        account_id="01a7362d577a6c3019a474fd6f485823",
        algo="hmac-sha512.",
        name="tsig.customer.cf.",
        secret="caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c")
    
    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.NewDnsZoneTransfersTsig(ctx, "example_dns_zone_transfers_tsig", &cloudflare.DnsZoneTransfersTsigArgs{
    			AccountId: pulumi.String("01a7362d577a6c3019a474fd6f485823"),
    			Algo:      pulumi.String("hmac-sha512."),
    			Name:      pulumi.String("tsig.customer.cf."),
    			Secret:    pulumi.String("caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c"),
    		})
    		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 exampleDnsZoneTransfersTsig = new Cloudflare.DnsZoneTransfersTsig("example_dns_zone_transfers_tsig", new()
        {
            AccountId = "01a7362d577a6c3019a474fd6f485823",
            Algo = "hmac-sha512.",
            Name = "tsig.customer.cf.",
            Secret = "caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.DnsZoneTransfersTsig;
    import com.pulumi.cloudflare.DnsZoneTransfersTsigArgs;
    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 exampleDnsZoneTransfersTsig = new DnsZoneTransfersTsig("exampleDnsZoneTransfersTsig", DnsZoneTransfersTsigArgs.builder()
                .accountId("01a7362d577a6c3019a474fd6f485823")
                .algo("hmac-sha512.")
                .name("tsig.customer.cf.")
                .secret("caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c")
                .build());
    
        }
    }
    
    resources:
      exampleDnsZoneTransfersTsig:
        type: cloudflare:DnsZoneTransfersTsig
        name: example_dns_zone_transfers_tsig
        properties:
          accountId: 01a7362d577a6c3019a474fd6f485823
          algo: hmac-sha512.
          name: tsig.customer.cf.
          secret: caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c
    

    Create DnsZoneTransfersTsig Resource

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

    Constructor syntax

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

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

    AccountId string
    Algo string
    TSIG algorithm.
    Name string
    TSIG key name.
    Secret string
    TSIG secret.
    AccountId string
    Algo string
    TSIG algorithm.
    Name string
    TSIG key name.
    Secret string
    TSIG secret.
    accountId String
    algo String
    TSIG algorithm.
    name String
    TSIG key name.
    secret String
    TSIG secret.
    accountId string
    algo string
    TSIG algorithm.
    name string
    TSIG key name.
    secret string
    TSIG secret.
    account_id str
    algo str
    TSIG algorithm.
    name str
    TSIG key name.
    secret str
    TSIG secret.
    accountId String
    algo String
    TSIG algorithm.
    name String
    TSIG key name.
    secret String
    TSIG secret.

    Outputs

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

    Get an existing DnsZoneTransfersTsig 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?: DnsZoneTransfersTsigState, opts?: CustomResourceOptions): DnsZoneTransfersTsig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            algo: Optional[str] = None,
            name: Optional[str] = None,
            secret: Optional[str] = None) -> DnsZoneTransfersTsig
    func GetDnsZoneTransfersTsig(ctx *Context, name string, id IDInput, state *DnsZoneTransfersTsigState, opts ...ResourceOption) (*DnsZoneTransfersTsig, error)
    public static DnsZoneTransfersTsig Get(string name, Input<string> id, DnsZoneTransfersTsigState? state, CustomResourceOptions? opts = null)
    public static DnsZoneTransfersTsig get(String name, Output<String> id, DnsZoneTransfersTsigState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:DnsZoneTransfersTsig    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
    Algo string
    TSIG algorithm.
    Name string
    TSIG key name.
    Secret string
    TSIG secret.
    AccountId string
    Algo string
    TSIG algorithm.
    Name string
    TSIG key name.
    Secret string
    TSIG secret.
    accountId String
    algo String
    TSIG algorithm.
    name String
    TSIG key name.
    secret String
    TSIG secret.
    accountId string
    algo string
    TSIG algorithm.
    name string
    TSIG key name.
    secret string
    TSIG secret.
    account_id str
    algo str
    TSIG algorithm.
    name str
    TSIG key name.
    secret str
    TSIG secret.
    accountId String
    algo String
    TSIG algorithm.
    name String
    TSIG key name.
    secret String
    TSIG secret.

    Import

    $ pulumi import cloudflare:index/dnsZoneTransfersTsig:DnsZoneTransfersTsig example '<account_id>/<tsig_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