1. Packages
  2. OVH
  3. API Docs
  4. Domain
  5. getZone
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

ovh.Domain.getZone

Explore with Pulumi AI

ovh logo
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const rootzone = ovh.Domain.getZone({
        name: "mysite.ovh",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    rootzone = ovh.Domain.get_zone(name="mysite.ovh")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Domain"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Domain.GetZone(ctx, &domain.GetZoneArgs{
    			Name: "mysite.ovh",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var rootzone = Ovh.Domain.GetZone.Invoke(new()
        {
            Name = "mysite.ovh",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Domain.DomainFunctions;
    import com.pulumi.ovh.Domain.inputs.GetZoneArgs;
    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 = DomainFunctions.getZone(GetZoneArgs.builder()
                .name("mysite.ovh")
                .build());
    
        }
    }
    
    variables:
      rootzone:
        fn::invoke:
          Function: ovh:Domain:getZone
          Arguments:
            name: mysite.ovh
    

    Using getZone

    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 getZone(args: GetZoneArgs, opts?: InvokeOptions): Promise<GetZoneResult>
    function getZoneOutput(args: GetZoneOutputArgs, opts?: InvokeOptions): Output<GetZoneResult>
    def get_zone(name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetZoneResult
    def get_zone_output(name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetZoneResult]
    func GetZone(ctx *Context, args *GetZoneArgs, opts ...InvokeOption) (*GetZoneResult, error)
    func GetZoneOutput(ctx *Context, args *GetZoneOutputArgs, opts ...InvokeOption) GetZoneResultOutput

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

    public static class GetZone 
    {
        public static Task<GetZoneResult> InvokeAsync(GetZoneArgs args, InvokeOptions? opts = null)
        public static Output<GetZoneResult> Invoke(GetZoneInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZoneResult> getZone(GetZoneArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Domain/getZone:getZone
      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.

    getZone 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
    ZoneURN string
    URN of 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
    ZoneURN string
    URN of the DNS zone
    ZoneURN String
    URN of 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
    ZoneURN string
    URN of 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
    zone_urn str
    URN of the DNS zone
    ZoneURN String
    URN of 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
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud