Show / Hide Table of Contents

Class 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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Zone
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.Dns
Assembly: Pulumi.OpenStack.dll
Syntax
public class Zone : CustomResource

Constructors

View Source

Zone(String, ZoneArgs, CustomResourceOptions)

Create a Zone resource with the given unique name, arguments, and options.

Declaration
public Zone(string name, ZoneArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ZoneArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Attributes

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

Declaration
public Output<ImmutableDictionary<string, object>> Attributes { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

Description

A description of the zone.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

Email

The email contact for the zone record.

Declaration
public Output<string> Email { get; }
Property Value
Type Description
Output<System.String>
View Source

Masters

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

Declaration
public Output<ImmutableArray<string>> Masters { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Name

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

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

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.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

Ttl

The time to live (TTL) of the zone.

Declaration
public Output<int> Ttl { get; }
Property Value
Type Description
Output<System.Int32>
View Source

Type

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

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Output<System.String>
View Source

ValueSpecs

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

Declaration
public Output<ImmutableDictionary<string, object>> ValueSpecs { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, ZoneState, CustomResourceOptions)

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

Declaration
public static Zone Get(string name, Input<string> id, ZoneState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ZoneState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Zone
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.