tencentcloud_private_dns_record

最近更新时间:2025-01-08 18:07:03

我的收藏

描述

私有域解析 PrivateDNS 记录,产品介绍

示例

resource "tencentcloud_private_dns_record" "domain_record1" {
zone_id = "zone-690u5z80"
sub_domain = "www"
record_type = "A"
record_value = "192.168.10.2"
weight = 100
}

参数说明

类型
名称
数据类型
说明
必填
region
string
地域,如:ap-guangzhou,默认使用 provider 中定义的 region 也可以在 resource 中指定地域,覆盖默认设置
zone_id
string
私有域 ID
sub_domain
string
子域名,例如 "www", "m", "@"
record_type
string
记录类型,可选的记录类型为:"A", "AAAA", "CNAME", "MX", "TXT", "PTR"
record_value
string
记录值,例如 IP:192.168.10.2,CNAME:cname.qcloud.com.,MX:mail.qcloud.com.
可选
availability_zone
string
可用区
count
int
资源数量,默认为 1 如果为 0 则不创建资源
activity_id
int
计费活动 ID,保留字段
weight
int
记录权重,值为1-100
mx
int
MX 优先级:记录类型为 MX 时必填。取值范围:5,10,15,20,30,40,50
ttl
int
记录缓存时间,数值越小生效越快,取值1-86400s, 默认 600
生成
id
string
资源实例 ID
create_time
string
资源创建时间