Show / Hide Table of Contents

Class RecordSet

Manages a DNS record set in the OpenStack DNS Service.

Example Usage

Automatically detect the correct network

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var exampleZone = new OpenStack.Dns.Zone("exampleZone", new OpenStack.Dns.ZoneArgs
    {
        Description = "a zone",
        Email = "email2@example.com",
        Ttl = 6000,
        Type = "PRIMARY",
    });
    var rsExampleCom = new OpenStack.Dns.RecordSet("rsExampleCom", new OpenStack.Dns.RecordSetArgs
    {
        Description = "An example record set",
        Records = 
        {
            "10.0.0.1",
        },
        Ttl = 3000,
        Type = "A",
        ZoneId = exampleZone.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
RecordSet
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 RecordSet : CustomResource

Constructors

View Source

RecordSet(String, RecordSetArgs, CustomResourceOptions)

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

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

The unique name of the resource

RecordSetArgs 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

Description

A description of the record set.

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

Name

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

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

Records

An array of DNS records. Note: if an IPv6 address contains brackets ([ ]), the brackets will be stripped and the modified address will be recorded in the state.

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

Region

The region in which to obtain the V2 DNS client. If omitted, the region argument of the provider is used. Changing this creates a new DNS record set.

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

Ttl

The time to live (TTL) of the record set.

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

Type

The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.

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 record set.

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

ZoneId

The ID of the zone in which to create the record set. Changing this creates a new DNS record set.

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

Methods

View Source

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

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

Declaration
public static RecordSet Get(string name, Input<string> id, RecordSetState 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.

RecordSetState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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