Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

getDNSSec

Provides DNSSEC details about a NS1 Zone.

Example Usage

using Pulumi;
using Ns1 = Pulumi.Ns1;

class MyStack : Stack
{
    public MyStack()
    {
        // Get DNSSEC details about a NS1 Zone.
        var exampleZone = new Ns1.Zone("exampleZone", new Ns1.ZoneArgs
        {
            Dnssec = true,
            Zone = "terraform.example.io",
        });
        var exampleDNSSec = exampleZone.ZoneName.Apply(zone => Ns1.GetDNSSec.InvokeAsync(new Ns1.GetDNSSecArgs
        {
            Zone = zone,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-ns1/sdk/v2/go/ns1"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleZone, err := ns1.NewZone(ctx, "exampleZone", &ns1.ZoneArgs{
			Dnssec: pulumi.Bool(true),
			Zone:   pulumi.String("terraform.example.io"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_ns1 as ns1

# Get DNSSEC details about a NS1 Zone.
example_zone = ns1.Zone("exampleZone",
    dnssec=True,
    zone="terraform.example.io")
example_dns_sec = example_zone.zone.apply(lambda zone: ns1.get_dns_sec(zone=zone))
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", {
    dnssec: true,
    zone: "terraform.example.io",
});
const exampleDNSSec = exampleZone.zone.apply(zone => ns1.getDNSSec({
    zone: 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)
}

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 str
The name of the zone to get DNSSEC details for.

getDNSSec Result

The following output properties are available:

Delegation GetDNSSecDelegation
(Computed) - Delegation field is documented below.
Id string
The provider-assigned unique ID for this managed resource.
Keys GetDNSSecKeys
(Computed) - Keys field is documented below.
Zone string
Delegation GetDNSSecDelegation
(Computed) - Delegation field is documented below.
Id string
The provider-assigned unique ID for this managed resource.
Keys GetDNSSecKeys
(Computed) - Keys field is documented below.
Zone string
delegation GetDNSSecDelegation
(Computed) - Delegation field is documented below.
id string
The provider-assigned unique ID for this managed resource.
keys GetDNSSecKeys
(Computed) - Keys field is documented below.
zone string
delegation GetDNSSecDelegation
(Computed) - Delegation field is documented below.
id str
The provider-assigned unique ID for this managed resource.
keys GetDNSSecKeys
(Computed) - Keys field is documented below.
zone str

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 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).

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 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.

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 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.

GetDNSSecKeys

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

GetDNSSecKeysDnskey

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.

Package Details

Repository
https://github.com/pulumi/pulumi-ns1
License
Apache-2.0
Notes
This Pulumi package is based on the ns1 Terraform Provider.