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

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

example_zone = openstack.dns.Zone("exampleZone",
    description="a zone",
    email="email2@example.com",
    ttl=6000,
    type="PRIMARY")
rs_example_com = openstack.dns.RecordSet("rsExampleCom",
    description="An example record set",
    records=["10.0.0.1"],
    ttl=3000,
    type="A",
    zone_id=example_zone.id)
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const exampleZone = new openstack.dns.Zone("example_zone", {
    description: "a zone",
    email: "email2@example.com",
    ttl: 6000,
    type: "PRIMARY",
});
const rsExampleCom = new openstack.dns.RecordSet("rs_example_com", {
    description: "An example record set",
    records: ["10.0.0.1"],
    ttl: 3000,
    type: "A",
    zoneId: exampleZone.id,
});

Create a RecordSet Resource

def RecordSet(resource_name, opts=None, description=None, name=None, records=None, region=None, ttl=None, type=None, value_specs=None, zone_id=None, __props__=None);
func NewRecordSet(ctx *Context, name string, args RecordSetArgs, opts ...ResourceOption) (*RecordSet, error)
public RecordSet(string name, RecordSetArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args RecordSetArgs
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 RecordSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RecordSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

RecordSet Resource Properties

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

Inputs

The RecordSet resource accepts the following input properties:

ZoneId string

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

Description string

A description of the record set.

Name string

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

Records List<string>

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.

Region string

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.

Ttl int

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

Type string

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

ValueSpecs Dictionary<string, object>

Map of additional options. Changing this creates a new record set.

ZoneId string

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

Description string

A description of the record set.

Name string

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

Records []string

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.

Region string

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.

Ttl int

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

Type string

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

ValueSpecs map[string]interface{}

Map of additional options. Changing this creates a new record set.

zoneId string

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

description string

A description of the record set.

name string

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

records string[]

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.

region string

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.

ttl number

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

type string

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

valueSpecs {[key: string]: any}

Map of additional options. Changing this creates a new record set.

zone_id str

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

description str

A description of the record set.

name str

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

records List[str]

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.

region str

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.

ttl float

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

type str

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

value_specs Dict[str, Any]

Map of additional options. Changing this creates a new record set.

Outputs

All input properties are implicitly available as output properties. Additionally, the RecordSet 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 RecordSet Resource

Get an existing RecordSet 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?: RecordSetState, opts?: CustomResourceOptions): RecordSet
static get(resource_name, id, opts=None, description=None, name=None, records=None, region=None, ttl=None, type=None, value_specs=None, zone_id=None, __props__=None);
func GetRecordSet(ctx *Context, name string, id IDInput, state *RecordSetState, opts ...ResourceOption) (*RecordSet, error)
public static RecordSet Get(string name, Input<string> id, RecordSetState? 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:

Description string

A description of the record set.

Name string

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

Records List<string>

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.

Region string

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.

Ttl int

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

Type string

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

ValueSpecs Dictionary<string, object>

Map of additional options. Changing this creates a new record set.

ZoneId string

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

Description string

A description of the record set.

Name string

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

Records []string

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.

Region string

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.

Ttl int

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

Type string

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

ValueSpecs map[string]interface{}

Map of additional options. Changing this creates a new record set.

ZoneId string

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

description string

A description of the record set.

name string

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

records string[]

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.

region string

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.

ttl number

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

type string

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

valueSpecs {[key: string]: any}

Map of additional options. Changing this creates a new record set.

zoneId string

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

description str

A description of the record set.

name str

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

records List[str]

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.

region str

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.

ttl float

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

type str

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

value_specs Dict[str, Any]

Map of additional options. Changing this creates a new record set.

zone_id str

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

Package Details

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