OVHCloud v0.50.0 published on Friday, Sep 20, 2024 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
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:
- 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
- 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
- Zone
URN String - URN of the DNS zone
- 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
- 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
- Zone
URN String - URN of the DNS zone
- 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
ovh
Terraform Provider.