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",
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.Dns
Assembly: Pulumi.OpenStack.dll
Syntax
public class Zone : CustomResource
Constructors
View SourceZone(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 SourceAttributes
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>> |
Description
A description of the zone.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
The email contact for the zone record.
Declaration
public Output<string> Email { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
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> |
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> |
Ttl
The time to live (TTL) of the zone.
Declaration
public Output<int> Ttl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
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> |
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 SourceGet(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 |