Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 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 "@ovhcloud/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 LookupZone(ctx *Context, args *LookupZoneArgs, opts ...InvokeOption) (*LookupZoneResult, error)
func LookupZoneOutput(ctx *Context, args *LookupZoneOutputArgs, opts ...InvokeOption) LookupZoneResultOutput> Note: This function is named LookupZone 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:
- Dnssec
Supported bool - Is DNSSEC supported by this zone
- Has
Dns boolAnycast - hasDnsAnycast flag of the DNS zone
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update string - Last update date of the DNS zone
- Name string
- Name
Servers List<string> - Name servers that host the DNS zone
- Zone
URN string - URN of the DNS Zone to be used inside an IAM policy
- Dnssec
Supported bool - Is DNSSEC supported by this zone
- Has
Dns boolAnycast - hasDnsAnycast flag of the DNS zone
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update string - Last update date of the DNS zone
- Name string
- Name
Servers []string - Name servers that host the DNS zone
- Zone
URN string - URN of the DNS Zone to be used inside an IAM policy
- Zone
URN String - URN of the DNS Zone to be used inside an IAM policy
- dnssec
Supported Boolean - Is DNSSEC supported by this zone
- has
Dns BooleanAnycast - hasDnsAnycast flag of the DNS zone
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update String - Last update date of the DNS zone
- name String
- name
Servers List<String> - Name servers that host the DNS zone
- Zone
URN string - URN of the DNS Zone to be used inside an IAM policy
- dnssec
Supported boolean - Is DNSSEC supported by this zone
- has
Dns booleanAnycast - hasDnsAnycast flag of the DNS zone
- id string
- The provider-assigned unique ID for this managed resource.
- last
Update string - Last update date of the DNS zone
- name string
- name
Servers 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 to be used inside an IAM policy
- Zone
URN String - URN of the DNS Zone to be used inside an IAM policy
- dnssec
Supported Boolean - Is DNSSEC supported by this zone
- has
Dns BooleanAnycast - hasDnsAnycast flag of the DNS zone
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update String - Last update date of the DNS zone
- name String
- name
Servers 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.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
