OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud
ovh.Domain.getZone
Explore with Pulumi AI
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
root_zone = ovh.Domain.get_zone(name="mysite.ovh")
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/v2/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)
public static Output<GetZoneResult> getZone(GetZoneArgs args, InvokeOptions options)
fn::invoke:
  function: ovh:Domain/getZone:getZone
  arguments:
    # arguments dictionaryThe 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
- HasDns boolAnycast 
- 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
- HasDns boolAnycast 
- 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
- hasDns BooleanAnycast 
- 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
- hasDns booleanAnycast 
- 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_ boolanycast 
- 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
- hasDns BooleanAnycast 
- 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 ovhTerraform Provider.