Zone

Manages a DNS zone in the OpenStack DNS Service.

Example Usage

Automatically detect the correct network

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var example_com = new OpenStack.Dns.Zone("example.com", new OpenStack.Dns.ZoneArgs
        {
            Description = "An example zone",
            Email = "jdoe@example.com",
            Ttl = 3000,
            Type = "PRIMARY",
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

example_com = openstack.dns.Zone("example.com",
    description="An example zone",
    email="jdoe@example.com",
    ttl=3000,
    type="PRIMARY")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const example_com = new openstack.dns.Zone("example.com", {
    description: "An example zone",
    email: "jdoe@example.com",
    ttl: 3000,
    type: "PRIMARY",
});

Create a Zone Resource

new Zone(name: string, args?: ZoneArgs, opts?: CustomResourceOptions);
def Zone(resource_name, opts=None, attributes=None, description=None, email=None, masters=None, name=None, region=None, ttl=None, type=None, value_specs=None, __props__=None);
func NewZone(ctx *Context, name string, args *ZoneArgs, opts ...ResourceOption) (*Zone, error)
public Zone(string name, ZoneArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ZoneArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ZoneArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ZoneArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Zone Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Zone resource accepts the following input properties:

Attributes Dictionary<string, object>

Attributes for the DNS Service scheduler. Changing this creates a new zone.

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. For when type is SECONDARY.

Name string

The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

Region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

Ttl int

The time to live (TTL) of the zone.

Type string

The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

ValueSpecs Dictionary<string, object>

Map of additional options. Changing this creates a new zone.

Attributes map[string]interface{}

Attributes for the DNS Service scheduler. Changing this creates a new zone.

Description string

A description of the zone.

Email string

The email contact for the zone record.

Masters []string

An array of master DNS servers. For when type is SECONDARY.

Name string

The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

Region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

Ttl int

The time to live (TTL) of the zone.

Type string

The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

ValueSpecs map[string]interface{}

Map of additional options. Changing this creates a new zone.

attributes {[key: string]: any}

Attributes for the DNS Service scheduler. Changing this creates a new zone.

description string

A description of the zone.

email string

The email contact for the zone record.

masters string[]

An array of master DNS servers. For when type is SECONDARY.

name string

The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

ttl number

The time to live (TTL) of the zone.

type string

The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

valueSpecs {[key: string]: any}

Map of additional options. Changing this creates a new zone.

attributes Dict[str, Any]

Attributes for the DNS Service scheduler. Changing this creates a new zone.

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. For when type is SECONDARY.

name str

The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

region str

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

ttl float

The time to live (TTL) of the zone.

type str

The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

value_specs Dict[str, Any]

Map of additional options. Changing this creates a new zone.

Outputs

All input properties are implicitly available as output properties. Additionally, the Zone resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Zone Resource

Get an existing Zone resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ZoneState, opts?: CustomResourceOptions): Zone
static get(resource_name, id, opts=None, attributes=None, description=None, email=None, masters=None, name=None, region=None, ttl=None, type=None, value_specs=None, __props__=None);
func GetZone(ctx *Context, name string, id IDInput, state *ZoneState, opts ...ResourceOption) (*Zone, error)
public static Zone Get(string name, Input<string> id, ZoneState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Attributes Dictionary<string, object>

Attributes for the DNS Service scheduler. Changing this creates a new zone.

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. For when type is SECONDARY.

Name string

The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

Region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

Ttl int

The time to live (TTL) of the zone.

Type string

The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

ValueSpecs Dictionary<string, object>

Map of additional options. Changing this creates a new zone.

Attributes map[string]interface{}

Attributes for the DNS Service scheduler. Changing this creates a new zone.

Description string

A description of the zone.

Email string

The email contact for the zone record.

Masters []string

An array of master DNS servers. For when type is SECONDARY.

Name string

The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

Region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

Ttl int

The time to live (TTL) of the zone.

Type string

The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

ValueSpecs map[string]interface{}

Map of additional options. Changing this creates a new zone.

attributes {[key: string]: any}

Attributes for the DNS Service scheduler. Changing this creates a new zone.

description string

A description of the zone.

email string

The email contact for the zone record.

masters string[]

An array of master DNS servers. For when type is SECONDARY.

name string

The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

ttl number

The time to live (TTL) of the zone.

type string

The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

valueSpecs {[key: string]: any}

Map of additional options. Changing this creates a new zone.

attributes Dict[str, Any]

Attributes for the DNS Service scheduler. Changing this creates a new zone.

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. For when type is SECONDARY.

name str

The name of the zone. Note the . at the end of the name. Changing this creates a new DNS zone.

region str

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

ttl float

The time to live (TTL) of the zone.

type str

The type of zone. Can either be PRIMARY or SECONDARY. Changing this creates a new zone.

value_specs Dict[str, Any]

Map of additional options. Changing this creates a new zone.

Package Details

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