1. Packages
  2. Ns1 Provider
  3. API Docs
  4. getDNSSec
NS1 v3.4.6 published on Friday, Oct 18, 2024 by Pulumi

ns1.getDNSSec

Explore with Pulumi AI

ns1 logo
NS1 v3.4.6 published on Friday, Oct 18, 2024 by Pulumi

    Provides DNSSEC details about a NS1 Zone.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ns1 from "@pulumi/ns1";
    
    // Get DNSSEC details about a NS1 Zone.
    const exampleZone = new ns1.Zone("example", {
        zone: "terraform.example.io",
        dnssec: true,
    });
    const example = ns1.getDNSSecOutput({
        zone: exampleZone.zone,
    });
    
    import pulumi
    import pulumi_ns1 as ns1
    
    # Get DNSSEC details about a NS1 Zone.
    example_zone = ns1.Zone("example",
        zone="terraform.example.io",
        dnssec=True)
    example = ns1.get_dns_sec_output(zone=example_zone.zone)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-ns1/sdk/v3/go/ns1"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Get DNSSEC details about a NS1 Zone.
    		exampleZone, err := ns1.NewZone(ctx, "example", &ns1.ZoneArgs{
    			Zone:   pulumi.String("terraform.example.io"),
    			Dnssec: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_ = ns1.GetDNSSecOutput(ctx, ns1.GetDNSSecOutputArgs{
    			Zone: exampleZone.Zone,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ns1 = Pulumi.Ns1;
    
    return await Deployment.RunAsync(() => 
    {
        // Get DNSSEC details about a NS1 Zone.
        var exampleZone = new Ns1.Zone("example", new()
        {
            ZoneName = "terraform.example.io",
            Dnssec = true,
        });
    
        var example = Ns1.GetDNSSec.Invoke(new()
        {
            Zone = exampleZone.ZoneName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ns1.Zone;
    import com.pulumi.ns1.ZoneArgs;
    import com.pulumi.ns1.Ns1Functions;
    import com.pulumi.ns1.inputs.GetDNSSecArgs;
    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) {
            // Get DNSSEC details about a NS1 Zone.
            var exampleZone = new Zone("exampleZone", ZoneArgs.builder()
                .zone("terraform.example.io")
                .dnssec(true)
                .build());
    
            final var example = Ns1Functions.getDNSSec(GetDNSSecArgs.builder()
                .zone(exampleZone.zone())
                .build());
    
        }
    }
    
    resources:
      # Get DNSSEC details about a NS1 Zone.
      exampleZone:
        type: ns1:Zone
        name: example
        properties:
          zone: terraform.example.io
          dnssec: true
    variables:
      example:
        fn::invoke:
          Function: ns1:getDNSSec
          Arguments:
            zone: ${exampleZone.zone}
    

    Using getDNSSec

    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 getDNSSec(args: GetDNSSecArgs, opts?: InvokeOptions): Promise<GetDNSSecResult>
    function getDNSSecOutput(args: GetDNSSecOutputArgs, opts?: InvokeOptions): Output<GetDNSSecResult>
    def get_dns_sec(zone: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDNSSecResult
    def get_dns_sec_output(zone: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDNSSecResult]
    func GetDNSSec(ctx *Context, args *GetDNSSecArgs, opts ...InvokeOption) (*GetDNSSecResult, error)
    func GetDNSSecOutput(ctx *Context, args *GetDNSSecOutputArgs, opts ...InvokeOption) GetDNSSecResultOutput

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

    public static class GetDNSSec 
    {
        public static Task<GetDNSSecResult> InvokeAsync(GetDNSSecArgs args, InvokeOptions? opts = null)
        public static Output<GetDNSSecResult> Invoke(GetDNSSecInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDNSSecResult> getDNSSec(GetDNSSecArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ns1:index/getDNSSec:getDNSSec
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Zone string
    The name of the zone to get DNSSEC details for.
    Zone string
    The name of the zone to get DNSSEC details for.
    zone String
    The name of the zone to get DNSSEC details for.
    zone string
    The name of the zone to get DNSSEC details for.
    zone str
    The name of the zone to get DNSSEC details for.
    zone String
    The name of the zone to get DNSSEC details for.

    getDNSSec Result

    The following output properties are available:

    Delegations List<GetDNSSecDelegation>
    (Computed) - Delegation field is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Keys List<GetDNSSecKey>
    (Computed) - Keys field is documented below.
    Zone string
    Delegations []GetDNSSecDelegation
    (Computed) - Delegation field is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Keys []GetDNSSecKey
    (Computed) - Keys field is documented below.
    Zone string
    delegations List<GetDNSSecDelegation>
    (Computed) - Delegation field is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    keys List<GetDNSSecKey>
    (Computed) - Keys field is documented below.
    zone String
    delegations GetDNSSecDelegation[]
    (Computed) - Delegation field is documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    keys GetDNSSecKey[]
    (Computed) - Keys field is documented below.
    zone string
    delegations Sequence[GetDNSSecDelegation]
    (Computed) - Delegation field is documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    keys Sequence[GetDNSSecKey]
    (Computed) - Keys field is documented below.
    zone str
    delegations List<Property Map>
    (Computed) - Delegation field is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    keys List<Property Map>
    (Computed) - Keys field is documented below.
    zone String

    Supporting Types

    GetDNSSecDelegation

    Dnskeys List<GetDNSSecDelegationDnskey>
    (Computed) List of Keys. Key is documented below.
    Ds List<GetDNSSecDelegationD>
    (Computed) List of Keys. Key is documented below.
    Ttl int
    (Computed) TTL for the Keys (int).
    Dnskeys []GetDNSSecDelegationDnskey
    (Computed) List of Keys. Key is documented below.
    Ds []GetDNSSecDelegationD
    (Computed) List of Keys. Key is documented below.
    Ttl int
    (Computed) TTL for the Keys (int).
    dnskeys List<GetDNSSecDelegationDnskey>
    (Computed) List of Keys. Key is documented below.
    ds List<GetDNSSecDelegationD>
    (Computed) List of Keys. Key is documented below.
    ttl Integer
    (Computed) TTL for the Keys (int).
    dnskeys GetDNSSecDelegationDnskey[]
    (Computed) List of Keys. Key is documented below.
    ds GetDNSSecDelegationD[]
    (Computed) List of Keys. Key is documented below.
    ttl number
    (Computed) TTL for the Keys (int).
    dnskeys Sequence[GetDNSSecDelegationDnskey]
    (Computed) List of Keys. Key is documented below.
    ds Sequence[GetDNSSecDelegationD]
    (Computed) List of Keys. Key is documented below.
    ttl int
    (Computed) TTL for the Keys (int).
    dnskeys List<Property Map>
    (Computed) List of Keys. Key is documented below.
    ds List<Property Map>
    (Computed) List of Keys. Key is documented below.
    ttl Number
    (Computed) TTL for the Keys (int).

    GetDNSSecDelegationD

    Algorithm string
    (Computed) Algorithm of the key.
    Flags string
    (Computed) Flags for the key.
    Protocol string
    (Computed) Protocol of the key.
    PublicKey string
    (Computed) Public key for the key.
    Algorithm string
    (Computed) Algorithm of the key.
    Flags string
    (Computed) Flags for the key.
    Protocol string
    (Computed) Protocol of the key.
    PublicKey string
    (Computed) Public key for the key.
    algorithm String
    (Computed) Algorithm of the key.
    flags String
    (Computed) Flags for the key.
    protocol String
    (Computed) Protocol of the key.
    publicKey String
    (Computed) Public key for the key.
    algorithm string
    (Computed) Algorithm of the key.
    flags string
    (Computed) Flags for the key.
    protocol string
    (Computed) Protocol of the key.
    publicKey string
    (Computed) Public key for the key.
    algorithm str
    (Computed) Algorithm of the key.
    flags str
    (Computed) Flags for the key.
    protocol str
    (Computed) Protocol of the key.
    public_key str
    (Computed) Public key for the key.
    algorithm String
    (Computed) Algorithm of the key.
    flags String
    (Computed) Flags for the key.
    protocol String
    (Computed) Protocol of the key.
    publicKey String
    (Computed) Public key for the key.

    GetDNSSecDelegationDnskey

    Algorithm string
    (Computed) Algorithm of the key.
    Flags string
    (Computed) Flags for the key.
    Protocol string
    (Computed) Protocol of the key.
    PublicKey string
    (Computed) Public key for the key.
    Algorithm string
    (Computed) Algorithm of the key.
    Flags string
    (Computed) Flags for the key.
    Protocol string
    (Computed) Protocol of the key.
    PublicKey string
    (Computed) Public key for the key.
    algorithm String
    (Computed) Algorithm of the key.
    flags String
    (Computed) Flags for the key.
    protocol String
    (Computed) Protocol of the key.
    publicKey String
    (Computed) Public key for the key.
    algorithm string
    (Computed) Algorithm of the key.
    flags string
    (Computed) Flags for the key.
    protocol string
    (Computed) Protocol of the key.
    publicKey string
    (Computed) Public key for the key.
    algorithm str
    (Computed) Algorithm of the key.
    flags str
    (Computed) Flags for the key.
    protocol str
    (Computed) Protocol of the key.
    public_key str
    (Computed) Public key for the key.
    algorithm String
    (Computed) Algorithm of the key.
    flags String
    (Computed) Flags for the key.
    protocol String
    (Computed) Protocol of the key.
    publicKey String
    (Computed) Public key for the key.

    GetDNSSecKey

    Dnskeys List<GetDNSSecKeyDnskey>
    (Computed) List of Keys. Key is documented below.
    Ttl int
    (Computed) TTL for the Keys (int).
    Dnskeys []GetDNSSecKeyDnskey
    (Computed) List of Keys. Key is documented below.
    Ttl int
    (Computed) TTL for the Keys (int).
    dnskeys List<GetDNSSecKeyDnskey>
    (Computed) List of Keys. Key is documented below.
    ttl Integer
    (Computed) TTL for the Keys (int).
    dnskeys GetDNSSecKeyDnskey[]
    (Computed) List of Keys. Key is documented below.
    ttl number
    (Computed) TTL for the Keys (int).
    dnskeys Sequence[GetDNSSecKeyDnskey]
    (Computed) List of Keys. Key is documented below.
    ttl int
    (Computed) TTL for the Keys (int).
    dnskeys List<Property Map>
    (Computed) List of Keys. Key is documented below.
    ttl Number
    (Computed) TTL for the Keys (int).

    GetDNSSecKeyDnskey

    Algorithm string
    (Computed) Algorithm of the key.
    Flags string
    (Computed) Flags for the key.
    Protocol string
    (Computed) Protocol of the key.
    PublicKey string
    (Computed) Public key for the key.
    Algorithm string
    (Computed) Algorithm of the key.
    Flags string
    (Computed) Flags for the key.
    Protocol string
    (Computed) Protocol of the key.
    PublicKey string
    (Computed) Public key for the key.
    algorithm String
    (Computed) Algorithm of the key.
    flags String
    (Computed) Flags for the key.
    protocol String
    (Computed) Protocol of the key.
    publicKey String
    (Computed) Public key for the key.
    algorithm string
    (Computed) Algorithm of the key.
    flags string
    (Computed) Flags for the key.
    protocol string
    (Computed) Protocol of the key.
    publicKey string
    (Computed) Public key for the key.
    algorithm str
    (Computed) Algorithm of the key.
    flags str
    (Computed) Flags for the key.
    protocol str
    (Computed) Protocol of the key.
    public_key str
    (Computed) Public key for the key.
    algorithm String
    (Computed) Algorithm of the key.
    flags String
    (Computed) Flags for the key.
    protocol String
    (Computed) Protocol of the key.
    publicKey String
    (Computed) Public key for the key.

    Package Details

    Repository
    NS1 pulumi/pulumi-ns1
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ns1 Terraform Provider.
    ns1 logo
    NS1 v3.4.6 published on Friday, Oct 18, 2024 by Pulumi