tencentcloud.TeoDnsRecord
Explore with Pulumi AI
Provides a resource to create a teo teo_dns_record
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const teoDnsRecord = new tencentcloud.TeoDnsRecord("teoDnsRecord", {
content: "1.2.3.5",
location: "Default",
priority: 5,
status: "enable",
ttl: 300,
type: "A",
weight: -1,
zoneId: "zone-39quuimqg8r6",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
teo_dns_record = tencentcloud.TeoDnsRecord("teoDnsRecord",
content="1.2.3.5",
location="Default",
priority=5,
status="enable",
ttl=300,
type="A",
weight=-1,
zone_id="zone-39quuimqg8r6")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewTeoDnsRecord(ctx, "teoDnsRecord", &tencentcloud.TeoDnsRecordArgs{
Content: pulumi.String("1.2.3.5"),
Location: pulumi.String("Default"),
Priority: pulumi.Float64(5),
Status: pulumi.String("enable"),
Ttl: pulumi.Float64(300),
Type: pulumi.String("A"),
Weight: pulumi.Float64(-1),
ZoneId: pulumi.String("zone-39quuimqg8r6"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var teoDnsRecord = new Tencentcloud.TeoDnsRecord("teoDnsRecord", new()
{
Content = "1.2.3.5",
Location = "Default",
Priority = 5,
Status = "enable",
Ttl = 300,
Type = "A",
Weight = -1,
ZoneId = "zone-39quuimqg8r6",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoDnsRecord;
import com.pulumi.tencentcloud.TeoDnsRecordArgs;
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 teoDnsRecord = new TeoDnsRecord("teoDnsRecord", TeoDnsRecordArgs.builder()
.content("1.2.3.5")
.location("Default")
.priority(5)
.status("enable")
.ttl(300)
.type("A")
.weight(-1)
.zoneId("zone-39quuimqg8r6")
.build());
}
}
resources:
teoDnsRecord:
type: tencentcloud:TeoDnsRecord
properties:
content: 1.2.3.5
location: Default
priority: 5
status: enable
ttl: 300
type: A
weight: -1
zoneId: zone-39quuimqg8r6
Create TeoDnsRecord Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoDnsRecord(name: string, args: TeoDnsRecordArgs, opts?: CustomResourceOptions);
@overload
def TeoDnsRecord(resource_name: str,
args: TeoDnsRecordArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoDnsRecord(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
type: Optional[str] = None,
zone_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
priority: Optional[float] = None,
status: Optional[str] = None,
teo_dns_record_id: Optional[str] = None,
ttl: Optional[float] = None,
weight: Optional[float] = None)
func NewTeoDnsRecord(ctx *Context, name string, args TeoDnsRecordArgs, opts ...ResourceOption) (*TeoDnsRecord, error)
public TeoDnsRecord(string name, TeoDnsRecordArgs args, CustomResourceOptions? opts = null)
public TeoDnsRecord(String name, TeoDnsRecordArgs args)
public TeoDnsRecord(String name, TeoDnsRecordArgs args, CustomResourceOptions options)
type: tencentcloud:TeoDnsRecord
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 TeoDnsRecordArgs
- 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 TeoDnsRecordArgs
- 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 TeoDnsRecordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoDnsRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoDnsRecordArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoDnsRecord 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 TeoDnsRecord resource accepts the following input properties:
- Content string
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- Type string
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- Zone
Id string - Zone id.
- Location string
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- Name string
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- Priority double
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- Status string
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- Teo
Dns stringRecord Id - ID of the resource.
- Ttl double
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- Weight double
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- Content string
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- Type string
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- Zone
Id string - Zone id.
- Location string
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- Name string
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- Priority float64
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- Status string
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- Teo
Dns stringRecord Id - ID of the resource.
- Ttl float64
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- Weight float64
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- content String
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- type String
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- zone
Id String - Zone id.
- location String
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- name String
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- priority Double
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- status String
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- teo
Dns StringRecord Id - ID of the resource.
- ttl Double
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- weight Double
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- content string
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- type string
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- zone
Id string - Zone id.
- location string
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- name string
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- priority number
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- status string
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- teo
Dns stringRecord Id - ID of the resource.
- ttl number
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- weight number
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- content str
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- type str
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- zone_
id str - Zone id.
- location str
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- name str
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- priority float
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- status str
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- teo_
dns_ strrecord_ id - ID of the resource.
- ttl float
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- weight float
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- content String
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- type String
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- zone
Id String - Zone id.
- location String
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- name String
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- priority Number
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- status String
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- teo
Dns StringRecord Id - ID of the resource.
- ttl Number
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- weight Number
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoDnsRecord resource produces the following output properties:
- Created
On string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - Modify time.
- Created
On string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - Modify time.
- created
On String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - Modify time.
- created
On string - Creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
On string - Modify time.
- created_
on str - Creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
on str - Modify time.
- created
On String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - Modify time.
Look up Existing TeoDnsRecord Resource
Get an existing TeoDnsRecord 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?: TeoDnsRecordState, opts?: CustomResourceOptions): TeoDnsRecord
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
created_on: Optional[str] = None,
location: Optional[str] = None,
modified_on: Optional[str] = None,
name: Optional[str] = None,
priority: Optional[float] = None,
status: Optional[str] = None,
teo_dns_record_id: Optional[str] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
weight: Optional[float] = None,
zone_id: Optional[str] = None) -> TeoDnsRecord
func GetTeoDnsRecord(ctx *Context, name string, id IDInput, state *TeoDnsRecordState, opts ...ResourceOption) (*TeoDnsRecord, error)
public static TeoDnsRecord Get(string name, Input<string> id, TeoDnsRecordState? state, CustomResourceOptions? opts = null)
public static TeoDnsRecord get(String name, Output<String> id, TeoDnsRecordState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TeoDnsRecord 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.
- Content string
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- Created
On string - Creation time.
- Location string
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- Modified
On string - Modify time.
- Name string
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- Priority double
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- Status string
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- Teo
Dns stringRecord Id - ID of the resource.
- Ttl double
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- Type string
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- Weight double
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- Zone
Id string - Zone id.
- Content string
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- Created
On string - Creation time.
- Location string
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- Modified
On string - Modify time.
- Name string
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- Priority float64
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- Status string
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- Teo
Dns stringRecord Id - ID of the resource.
- Ttl float64
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- Type string
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- Weight float64
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- Zone
Id string - Zone id.
- content String
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- created
On String - Creation time.
- location String
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- modified
On String - Modify time.
- name String
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- priority Double
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- status String
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- teo
Dns StringRecord Id - ID of the resource.
- ttl Double
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- type String
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- weight Double
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- zone
Id String - Zone id.
- content string
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- created
On string - Creation time.
- location string
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- modified
On string - Modify time.
- name string
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- priority number
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- status string
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- teo
Dns stringRecord Id - ID of the resource.
- ttl number
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- type string
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- weight number
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- zone
Id string - Zone id.
- content str
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- created_
on str - Creation time.
- location str
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- modified_
on str - Modify time.
- name str
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- priority float
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- status str
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- teo_
dns_ strrecord_ id - ID of the resource.
- ttl float
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- type str
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- weight float
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- zone_
id str - Zone id.
- content String
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- created
On String - Creation time.
- location String
- DNS record resolution route. if not specified, the default is DEFAULT, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is A, AAAA, or CNAME.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: resolution routes and corresponding code enumeration.
- modified
On String - Modify time.
- name String
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.
- priority Number
- MX record priority, which takes effect only when type (dns record type) is MX. the smaller the value, the higher the priority. users can specify a value range of 0-50. the default value is 0 if not specified.
- status String
- DNS record resolution status, the following values:
- enable: has taken effect;
- disable: has been disabled.
- teo
Dns StringRecord Id - ID of the resource.
- ttl Number
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.
- type String
- DNS record type. valid values are:
- A: points the domain name to an external ipv4 address, such as 8.8.8.8;
- AAAA: points the domain name to an external ipv6 address;
- MX: used for email servers. when there are multiple mx records, the lower the priority value, the higher the priority;
- CNAME: points the domain name to another domain name, which then resolves to the final ip address;
- TXT: identifies and describes the domain name, commonly used for domain verification and spf records (anti-spam);
- NS: if you need to delegate the subdomain to another dns service provider for resolution, you need to add an ns record. the root domain cannot add ns records;
- CAA: specifies the ca that can issue certificates for this site;
- SRV: identifies a server using a service, commonly used in microsoft's directory management. Different record types, such as SRV and CAA records, have different requirements for host record names and record value formats. for detailed descriptions and format examples of each record type, please refer to: introduction to dns record types.
- weight Number
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is A, AAAA, or CNAME. note: for the same subdomain, different dns records with the same resolution route should either all have weights set or none have weights set.
- zone
Id String - Zone id.
Import
teo teo_dns_record can be imported using the id, e.g.
$ pulumi import tencentcloud:index/teoDnsRecord:TeoDnsRecord teo_dns_record {zoneId}#{recordId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.