Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

getDomainZone

Use this data source to retrieve information about a domain zone.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var rootzone = Ovh.GetDomainZone.Invoke(new()
    {
        Name = "mysite.ovh",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.LookupDomainZone(ctx, &GetDomainZoneArgs{
			Name: "mysite.ovh",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetDomainZoneArgs;
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) {
        final var rootzone = OvhFunctions.getDomainZone(GetDomainZoneArgs.builder()
            .name("mysite.ovh")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

rootzone = ovh.get_domain_zone(name="mysite.ovh")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const rootzone = pulumi.output(ovh.getDomainZone({
    name: "mysite.ovh",
}));
variables:
  rootzone:
    Fn::Invoke:
      Function: ovh:getDomainZone
      Arguments:
        name: mysite.ovh

Using getDomainZone

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 getDomainZone(args: GetDomainZoneArgs, opts?: InvokeOptions): Promise<GetDomainZoneResult>
function getDomainZoneOutput(args: GetDomainZoneOutputArgs, opts?: InvokeOptions): Output<GetDomainZoneResult>
def get_domain_zone(name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDomainZoneResult
def get_domain_zone_output(name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDomainZoneResult]
func LookupDomainZone(ctx *Context, args *LookupDomainZoneArgs, opts ...InvokeOption) (*LookupDomainZoneResult, error)
func LookupDomainZoneOutput(ctx *Context, args *LookupDomainZoneOutputArgs, opts ...InvokeOption) LookupDomainZoneResultOutput

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

public static class GetDomainZone 
{
    public static Task<GetDomainZoneResult> InvokeAsync(GetDomainZoneArgs args, InvokeOptions? opts = null)
    public static Output<GetDomainZoneResult> Invoke(GetDomainZoneInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainZoneResult> getDomainZone(GetDomainZoneArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getDomainZone:getDomainZone
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The name of the domain zone.

Name string

The name of the domain zone.

name String

The name of the domain zone.

name string

The name of the domain zone.

name str

The name of the domain zone.

name String

The name of the domain zone.

getDomainZone Result

The following output properties are available:

DnssecSupported bool

Is DNSSEC supported by this zone

HasDnsAnycast bool

hasDnsAnycast flag of the DNS zone

Id string

The provider-assigned unique ID for this managed resource.

LastUpdate string

Last update date of the DNS zone

Name string
NameServers List<string>

Name servers that host the DNS zone

DnssecSupported bool

Is DNSSEC supported by this zone

HasDnsAnycast bool

hasDnsAnycast flag of the DNS zone

Id string

The provider-assigned unique ID for this managed resource.

LastUpdate string

Last update date of the DNS zone

Name string
NameServers []string

Name servers that host the DNS zone

dnssecSupported Boolean

Is DNSSEC supported by this zone

hasDnsAnycast Boolean

hasDnsAnycast flag of the DNS zone

id String

The provider-assigned unique ID for this managed resource.

lastUpdate String

Last update date of the DNS zone

name String
nameServers List<String>

Name servers that host the DNS zone

dnssecSupported boolean

Is DNSSEC supported by this zone

hasDnsAnycast boolean

hasDnsAnycast flag of the DNS zone

id string

The provider-assigned unique ID for this managed resource.

lastUpdate string

Last update date of the DNS zone

name string
nameServers string[]

Name servers that host the DNS zone

dnssec_supported bool

Is DNSSEC supported by this zone

has_dns_anycast bool

hasDnsAnycast flag of the DNS zone

id str

The provider-assigned unique ID for this managed resource.

last_update str

Last update date of the DNS zone

name str
name_servers Sequence[str]

Name servers that host the DNS zone

dnssecSupported Boolean

Is DNSSEC supported by this zone

hasDnsAnycast Boolean

hasDnsAnycast flag of the DNS zone

id String

The provider-assigned unique ID for this managed resource.

lastUpdate String

Last update date of the DNS zone

name String
nameServers List<String>

Name servers that host the DNS zone

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.