opentelekomcloud.DnsZoneV2
Explore with Pulumi AI
Up-to-date reference of API arguments for DNS zones you can get at documentation portal (private zone) and documentation portal (public zone)
Manages a DNS zone in the OpenTelekomCloud DNS Service.
Example Usage
Public Zone Configuration
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const publicExampleCom = new opentelekomcloud.DnsZoneV2("publicExampleCom", {
description: "An example for public zone",
email: "public@example.com",
tags: {
foo: "bar",
key: "value",
},
ttl: 3000,
type: "public",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
public_example_com = opentelekomcloud.DnsZoneV2("publicExampleCom",
description="An example for public zone",
email="public@example.com",
tags={
"foo": "bar",
"key": "value",
},
ttl=3000,
type="public")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewDnsZoneV2(ctx, "publicExampleCom", &opentelekomcloud.DnsZoneV2Args{
Description: pulumi.String("An example for public zone"),
Email: pulumi.String("public@example.com"),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
Ttl: pulumi.Float64(3000),
Type: pulumi.String("public"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var publicExampleCom = new Opentelekomcloud.DnsZoneV2("publicExampleCom", new()
{
Description = "An example for public zone",
Email = "public@example.com",
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
Ttl = 3000,
Type = "public",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DnsZoneV2;
import com.pulumi.opentelekomcloud.DnsZoneV2Args;
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 publicExampleCom = new DnsZoneV2("publicExampleCom", DnsZoneV2Args.builder()
.description("An example for public zone")
.email("public@example.com")
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.ttl(3000)
.type("public")
.build());
}
}
resources:
publicExampleCom:
type: opentelekomcloud:DnsZoneV2
properties:
description: An example for public zone
email: public@example.com
tags:
foo: bar
key: value
ttl: 3000
type: public
Private Zone Configuration
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const privateExampleCom = new opentelekomcloud.DnsZoneV2("privateExampleCom", {
email: "private@example.com",
description: "An example for private zone",
ttl: 3000,
type: "private",
routers: [{
routerId: _var.vpc_id,
routerRegion: _var.region,
}],
tags: {
foo: "bar",
key: "value",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
private_example_com = opentelekomcloud.DnsZoneV2("privateExampleCom",
email="private@example.com",
description="An example for private zone",
ttl=3000,
type="private",
routers=[{
"router_id": var["vpc_id"],
"router_region": var["region"],
}],
tags={
"foo": "bar",
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewDnsZoneV2(ctx, "privateExampleCom", &opentelekomcloud.DnsZoneV2Args{
Email: pulumi.String("private@example.com"),
Description: pulumi.String("An example for private zone"),
Ttl: pulumi.Float64(3000),
Type: pulumi.String("private"),
Routers: opentelekomcloud.DnsZoneV2RouterArray{
&opentelekomcloud.DnsZoneV2RouterArgs{
RouterId: pulumi.Any(_var.Vpc_id),
RouterRegion: pulumi.Any(_var.Region),
},
},
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var privateExampleCom = new Opentelekomcloud.DnsZoneV2("privateExampleCom", new()
{
Email = "private@example.com",
Description = "An example for private zone",
Ttl = 3000,
Type = "private",
Routers = new[]
{
new Opentelekomcloud.Inputs.DnsZoneV2RouterArgs
{
RouterId = @var.Vpc_id,
RouterRegion = @var.Region,
},
},
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DnsZoneV2;
import com.pulumi.opentelekomcloud.DnsZoneV2Args;
import com.pulumi.opentelekomcloud.inputs.DnsZoneV2RouterArgs;
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 privateExampleCom = new DnsZoneV2("privateExampleCom", DnsZoneV2Args.builder()
.email("private@example.com")
.description("An example for private zone")
.ttl(3000)
.type("private")
.routers(DnsZoneV2RouterArgs.builder()
.routerId(var_.vpc_id())
.routerRegion(var_.region())
.build())
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.build());
}
}
resources:
privateExampleCom:
type: opentelekomcloud:DnsZoneV2
properties:
email: private@example.com
description: An example for private zone
ttl: 3000
type: private
routers:
- routerId: ${var.vpc_id}
routerRegion: ${var.region}
tags:
foo: bar
key: value
Private Zone Configuration with multiple routers
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const privateExampleCom = new opentelekomcloud.DnsZoneV2("privateExampleCom", {
email: "private@example.com",
description: "An example for private zone",
ttl: 3000,
type: "private",
routers: [
{
routerId: _var.vpc_id_1,
routerRegion: _var.region,
},
{
routerId: _var.vpc_id_2,
routerRegion: _var.region,
},
],
tags: {
foo: "bar",
key: "value",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
private_example_com = opentelekomcloud.DnsZoneV2("privateExampleCom",
email="private@example.com",
description="An example for private zone",
ttl=3000,
type="private",
routers=[
{
"router_id": var["vpc_id_1"],
"router_region": var["region"],
},
{
"router_id": var["vpc_id_2"],
"router_region": var["region"],
},
],
tags={
"foo": "bar",
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewDnsZoneV2(ctx, "privateExampleCom", &opentelekomcloud.DnsZoneV2Args{
Email: pulumi.String("private@example.com"),
Description: pulumi.String("An example for private zone"),
Ttl: pulumi.Float64(3000),
Type: pulumi.String("private"),
Routers: opentelekomcloud.DnsZoneV2RouterArray{
&opentelekomcloud.DnsZoneV2RouterArgs{
RouterId: pulumi.Any(_var.Vpc_id_1),
RouterRegion: pulumi.Any(_var.Region),
},
&opentelekomcloud.DnsZoneV2RouterArgs{
RouterId: pulumi.Any(_var.Vpc_id_2),
RouterRegion: pulumi.Any(_var.Region),
},
},
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var privateExampleCom = new Opentelekomcloud.DnsZoneV2("privateExampleCom", new()
{
Email = "private@example.com",
Description = "An example for private zone",
Ttl = 3000,
Type = "private",
Routers = new[]
{
new Opentelekomcloud.Inputs.DnsZoneV2RouterArgs
{
RouterId = @var.Vpc_id_1,
RouterRegion = @var.Region,
},
new Opentelekomcloud.Inputs.DnsZoneV2RouterArgs
{
RouterId = @var.Vpc_id_2,
RouterRegion = @var.Region,
},
},
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DnsZoneV2;
import com.pulumi.opentelekomcloud.DnsZoneV2Args;
import com.pulumi.opentelekomcloud.inputs.DnsZoneV2RouterArgs;
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 privateExampleCom = new DnsZoneV2("privateExampleCom", DnsZoneV2Args.builder()
.email("private@example.com")
.description("An example for private zone")
.ttl(3000)
.type("private")
.routers(
DnsZoneV2RouterArgs.builder()
.routerId(var_.vpc_id_1())
.routerRegion(var_.region())
.build(),
DnsZoneV2RouterArgs.builder()
.routerId(var_.vpc_id_2())
.routerRegion(var_.region())
.build())
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.build());
}
}
resources:
privateExampleCom:
type: opentelekomcloud:DnsZoneV2
properties:
email: private@example.com
description: An example for private zone
ttl: 3000
type: private
routers:
- routerId: ${var.vpc_id_1}
routerRegion: ${var.region}
- routerId: ${var.vpc_id_2}
routerRegion: ${var.region}
tags:
foo: bar
key: value
Create DnsZoneV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnsZoneV2(name: string, args?: DnsZoneV2Args, opts?: CustomResourceOptions);
@overload
def DnsZoneV2(resource_name: str,
args: Optional[DnsZoneV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DnsZoneV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dns_zone_v2_id: Optional[str] = None,
email: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
routers: Optional[Sequence[DnsZoneV2RouterArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DnsZoneV2TimeoutsArgs] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
value_specs: Optional[Mapping[str, str]] = None)
func NewDnsZoneV2(ctx *Context, name string, args *DnsZoneV2Args, opts ...ResourceOption) (*DnsZoneV2, error)
public DnsZoneV2(string name, DnsZoneV2Args? args = null, CustomResourceOptions? opts = null)
public DnsZoneV2(String name, DnsZoneV2Args args)
public DnsZoneV2(String name, DnsZoneV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DnsZoneV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DnsZoneV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DnsZoneV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DnsZoneV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsZoneV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsZoneV2Args
- 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 dnsZoneV2Resource = new Opentelekomcloud.DnsZoneV2("dnsZoneV2Resource", new()
{
Description = "string",
DnsZoneV2Id = "string",
Email = "string",
Name = "string",
Region = "string",
Routers = new[]
{
new Opentelekomcloud.Inputs.DnsZoneV2RouterArgs
{
RouterId = "string",
RouterRegion = "string",
},
},
Tags =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.DnsZoneV2TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Ttl = 0,
Type = "string",
ValueSpecs =
{
{ "string", "string" },
},
});
example, err := opentelekomcloud.NewDnsZoneV2(ctx, "dnsZoneV2Resource", &opentelekomcloud.DnsZoneV2Args{
Description: pulumi.String("string"),
DnsZoneV2Id: pulumi.String("string"),
Email: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Routers: opentelekomcloud.DnsZoneV2RouterArray{
&opentelekomcloud.DnsZoneV2RouterArgs{
RouterId: pulumi.String("string"),
RouterRegion: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opentelekomcloud.DnsZoneV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Ttl: pulumi.Float64(0),
Type: pulumi.String("string"),
ValueSpecs: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var dnsZoneV2Resource = new DnsZoneV2("dnsZoneV2Resource", DnsZoneV2Args.builder()
.description("string")
.dnsZoneV2Id("string")
.email("string")
.name("string")
.region("string")
.routers(DnsZoneV2RouterArgs.builder()
.routerId("string")
.routerRegion("string")
.build())
.tags(Map.of("string", "string"))
.timeouts(DnsZoneV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.ttl(0)
.type("string")
.valueSpecs(Map.of("string", "string"))
.build());
dns_zone_v2_resource = opentelekomcloud.DnsZoneV2("dnsZoneV2Resource",
description="string",
dns_zone_v2_id="string",
email="string",
name="string",
region="string",
routers=[{
"router_id": "string",
"router_region": "string",
}],
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
ttl=0,
type="string",
value_specs={
"string": "string",
})
const dnsZoneV2Resource = new opentelekomcloud.DnsZoneV2("dnsZoneV2Resource", {
description: "string",
dnsZoneV2Id: "string",
email: "string",
name: "string",
region: "string",
routers: [{
routerId: "string",
routerRegion: "string",
}],
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
ttl: 0,
type: "string",
valueSpecs: {
string: "string",
},
});
type: opentelekomcloud:DnsZoneV2
properties:
description: string
dnsZoneV2Id: string
email: string
name: string
region: string
routers:
- routerId: string
routerRegion: string
tags:
string: string
timeouts:
create: string
delete: string
update: string
ttl: 0
type: string
valueSpecs:
string: string
DnsZoneV2 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 DnsZoneV2 resource accepts the following input properties:
- Description string
- A description of the zone.
- Dns
Zone stringV2Id - Email string
- The email contact for the zone record.
- Name string
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- Region string
- Routers
List<Dns
Zone V2Router> - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - Dictionary<string, string>
- The key/value pairs to associate with the zone.
- Timeouts
Dns
Zone V2Timeouts - Ttl double
- The time to live (TTL) of the zone.
- Type string
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - Value
Specs Dictionary<string, string> - Map of additional options. Changing this creates a new zone.
- Description string
- A description of the zone.
- Dns
Zone stringV2Id - Email string
- The email contact for the zone record.
- Name string
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- Region string
- Routers
[]Dns
Zone V2Router Args - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - map[string]string
- The key/value pairs to associate with the zone.
- Timeouts
Dns
Zone V2Timeouts Args - Ttl float64
- The time to live (TTL) of the zone.
- Type string
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - Value
Specs map[string]string - Map of additional options. Changing this creates a new zone.
- description String
- A description of the zone.
- dns
Zone StringV2Id - email String
- The email contact for the zone record.
- name String
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- region String
- routers
List<Dns
Zone V2Router> - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - Map<String,String>
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts - ttl Double
- The time to live (TTL) of the zone.
- type String
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - value
Specs Map<String,String> - Map of additional options. Changing this creates a new zone.
- description string
- A description of the zone.
- dns
Zone stringV2Id - email string
- The email contact for the zone record.
- name string
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- region string
- routers
Dns
Zone V2Router[] - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - {[key: string]: string}
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts - ttl number
- The time to live (TTL) of the zone.
- type string
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - value
Specs {[key: string]: string} - Map of additional options. Changing this creates a new zone.
- description str
- A description of the zone.
- dns_
zone_ strv2_ id - email str
- The email contact for the zone record.
- name str
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- region str
- routers
Sequence[Dns
Zone V2Router Args] - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - Mapping[str, str]
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts Args - ttl float
- The time to live (TTL) of the zone.
- type str
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - value_
specs Mapping[str, str] - Map of additional options. Changing this creates a new zone.
- description String
- A description of the zone.
- dns
Zone StringV2Id - email String
- The email contact for the zone record.
- name String
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- region String
- routers List<Property Map>
- The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - Map<String>
- The key/value pairs to associate with the zone.
- timeouts Property Map
- ttl Number
- The time to live (TTL) of the zone.
- type String
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - value
Specs Map<String> - Map of additional options. Changing this creates a new zone.
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsZoneV2 resource produces the following output properties:
Look up Existing DnsZoneV2 Resource
Get an existing DnsZoneV2 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?: DnsZoneV2State, opts?: CustomResourceOptions): DnsZoneV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dns_zone_v2_id: Optional[str] = None,
email: Optional[str] = None,
masters: Optional[Sequence[str]] = None,
name: Optional[str] = None,
region: Optional[str] = None,
routers: Optional[Sequence[DnsZoneV2RouterArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DnsZoneV2TimeoutsArgs] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
value_specs: Optional[Mapping[str, str]] = None) -> DnsZoneV2
func GetDnsZoneV2(ctx *Context, name string, id IDInput, state *DnsZoneV2State, opts ...ResourceOption) (*DnsZoneV2, error)
public static DnsZoneV2 Get(string name, Input<string> id, DnsZoneV2State? state, CustomResourceOptions? opts = null)
public static DnsZoneV2 get(String name, Output<String> id, DnsZoneV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DnsZoneV2 get: id: ${id}
- 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.
- 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.
- Description string
- A description of the zone.
- Dns
Zone stringV2Id - Email string
- The email contact for the zone record.
- Masters List<string>
- An array of master DNS servers.
- Name string
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- Region string
- Routers
List<Dns
Zone V2Router> - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - Dictionary<string, string>
- The key/value pairs to associate with the zone.
- Timeouts
Dns
Zone V2Timeouts - Ttl double
- The time to live (TTL) of the zone.
- Type string
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - Value
Specs Dictionary<string, string> - Map of additional options. Changing this creates a new zone.
- Description string
- A description of the zone.
- Dns
Zone stringV2Id - Email string
- The email contact for the zone record.
- Masters []string
- An array of master DNS servers.
- Name string
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- Region string
- Routers
[]Dns
Zone V2Router Args - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - map[string]string
- The key/value pairs to associate with the zone.
- Timeouts
Dns
Zone V2Timeouts Args - Ttl float64
- The time to live (TTL) of the zone.
- Type string
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - Value
Specs map[string]string - Map of additional options. Changing this creates a new zone.
- description String
- A description of the zone.
- dns
Zone StringV2Id - email String
- The email contact for the zone record.
- masters List<String>
- An array of master DNS servers.
- name String
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- region String
- routers
List<Dns
Zone V2Router> - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - Map<String,String>
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts - ttl Double
- The time to live (TTL) of the zone.
- type String
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - value
Specs Map<String,String> - Map of additional options. Changing this creates a new zone.
- description string
- A description of the zone.
- dns
Zone stringV2Id - email string
- The email contact for the zone record.
- masters string[]
- An array of master DNS servers.
- name string
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- region string
- routers
Dns
Zone V2Router[] - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - {[key: string]: string}
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts - ttl number
- The time to live (TTL) of the zone.
- type string
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - value
Specs {[key: string]: string} - Map of additional options. Changing this creates a new zone.
- description str
- A description of the zone.
- dns_
zone_ strv2_ id - email str
- The email contact for the zone record.
- masters Sequence[str]
- An array of master DNS servers.
- name str
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- region str
- routers
Sequence[Dns
Zone V2Router Args] - The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - Mapping[str, str]
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts Args - ttl float
- The time to live (TTL) of the zone.
- type str
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - value_
specs Mapping[str, str] - Map of additional options. Changing this creates a new zone.
- description String
- A description of the zone.
- dns
Zone StringV2Id - email String
- The email contact for the zone record.
- masters List<String>
- An array of master DNS servers.
- name String
The name of the zone. Changing this creates a new DNS zone.
Note: The
.
at the end of the name.- region String
- routers List<Property Map>
- The Routers(VPCs) configuration for the private zone.
it is required when type is
private
. - Map<String>
- The key/value pairs to associate with the zone.
- timeouts Property Map
- ttl Number
- The time to live (TTL) of the zone.
- type String
- The type of zone. Can either be
public
orprivate
. Changing this creates a new zone. - value
Specs Map<String> - Map of additional options. Changing this creates a new zone.
Supporting Types
DnsZoneV2Router, DnsZoneV2RouterArgs
- Router
Id string - The Router(VPC) ID. which VPC network will assicate with.
- Router
Region string - The Region name for this private zone.
- Router
Id string - The Router(VPC) ID. which VPC network will assicate with.
- Router
Region string - The Region name for this private zone.
- router
Id String - The Router(VPC) ID. which VPC network will assicate with.
- router
Region String - The Region name for this private zone.
- router
Id string - The Router(VPC) ID. which VPC network will assicate with.
- router
Region string - The Region name for this private zone.
- router_
id str - The Router(VPC) ID. which VPC network will assicate with.
- router_
region str - The Region name for this private zone.
- router
Id String - The Router(VPC) ID. which VPC network will assicate with.
- router
Region String - The Region name for this private zone.
DnsZoneV2Timeouts, DnsZoneV2TimeoutsArgs
Import
This resource can be imported by specifying the zone ID:
$ pulumi import opentelekomcloud:index/dnsZoneV2:DnsZoneV2 zone_1 <zone_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.