Scaleway

v1.1.0 published on Saturday, Sep 17, 2022 by lbrlabs

getDomainZone

Gets information about a domain zone.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var main = Scaleway.GetDomainZone.Invoke(new()
    {
        Domain = "scaleway-terraform.com",
        Subdomain = "test",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.LookupDomainZone(ctx, &GetDomainZoneArgs{
			Domain:    pulumi.StringRef("scaleway-terraform.com"),
			Subdomain: pulumi.StringRef("test"),
		}, 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.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.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 main = ScalewayFunctions.getDomainZone(GetDomainZoneArgs.builder()
            .domain("scaleway-terraform.com")
            .subdomain("test")
            .build());

    }
}
import pulumi
import pulumi_scaleway as scaleway

main = scaleway.get_domain_zone(domain="scaleway-terraform.com",
    subdomain="test")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get zone
const main = pulumi.output(scaleway.getDomainZone({
    domain: "scaleway-terraform.com",
    subdomain: "test",
}));
variables:
  main:
    Fn::Invoke:
      Function: scaleway:getDomainZone
      Arguments:
        domain: scaleway-terraform.com
        subdomain: test

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(domain: Optional[str] = None,
                    subdomain: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDomainZoneResult
def get_domain_zone_output(domain: Optional[pulumi.Input[str]] = None,
                    subdomain: 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: scaleway:index/getDomainZone:getDomainZone
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Domain string

The domain where the DNS zone will be created.

Subdomain string

The subdomain(zone name) to create in the domain.

Domain string

The domain where the DNS zone will be created.

Subdomain string

The subdomain(zone name) to create in the domain.

domain String

The domain where the DNS zone will be created.

subdomain String

The subdomain(zone name) to create in the domain.

domain string

The domain where the DNS zone will be created.

subdomain string

The subdomain(zone name) to create in the domain.

domain str

The domain where the DNS zone will be created.

subdomain str

The subdomain(zone name) to create in the domain.

domain String

The domain where the DNS zone will be created.

subdomain String

The subdomain(zone name) to create in the domain.

getDomainZone Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Message string

Message

Ns List<string>

NameServer list for zone.

NsDefaults List<string>

NameServer default list for zone.

NsMasters List<string>

NameServer master list for zone.

ProjectId string
Status string

The domain zone status.

UpdatedAt string

The date and time of the last update of the DNS zone.

Domain string
Subdomain string
Id string

The provider-assigned unique ID for this managed resource.

Message string

Message

Ns []string

NameServer list for zone.

NsDefaults []string

NameServer default list for zone.

NsMasters []string

NameServer master list for zone.

ProjectId string
Status string

The domain zone status.

UpdatedAt string

The date and time of the last update of the DNS zone.

Domain string
Subdomain string
id String

The provider-assigned unique ID for this managed resource.

message String

Message

ns List<String>

NameServer list for zone.

nsDefaults List<String>

NameServer default list for zone.

nsMasters List<String>

NameServer master list for zone.

projectId String
status String

The domain zone status.

updatedAt String

The date and time of the last update of the DNS zone.

domain String
subdomain String
id string

The provider-assigned unique ID for this managed resource.

message string

Message

ns string[]

NameServer list for zone.

nsDefaults string[]

NameServer default list for zone.

nsMasters string[]

NameServer master list for zone.

projectId string
status string

The domain zone status.

updatedAt string

The date and time of the last update of the DNS zone.

domain string
subdomain string
id str

The provider-assigned unique ID for this managed resource.

message str

Message

ns Sequence[str]

NameServer list for zone.

ns_defaults Sequence[str]

NameServer default list for zone.

ns_masters Sequence[str]

NameServer master list for zone.

project_id str
status str

The domain zone status.

updated_at str

The date and time of the last update of the DNS zone.

domain str
subdomain str
id String

The provider-assigned unique ID for this managed resource.

message String

Message

ns List<String>

NameServer list for zone.

nsDefaults List<String>

NameServer default list for zone.

nsMasters List<String>

NameServer master list for zone.

projectId String
status String

The domain zone status.

updatedAt String

The date and time of the last update of the DNS zone.

domain String
subdomain String

Package Details

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

This Pulumi package is based on the scaleway Terraform Provider.