1. Packages
  2. Openstack Provider
  3. API Docs
  4. dns
  5. RecordSet
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi

openstack.dns.RecordSet

Explore with Pulumi AI

Manages a DNS record set in the OpenStack DNS Service.

Example Usage

Automatically detect the correct network

import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

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

example_zone = openstack.dns.Zone("example_zone",
    name="example.com.",
    email="email2@example.com",
    description="a zone",
    ttl=6000,
    type="PRIMARY")
rs_example_com = openstack.dns.RecordSet("rs_example_com",
    zone_id=example_zone.id,
    name="rs.example.com.",
    description="An example record set",
    ttl=3000,
    type="A",
    records=["10.0.0.1"])
Copy
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleZone, err := dns.NewZone(ctx, "example_zone", &dns.ZoneArgs{
			Name:        pulumi.String("example.com."),
			Email:       pulumi.String("email2@example.com"),
			Description: pulumi.String("a zone"),
			Ttl:         pulumi.Int(6000),
			Type:        pulumi.String("PRIMARY"),
		})
		if err != nil {
			return err
		}
		_, err = dns.NewRecordSet(ctx, "rs_example_com", &dns.RecordSetArgs{
			ZoneId:      exampleZone.ID(),
			Name:        pulumi.String("rs.example.com."),
			Description: pulumi.String("An example record set"),
			Ttl:         pulumi.Int(3000),
			Type:        pulumi.String("A"),
			Records: pulumi.StringArray{
				pulumi.String("10.0.0.1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;

return await Deployment.RunAsync(() => 
{
    var exampleZone = new OpenStack.Dns.Zone("example_zone", new()
    {
        Name = "example.com.",
        Email = "email2@example.com",
        Description = "a zone",
        Ttl = 6000,
        Type = "PRIMARY",
    });

    var rsExampleCom = new OpenStack.Dns.RecordSet("rs_example_com", new()
    {
        ZoneId = exampleZone.Id,
        Name = "rs.example.com.",
        Description = "An example record set",
        Ttl = 3000,
        Type = "A",
        Records = new[]
        {
            "10.0.0.1",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.dns.Zone;
import com.pulumi.openstack.dns.ZoneArgs;
import com.pulumi.openstack.dns.RecordSet;
import com.pulumi.openstack.dns.RecordSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleZone = new Zone("exampleZone", ZoneArgs.builder()
            .name("example.com.")
            .email("email2@example.com")
            .description("a zone")
            .ttl(6000)
            .type("PRIMARY")
            .build());

        var rsExampleCom = new RecordSet("rsExampleCom", RecordSetArgs.builder()
            .zoneId(exampleZone.id())
            .name("rs.example.com.")
            .description("An example record set")
            .ttl(3000)
            .type("A")
            .records("10.0.0.1")
            .build());

    }
}
Copy
resources:
  exampleZone:
    type: openstack:dns:Zone
    name: example_zone
    properties:
      name: example.com.
      email: email2@example.com
      description: a zone
      ttl: 6000
      type: PRIMARY
  rsExampleCom:
    type: openstack:dns:RecordSet
    name: rs_example_com
    properties:
      zoneId: ${exampleZone.id}
      name: rs.example.com.
      description: An example record set
      ttl: 3000
      type: A
      records:
        - 10.0.0.1
Copy

Create RecordSet Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RecordSet(name: string, args: RecordSetArgs, opts?: CustomResourceOptions);
@overload
def RecordSet(resource_name: str,
              args: RecordSetArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def RecordSet(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              records: Optional[Sequence[str]] = None,
              zone_id: Optional[str] = None,
              description: Optional[str] = None,
              disable_status_check: Optional[bool] = None,
              name: Optional[str] = None,
              project_id: Optional[str] = None,
              region: Optional[str] = None,
              ttl: Optional[int] = None,
              type: Optional[str] = None,
              value_specs: Optional[Mapping[str, str]] = None)
func NewRecordSet(ctx *Context, name string, args RecordSetArgs, opts ...ResourceOption) (*RecordSet, error)
public RecordSet(string name, RecordSetArgs args, CustomResourceOptions? opts = null)
public RecordSet(String name, RecordSetArgs args)
public RecordSet(String name, RecordSetArgs args, CustomResourceOptions options)
type: openstack:dns:RecordSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RecordSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RecordSetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RecordSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RecordSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RecordSetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var recordSetResource = new OpenStack.Dns.RecordSet("recordSetResource", new()
{
    Records = new[]
    {
        "string",
    },
    ZoneId = "string",
    Description = "string",
    DisableStatusCheck = false,
    Name = "string",
    ProjectId = "string",
    Region = "string",
    Ttl = 0,
    Type = "string",
    ValueSpecs = 
    {
        { "string", "string" },
    },
});
Copy
example, err := dns.NewRecordSet(ctx, "recordSetResource", &dns.RecordSetArgs{
	Records: pulumi.StringArray{
		pulumi.String("string"),
	},
	ZoneId:             pulumi.String("string"),
	Description:        pulumi.String("string"),
	DisableStatusCheck: pulumi.Bool(false),
	Name:               pulumi.String("string"),
	ProjectId:          pulumi.String("string"),
	Region:             pulumi.String("string"),
	Ttl:                pulumi.Int(0),
	Type:               pulumi.String("string"),
	ValueSpecs: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var recordSetResource = new RecordSet("recordSetResource", RecordSetArgs.builder()
    .records("string")
    .zoneId("string")
    .description("string")
    .disableStatusCheck(false)
    .name("string")
    .projectId("string")
    .region("string")
    .ttl(0)
    .type("string")
    .valueSpecs(Map.of("string", "string"))
    .build());
Copy
record_set_resource = openstack.dns.RecordSet("recordSetResource",
    records=["string"],
    zone_id="string",
    description="string",
    disable_status_check=False,
    name="string",
    project_id="string",
    region="string",
    ttl=0,
    type="string",
    value_specs={
        "string": "string",
    })
Copy
const recordSetResource = new openstack.dns.RecordSet("recordSetResource", {
    records: ["string"],
    zoneId: "string",
    description: "string",
    disableStatusCheck: false,
    name: "string",
    projectId: "string",
    region: "string",
    ttl: 0,
    type: "string",
    valueSpecs: {
        string: "string",
    },
});
Copy
type: openstack:dns:RecordSet
properties:
    description: string
    disableStatusCheck: false
    name: string
    projectId: string
    records:
        - string
    region: string
    ttl: 0
    type: string
    valueSpecs:
        string: string
    zoneId: string
Copy

RecordSet Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RecordSet resource accepts the following input properties:

Records This property is required. List<string>
An array of DNS records.
ZoneId
This property is required.
Changes to this property will trigger replacement.
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.
DisableStatusCheck bool
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
Name Changes to this property will trigger replacement. string
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
ProjectId Changes to this property will trigger replacement. string
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
Region Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
ValueSpecs Changes to this property will trigger replacement. Dictionary<string, string>
Map of additional options. Changing this creates a new record set.
Records This property is required. []string
An array of DNS records.
ZoneId
This property is required.
Changes to this property will trigger replacement.
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.
DisableStatusCheck bool
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
Name Changes to this property will trigger replacement. string
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
ProjectId Changes to this property will trigger replacement. string
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
Region Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
ValueSpecs Changes to this property will trigger replacement. map[string]string
Map of additional options. Changing this creates a new record set.
records This property is required. List<String>
An array of DNS records.
zoneId
This property is required.
Changes to this property will trigger replacement.
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.
disableStatusCheck Boolean
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
name Changes to this property will trigger replacement. String
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
projectId Changes to this property will trigger replacement. String
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
region Changes to this property will trigger replacement. 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 Integer
The time to live (TTL) of the record set.
type Changes to this property will trigger replacement. String
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
valueSpecs Changes to this property will trigger replacement. Map<String,String>
Map of additional options. Changing this creates a new record set.
records This property is required. string[]
An array of DNS records.
zoneId
This property is required.
Changes to this property will trigger replacement.
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.
disableStatusCheck boolean
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
name Changes to this property will trigger replacement. string
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
projectId Changes to this property will trigger replacement. string
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
region Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
valueSpecs Changes to this property will trigger replacement. {[key: string]: string}
Map of additional options. Changing this creates a new record set.
records This property is required. Sequence[str]
An array of DNS records.
zone_id
This property is required.
Changes to this property will trigger replacement.
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.
disable_status_check bool
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
name Changes to this property will trigger replacement. str
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
project_id Changes to this property will trigger replacement. str
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
region Changes to this property will trigger replacement. 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 int
The time to live (TTL) of the record set.
type Changes to this property will trigger replacement. str
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
value_specs Changes to this property will trigger replacement. Mapping[str, str]
Map of additional options. Changing this creates a new record set.
records This property is required. List<String>
An array of DNS records.
zoneId
This property is required.
Changes to this property will trigger replacement.
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.
disableStatusCheck Boolean
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
name Changes to this property will trigger replacement. String
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
projectId Changes to this property will trigger replacement. String
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
region Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
valueSpecs Changes to this property will trigger replacement. Map<String>
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 string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up 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
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        disable_status_check: Optional[bool] = None,
        name: Optional[str] = None,
        project_id: Optional[str] = None,
        records: Optional[Sequence[str]] = None,
        region: Optional[str] = None,
        ttl: Optional[int] = None,
        type: Optional[str] = None,
        value_specs: Optional[Mapping[str, str]] = None,
        zone_id: Optional[str] = None) -> RecordSet
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)
public static RecordSet get(String name, Output<String> id, RecordSetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
DisableStatusCheck bool
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
Name Changes to this property will trigger replacement. string
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
ProjectId Changes to this property will trigger replacement. string
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
Records List<string>
An array of DNS records.
Region Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
ValueSpecs Changes to this property will trigger replacement. Dictionary<string, string>
Map of additional options. Changing this creates a new record set.
ZoneId Changes to this property will trigger replacement. 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.
DisableStatusCheck bool
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
Name Changes to this property will trigger replacement. string
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
ProjectId Changes to this property will trigger replacement. string
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
Records []string
An array of DNS records.
Region Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
ValueSpecs Changes to this property will trigger replacement. map[string]string
Map of additional options. Changing this creates a new record set.
ZoneId Changes to this property will trigger replacement. 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.
disableStatusCheck Boolean
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
name Changes to this property will trigger replacement. String
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
projectId Changes to this property will trigger replacement. String
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
records List<String>
An array of DNS records.
region Changes to this property will trigger replacement. 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 Integer
The time to live (TTL) of the record set.
type Changes to this property will trigger replacement. String
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
valueSpecs Changes to this property will trigger replacement. Map<String,String>
Map of additional options. Changing this creates a new record set.
zoneId Changes to this property will trigger replacement. 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.
disableStatusCheck boolean
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
name Changes to this property will trigger replacement. string
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
projectId Changes to this property will trigger replacement. string
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
records string[]
An array of DNS records.
region Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
valueSpecs Changes to this property will trigger replacement. {[key: string]: string}
Map of additional options. Changing this creates a new record set.
zoneId Changes to this property will trigger replacement. 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.
disable_status_check bool
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
name Changes to this property will trigger replacement. str
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
project_id Changes to this property will trigger replacement. str
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
records Sequence[str]
An array of DNS records.
region Changes to this property will trigger replacement. 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 int
The time to live (TTL) of the record set.
type Changes to this property will trigger replacement. str
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
value_specs Changes to this property will trigger replacement. Mapping[str, str]
Map of additional options. Changing this creates a new record set.
zone_id Changes to this property will trigger replacement. str
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.
disableStatusCheck Boolean
Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
name Changes to this property will trigger replacement. String
The name of the record set. Note the . at the end of the name. Changing this creates a new DNS record set.
projectId Changes to this property will trigger replacement. String
The ID of the project DNS zone is created for, sets X-Auth-Sudo-Tenant-ID header (requires an assigned user role in target project)
records List<String>
An array of DNS records.
region Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
valueSpecs Changes to this property will trigger replacement. Map<String>
Map of additional options. Changing this creates a new record set.
zoneId Changes to this property will trigger replacement. String
The ID of the zone in which to create the record set. Changing this creates a new DNS record set.

Import

This resource can be imported by specifying the zone ID and recordset ID with an optional project ID as a prefix:

$ pulumi import openstack:dns/recordSet:RecordSet recordset_1 project_id/zone_id/recordset_id
Copy
$ pulumi import openstack:dns/recordSet:RecordSet recordset_1 zone_id/recordset_id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
OpenStack pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.