GetDnsZone

Use this data source to get the ID of an available OpenStack DNS zone.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var zone1 = Output.Create(OpenStack.Dns.GetDnsZone.InvokeAsync(new OpenStack.Dns.GetDnsZoneArgs
        {
            Name = "example.com",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

zone1 = openstack.dns.get_dns_zone(name="example.com")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const zone1 = pulumi.output(openstack.dns.getDnsZone({
    name: "example.com",
}, { async: true }));

Using GetDnsZone

function getDnsZone(args: GetDnsZoneArgs, opts?: InvokeOptions): Promise<GetDnsZoneResult>
function  get_dns_zone(attributes=None, created_at=None, description=None, email=None, masters=None, name=None, pool_id=None, project_id=None, region=None, serial=None, status=None, transferred_at=None, ttl=None, type=None, updated_at=None, version=None, opts=None)
func GetDnsZone(ctx *Context, args *GetDnsZoneArgs, opts ...InvokeOption) (*GetDnsZoneResult, error)
public static class GetDnsZone {
    public static Task<GetDnsZoneResult> InvokeAsync(GetDnsZoneArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Attributes Dictionary<string, object>

Attributes of the DNS Service scheduler.

CreatedAt string

The time the zone was created.

Description string

A description of the zone.

Email string

The email contact for the zone record.

Masters List<string>

An array of master DNS servers. When type is SECONDARY.

Name string

The name of the zone.

PoolId string

The ID of the pool hosting the zone.

ProjectId string

The project ID that owns the zone.

Region string

The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.

Serial int

The serial number of the zone.

Status string

The zone’s status.

TransferredAt string

The time the zone was transferred.

Ttl int

The time to live (TTL) of the zone.

Type string

The type of the zone. Can either be PRIMARY or SECONDARY.

UpdatedAt string

The time the zone was last updated.

Version int

The version of the zone.

Attributes map[string]interface{}

Attributes of the DNS Service scheduler.

CreatedAt string

The time the zone was created.

Description string

A description of the zone.

Email string

The email contact for the zone record.

Masters []string

An array of master DNS servers. When type is SECONDARY.

Name string

The name of the zone.

PoolId string

The ID of the pool hosting the zone.

ProjectId string

The project ID that owns the zone.

Region string

The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.

Serial int

The serial number of the zone.

Status string

The zone’s status.

TransferredAt string

The time the zone was transferred.

Ttl int

The time to live (TTL) of the zone.

Type string

The type of the zone. Can either be PRIMARY or SECONDARY.

UpdatedAt string

The time the zone was last updated.

Version int

The version of the zone.

attributes {[key: string]: any}

Attributes of the DNS Service scheduler.

createdAt string

The time the zone was created.

description string

A description of the zone.

email string

The email contact for the zone record.

masters string[]

An array of master DNS servers. When type is SECONDARY.

name string

The name of the zone.

poolId string

The ID of the pool hosting the zone.

projectId string

The project ID that owns the zone.

region string

The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.

serial number

The serial number of the zone.

status string

The zone’s status.

transferredAt string

The time the zone was transferred.

ttl number

The time to live (TTL) of the zone.

type string

The type of the zone. Can either be PRIMARY or SECONDARY.

updatedAt string

The time the zone was last updated.

version number

The version of the zone.

attributes Dict[str, Any]

Attributes of the DNS Service scheduler.

created_at str

The time the zone was created.

description str

A description of the zone.

email str

The email contact for the zone record.

masters List[str]

An array of master DNS servers. When type is SECONDARY.

name str

The name of the zone.

pool_id str

The ID of the pool hosting the zone.

project_id str

The project ID that owns the zone.

region str

The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.

serial float

The serial number of the zone.

status str

The zone’s status.

transferred_at str

The time the zone was transferred.

ttl float

The time to live (TTL) of the zone.

type str

The type of the zone. Can either be PRIMARY or SECONDARY.

updated_at str

The time the zone was last updated.

version float

The version of the zone.

GetDnsZone Result

The following output properties are available:

Attributes Dictionary<string, object>

Attributes of the DNS Service scheduler.

CreatedAt string

The time the zone was created.

Id string

The provider-assigned unique ID for this managed resource.

Masters List<string>

An array of master DNS servers. When type is SECONDARY.

PoolId string

The ID of the pool hosting the zone.

ProjectId string

The project ID that owns the zone.

Region string

See Argument Reference above.

Serial int

The serial number of the zone.

TransferredAt string

The time the zone was transferred.

UpdatedAt string

The time the zone was last updated.

Version int

The version of the zone.

Description string

See Argument Reference above.

Email string

See Argument Reference above.

Name string

See Argument Reference above.

Status string

See Argument Reference above.

Ttl int

See Argument Reference above.

Type string

See Argument Reference above.

Attributes map[string]interface{}

Attributes of the DNS Service scheduler.

CreatedAt string

The time the zone was created.

Id string

The provider-assigned unique ID for this managed resource.

Masters []string

An array of master DNS servers. When type is SECONDARY.

PoolId string

The ID of the pool hosting the zone.

ProjectId string

The project ID that owns the zone.

Region string

See Argument Reference above.

Serial int

The serial number of the zone.

TransferredAt string

The time the zone was transferred.

UpdatedAt string

The time the zone was last updated.

Version int

The version of the zone.

Description string

See Argument Reference above.

Email string

See Argument Reference above.

Name string

See Argument Reference above.

Status string

See Argument Reference above.

Ttl int

See Argument Reference above.

Type string

See Argument Reference above.

attributes {[key: string]: any}

Attributes of the DNS Service scheduler.

createdAt string

The time the zone was created.

id string

The provider-assigned unique ID for this managed resource.

masters string[]

An array of master DNS servers. When type is SECONDARY.

poolId string

The ID of the pool hosting the zone.

projectId string

The project ID that owns the zone.

region string

See Argument Reference above.

serial number

The serial number of the zone.

transferredAt string

The time the zone was transferred.

updatedAt string

The time the zone was last updated.

version number

The version of the zone.

description string

See Argument Reference above.

email string

See Argument Reference above.

name string

See Argument Reference above.

status string

See Argument Reference above.

ttl number

See Argument Reference above.

type string

See Argument Reference above.

attributes Dict[str, Any]

Attributes of the DNS Service scheduler.

created_at str

The time the zone was created.

id str

The provider-assigned unique ID for this managed resource.

masters List[str]

An array of master DNS servers. When type is SECONDARY.

pool_id str

The ID of the pool hosting the zone.

project_id str

The project ID that owns the zone.

region str

See Argument Reference above.

serial float

The serial number of the zone.

transferred_at str

The time the zone was transferred.

updated_at str

The time the zone was last updated.

version float

The version of the zone.

description str

See Argument Reference above.

email str

See Argument Reference above.

name str

See Argument Reference above.

status str

See Argument Reference above.

ttl float

See Argument Reference above.

type str

See Argument Reference above.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.