1. Packages
  2. Dnsimple Provider
  3. API Docs
  4. DsRecord
DNSimple v4.1.2 published on Tuesday, Sep 24, 2024 by Pulumi

dnsimple.DsRecord

Explore with Pulumi AI

dnsimple logo
DNSimple v4.1.2 published on Tuesday, Sep 24, 2024 by Pulumi

    Provides a DNSimple domain delegation signer record resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dnsimple from "@pulumi/dnsimple";
    
    const foobar = new dnsimple.DsRecord("foobar", {
        domain: dnsimple.domain,
        algorithm: "8",
        digest: "6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B",
        digestType: "2",
        keyTag: "12345",
    });
    
    import pulumi
    import pulumi_dnsimple as dnsimple
    
    foobar = dnsimple.DsRecord("foobar",
        domain=dnsimple["domain"],
        algorithm="8",
        digest="6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B",
        digest_type="2",
        key_tag="12345")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dnsimple/sdk/v4/go/dnsimple"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dnsimple.NewDsRecord(ctx, "foobar", &dnsimple.DsRecordArgs{
    			Domain:     pulumi.Any(dnsimple.Domain),
    			Algorithm:  pulumi.String("8"),
    			Digest:     pulumi.String("6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B"),
    			DigestType: pulumi.String("2"),
    			KeyTag:     pulumi.String("12345"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DNSimple = Pulumi.DNSimple;
    
    return await Deployment.RunAsync(() => 
    {
        var foobar = new DNSimple.DsRecord("foobar", new()
        {
            Domain = dnsimple.Domain,
            Algorithm = "8",
            Digest = "6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B",
            DigestType = "2",
            KeyTag = "12345",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dnsimple.DsRecord;
    import com.pulumi.dnsimple.DsRecordArgs;
    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 foobar = new DsRecord("foobar", DsRecordArgs.builder()
                .domain(dnsimple.domain())
                .algorithm("8")
                .digest("6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B")
                .digestType("2")
                .keyTag("12345")
                .build());
    
        }
    }
    
    resources:
      foobar:
        type: dnsimple:DsRecord
        properties:
          domain: ${dnsimple.domain}
          algorithm: '8'
          digest: 6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B
          digestType: '2'
          keyTag: '12345'
    

    Create DsRecord Resource

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

    Constructor syntax

    new DsRecord(name: string, args: DsRecordArgs, opts?: CustomResourceOptions);
    @overload
    def DsRecord(resource_name: str,
                 args: DsRecordArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def DsRecord(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 algorithm: Optional[str] = None,
                 domain: Optional[str] = None,
                 digest: Optional[str] = None,
                 digest_type: Optional[str] = None,
                 keytag: Optional[str] = None,
                 public_key: Optional[str] = None)
    func NewDsRecord(ctx *Context, name string, args DsRecordArgs, opts ...ResourceOption) (*DsRecord, error)
    public DsRecord(string name, DsRecordArgs args, CustomResourceOptions? opts = null)
    public DsRecord(String name, DsRecordArgs args)
    public DsRecord(String name, DsRecordArgs args, CustomResourceOptions options)
    
    type: dnsimple:DsRecord
    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 DsRecordArgs
    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 DsRecordArgs
    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 DsRecordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DsRecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DsRecordArgs
    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 dsRecordResource = new DNSimple.DsRecord("dsRecordResource", new()
    {
        Algorithm = "string",
        Domain = "string",
        Digest = "string",
        DigestType = "string",
        Keytag = "string",
        PublicKey = "string",
    });
    
    example, err := dnsimple.NewDsRecord(ctx, "dsRecordResource", &dnsimple.DsRecordArgs{
    	Algorithm:  pulumi.String("string"),
    	Domain:     pulumi.String("string"),
    	Digest:     pulumi.String("string"),
    	DigestType: pulumi.String("string"),
    	Keytag:     pulumi.String("string"),
    	PublicKey:  pulumi.String("string"),
    })
    
    var dsRecordResource = new DsRecord("dsRecordResource", DsRecordArgs.builder()
        .algorithm("string")
        .domain("string")
        .digest("string")
        .digestType("string")
        .keytag("string")
        .publicKey("string")
        .build());
    
    ds_record_resource = dnsimple.DsRecord("dsRecordResource",
        algorithm="string",
        domain="string",
        digest="string",
        digest_type="string",
        keytag="string",
        public_key="string")
    
    const dsRecordResource = new dnsimple.DsRecord("dsRecordResource", {
        algorithm: "string",
        domain: "string",
        digest: "string",
        digestType: "string",
        keytag: "string",
        publicKey: "string",
    });
    
    type: dnsimple:DsRecord
    properties:
        algorithm: string
        digest: string
        digestType: string
        domain: string
        keytag: string
        publicKey: string
    

    DsRecord Resource Properties

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

    Inputs

    The DsRecord resource accepts the following input properties:

    Algorithm string
    DNSSEC algorithm number as a string.
    Domain string
    The domain name or numeric ID to create the delegation signer record for.
    Digest string
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    DigestType string
    DNSSEC digest type number as a string.
    Keytag string
    A keytag that references the corresponding DNSKEY record.
    PublicKey string
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    Algorithm string
    DNSSEC algorithm number as a string.
    Domain string
    The domain name or numeric ID to create the delegation signer record for.
    Digest string
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    DigestType string
    DNSSEC digest type number as a string.
    Keytag string
    A keytag that references the corresponding DNSKEY record.
    PublicKey string
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    algorithm String
    DNSSEC algorithm number as a string.
    domain String
    The domain name or numeric ID to create the delegation signer record for.
    digest String
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    digestType String
    DNSSEC digest type number as a string.
    keytag String
    A keytag that references the corresponding DNSKEY record.
    publicKey String
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    algorithm string
    DNSSEC algorithm number as a string.
    domain string
    The domain name or numeric ID to create the delegation signer record for.
    digest string
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    digestType string
    DNSSEC digest type number as a string.
    keytag string
    A keytag that references the corresponding DNSKEY record.
    publicKey string
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    algorithm str
    DNSSEC algorithm number as a string.
    domain str
    The domain name or numeric ID to create the delegation signer record for.
    digest str
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    digest_type str
    DNSSEC digest type number as a string.
    keytag str
    A keytag that references the corresponding DNSKEY record.
    public_key str
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    algorithm String
    DNSSEC algorithm number as a string.
    domain String
    The domain name or numeric ID to create the delegation signer record for.
    digest String
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    digestType String
    DNSSEC digest type number as a string.
    keytag String
    A keytag that references the corresponding DNSKEY record.
    publicKey String
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    Outputs

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

    CreatedAt string
    The time the DS record was created at.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The time the DS record was last updated at.
    CreatedAt string
    The time the DS record was created at.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The time the DS record was last updated at.
    createdAt String
    The time the DS record was created at.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The time the DS record was last updated at.
    createdAt string
    The time the DS record was created at.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    The time the DS record was last updated at.
    created_at str
    The time the DS record was created at.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    The time the DS record was last updated at.
    createdAt String
    The time the DS record was created at.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The time the DS record was last updated at.

    Look up Existing DsRecord Resource

    Get an existing DsRecord 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?: DsRecordState, opts?: CustomResourceOptions): DsRecord
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            algorithm: Optional[str] = None,
            created_at: Optional[str] = None,
            digest: Optional[str] = None,
            digest_type: Optional[str] = None,
            domain: Optional[str] = None,
            keytag: Optional[str] = None,
            public_key: Optional[str] = None,
            updated_at: Optional[str] = None) -> DsRecord
    func GetDsRecord(ctx *Context, name string, id IDInput, state *DsRecordState, opts ...ResourceOption) (*DsRecord, error)
    public static DsRecord Get(string name, Input<string> id, DsRecordState? state, CustomResourceOptions? opts = null)
    public static DsRecord get(String name, Output<String> id, DsRecordState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Algorithm string
    DNSSEC algorithm number as a string.
    CreatedAt string
    The time the DS record was created at.
    Digest string
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    DigestType string
    DNSSEC digest type number as a string.
    Domain string
    The domain name or numeric ID to create the delegation signer record for.
    Keytag string
    A keytag that references the corresponding DNSKEY record.
    PublicKey string
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    UpdatedAt string
    The time the DS record was last updated at.
    Algorithm string
    DNSSEC algorithm number as a string.
    CreatedAt string
    The time the DS record was created at.
    Digest string
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    DigestType string
    DNSSEC digest type number as a string.
    Domain string
    The domain name or numeric ID to create the delegation signer record for.
    Keytag string
    A keytag that references the corresponding DNSKEY record.
    PublicKey string
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    UpdatedAt string
    The time the DS record was last updated at.
    algorithm String
    DNSSEC algorithm number as a string.
    createdAt String
    The time the DS record was created at.
    digest String
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    digestType String
    DNSSEC digest type number as a string.
    domain String
    The domain name or numeric ID to create the delegation signer record for.
    keytag String
    A keytag that references the corresponding DNSKEY record.
    publicKey String
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    updatedAt String
    The time the DS record was last updated at.
    algorithm string
    DNSSEC algorithm number as a string.
    createdAt string
    The time the DS record was created at.
    digest string
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    digestType string
    DNSSEC digest type number as a string.
    domain string
    The domain name or numeric ID to create the delegation signer record for.
    keytag string
    A keytag that references the corresponding DNSKEY record.
    publicKey string
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    updatedAt string
    The time the DS record was last updated at.
    algorithm str
    DNSSEC algorithm number as a string.
    created_at str
    The time the DS record was created at.
    digest str
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    digest_type str
    DNSSEC digest type number as a string.
    domain str
    The domain name or numeric ID to create the delegation signer record for.
    keytag str
    A keytag that references the corresponding DNSKEY record.
    public_key str
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    updated_at str
    The time the DS record was last updated at.
    algorithm String
    DNSSEC algorithm number as a string.
    createdAt String
    The time the DS record was created at.
    digest String
    The hexidecimal representation of the digest of the corresponding DNSKEY record.
    digestType String
    DNSSEC digest type number as a string.
    domain String
    The domain name or numeric ID to create the delegation signer record for.
    keytag String
    A keytag that references the corresponding DNSKEY record.
    publicKey String
    A public key that references the corresponding DNSKEY record.

    Attributes Reference

    updatedAt String
    The time the DS record was last updated at.

    Import

    DNSimple DS record resources can be imported using their domain ID and numeric record ID.

    bash

    $ pulumi import dnsimple:index/dsRecord:DsRecord resource_name example.com_5678
    

    The record ID can be found within DNSimple DNSSEC API. Check out Authentication in API Overview for available options.

    bash

    curl -u ‘EMAIL:PASSWORD’ https://api.dnsimple.com/v2/1010/domains/example.com/ds_records | jq

    {

    “data”: [

    {
    
      "id": 24,
    
      "domain_id": 1010,
    
      "algorithm": "8",
    
      "digest": "C1F6E04A5A61FBF65BF9DC8294C363CF11C89E802D926BDAB79C55D27BEFA94F",
    
      "digest_type": "2",
    
      "keytag": "44620",
    
      "public_key": null,
    
      "created_at": "2017-03-03T13:49:58Z",
    
      "updated_at": "2017-03-03T13:49:58Z"
    
    }
    

    ],

    “pagination”: {

    "current_page": 1,
    
    "per_page": 30,
    
    "total_entries": 1,
    
    "total_pages": 1
    

    }

    }

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

    Package Details

    Repository
    DNSimple pulumi/pulumi-dnsimple
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dnsimple Terraform Provider.
    dnsimple logo
    DNSimple v4.1.2 published on Tuesday, Sep 24, 2024 by Pulumi