published on Thursday, Jun 11, 2026 by Volcengine
published on Thursday, Jun 11, 2026 by Volcengine
DNS record resource, used to create, query, update, delete, and list a single DNS record under a specified domain name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const dNSRecordDemo = new volcenginecc.dns.Record("DNSRecordDemo", {
zid: "xxxxxx",
host: "test",
type: "CNAME",
value: "test1.example1.com",
line: "default",
remark: "test",
ttl: 601,
weight: 2,
enable: false,
});
import pulumi
import pulumi_volcenginecc as volcenginecc
d_ns_record_demo = volcenginecc.dns.Record("DNSRecordDemo",
zid="xxxxxx",
host="test",
type="CNAME",
value="test1.example1.com",
line="default",
remark="test",
ttl=601,
weight=2,
enable=False)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/dns"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dns.NewRecord(ctx, "DNSRecordDemo", &dns.RecordArgs{
Zid: pulumi.String("xxxxxx"),
Host: pulumi.String("test"),
Type: pulumi.String("CNAME"),
Value: pulumi.String("test1.example1.com"),
Line: pulumi.String("default"),
Remark: pulumi.String("test"),
Ttl: pulumi.Int(601),
Weight: pulumi.Int(2),
Enable: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var dNSRecordDemo = new Volcenginecc.Dns.Record("DNSRecordDemo", new()
{
Zid = "xxxxxx",
Host = "test",
Type = "CNAME",
Value = "test1.example1.com",
Line = "default",
Remark = "test",
Ttl = 601,
Weight = 2,
Enable = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.dns.Record;
import com.volcengine.volcenginecc.dns.RecordArgs;
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 dNSRecordDemo = new Record("dNSRecordDemo", RecordArgs.builder()
.zid("xxxxxx")
.host("test")
.type("CNAME")
.value("test1.example1.com")
.line("default")
.remark("test")
.ttl(601)
.weight(2)
.enable(false)
.build());
}
}
resources:
dNSRecordDemo:
type: volcenginecc:dns:Record
name: DNSRecordDemo
properties:
zid: xxxxxx
host: test
type: CNAME
value: test1.example1.com
line: default
remark: test
ttl: 601
weight: 2
enable: false
Example coming soon!
Create Record Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Record(name: string, args: RecordArgs, opts?: CustomResourceOptions);@overload
def Record(resource_name: str,
args: RecordArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Record(resource_name: str,
opts: Optional[ResourceOptions] = None,
host: Optional[str] = None,
type: Optional[str] = None,
value: Optional[str] = None,
zid: Optional[str] = None,
enable: Optional[bool] = None,
line: Optional[str] = None,
remark: Optional[str] = None,
ttl: Optional[int] = None,
weight: Optional[int] = None)func NewRecord(ctx *Context, name string, args RecordArgs, opts ...ResourceOption) (*Record, error)public Record(string name, RecordArgs args, CustomResourceOptions? opts = null)
public Record(String name, RecordArgs args)
public Record(String name, RecordArgs args, CustomResourceOptions options)
type: volcenginecc:dns:Record
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcenginecc_dns_record" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RecordArgs
- 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 RecordArgs
- 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 RecordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RecordArgs
- 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 recordResource = new Volcenginecc.Dns.Record("recordResource", new()
{
Host = "string",
Type = "string",
Value = "string",
Zid = "string",
Enable = false,
Line = "string",
Remark = "string",
Ttl = 0,
Weight = 0,
});
example, err := dns.NewRecord(ctx, "recordResource", &dns.RecordArgs{
Host: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
Zid: pulumi.String("string"),
Enable: pulumi.Bool(false),
Line: pulumi.String("string"),
Remark: pulumi.String("string"),
Ttl: pulumi.Int(0),
Weight: pulumi.Int(0),
})
resource "volcenginecc_dns_record" "recordResource" {
host = "string"
type = "string"
value = "string"
zid = "string"
enable = false
line = "string"
remark = "string"
ttl = 0
weight = 0
}
var recordResource = new com.volcengine.volcenginecc.dns.Record("recordResource", com.volcengine.volcenginecc.dns.RecordArgs.builder()
.host("string")
.type("string")
.value("string")
.zid("string")
.enable(false)
.line("string")
.remark("string")
.ttl(0)
.weight(0)
.build());
record_resource = volcenginecc.dns.Record("recordResource",
host="string",
type="string",
value="string",
zid="string",
enable=False,
line="string",
remark="string",
ttl=0,
weight=0)
const recordResource = new volcenginecc.dns.Record("recordResource", {
host: "string",
type: "string",
value: "string",
zid: "string",
enable: false,
line: "string",
remark: "string",
ttl: 0,
weight: 0,
});
type: volcenginecc:dns:Record
properties:
enable: false
host: string
line: string
remark: string
ttl: 0
type: string
value: string
weight: 0
zid: string
Record 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 Record resource accepts the following input properties:
- Host string
- Host record, the prefix of the subdomain;
@represents the root domain itself. - Type string
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - Value string
- Record value of the DNS record.
- Zid string
- Domain name ID, can be obtained via interfaces such as
ListZones. - Enable bool
- Whether the DNS record is enabled; if disabled, the record is inactive.
- Line string
- Line code corresponding to the DNS record, such as
default. - Remark string
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- Ttl int
- Expiration time of the DNS record, in seconds.
- Weight int
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- Host string
- Host record, the prefix of the subdomain;
@represents the root domain itself. - Type string
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - Value string
- Record value of the DNS record.
- Zid string
- Domain name ID, can be obtained via interfaces such as
ListZones. - Enable bool
- Whether the DNS record is enabled; if disabled, the record is inactive.
- Line string
- Line code corresponding to the DNS record, such as
default. - Remark string
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- Ttl int
- Expiration time of the DNS record, in seconds.
- Weight int
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- host string
- Host record, the prefix of the subdomain;
@represents the root domain itself. - type string
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - value string
- Record value of the DNS record.
- zid string
- Domain name ID, can be obtained via interfaces such as
ListZones. - enable bool
- Whether the DNS record is enabled; if disabled, the record is inactive.
- line string
- Line code corresponding to the DNS record, such as
default. - remark string
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- ttl number
- Expiration time of the DNS record, in seconds.
- weight number
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- host String
- Host record, the prefix of the subdomain;
@represents the root domain itself. - type String
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - value String
- Record value of the DNS record.
- zid String
- Domain name ID, can be obtained via interfaces such as
ListZones. - enable Boolean
- Whether the DNS record is enabled; if disabled, the record is inactive.
- line String
- Line code corresponding to the DNS record, such as
default. - remark String
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- ttl Integer
- Expiration time of the DNS record, in seconds.
- weight Integer
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- host string
- Host record, the prefix of the subdomain;
@represents the root domain itself. - type string
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - value string
- Record value of the DNS record.
- zid string
- Domain name ID, can be obtained via interfaces such as
ListZones. - enable boolean
- Whether the DNS record is enabled; if disabled, the record is inactive.
- line string
- Line code corresponding to the DNS record, such as
default. - remark string
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- ttl number
- Expiration time of the DNS record, in seconds.
- weight number
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- host str
- Host record, the prefix of the subdomain;
@represents the root domain itself. - type str
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - value str
- Record value of the DNS record.
- zid str
- Domain name ID, can be obtained via interfaces such as
ListZones. - enable bool
- Whether the DNS record is enabled; if disabled, the record is inactive.
- line str
- Line code corresponding to the DNS record, such as
default. - remark str
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- ttl int
- Expiration time of the DNS record, in seconds.
- weight int
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- host String
- Host record, the prefix of the subdomain;
@represents the root domain itself. - type String
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - value String
- Record value of the DNS record.
- zid String
- Domain name ID, can be obtained via interfaces such as
ListZones. - enable Boolean
- Whether the DNS record is enabled; if disabled, the record is inactive.
- line String
- Line code corresponding to the DNS record, such as
default. - remark String
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- ttl Number
- Expiration time of the DNS record, in seconds.
- weight Number
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
Outputs
All input properties are implicitly available as output properties. Additionally, the Record resource produces the following output properties:
- Created
At string - Creation time of the DNS record.
- Fqdn string
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Operators List<string>
- List of account IDs that recently operated on this DNS record.
- Pqdn string
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- Record
Id string - Unique ID of the DNS record.
- Record
Set stringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- List<string>
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - Updated
At string - Last updated time of the DNS record.
- Created
At string - Creation time of the DNS record.
- Fqdn string
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Operators []string
- List of account IDs that recently operated on this DNS record.
- Pqdn string
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- Record
Id string - Unique ID of the DNS record.
- Record
Set stringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- []string
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - Updated
At string - Last updated time of the DNS record.
- created_
at string - Creation time of the DNS record.
- fqdn string
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- id string
- The provider-assigned unique ID for this managed resource.
- operators list(string)
- List of account IDs that recently operated on this DNS record.
- pqdn string
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record_
id string - Unique ID of the DNS record.
- record_
set_ stringid - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- list(string)
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - updated_
at string - Last updated time of the DNS record.
- created
At String - Creation time of the DNS record.
- fqdn String
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- id String
- The provider-assigned unique ID for this managed resource.
- operators List<String>
- List of account IDs that recently operated on this DNS record.
- pqdn String
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record
Id String - Unique ID of the DNS record.
- record
Set StringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- List<String>
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - updated
At String - Last updated time of the DNS record.
- created
At string - Creation time of the DNS record.
- fqdn string
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- id string
- The provider-assigned unique ID for this managed resource.
- operators string[]
- List of account IDs that recently operated on this DNS record.
- pqdn string
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record
Id string - Unique ID of the DNS record.
- record
Set stringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- string[]
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - updated
At string - Last updated time of the DNS record.
- created_
at str - Creation time of the DNS record.
- fqdn str
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- id str
- The provider-assigned unique ID for this managed resource.
- operators Sequence[str]
- List of account IDs that recently operated on this DNS record.
- pqdn str
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record_
id str - Unique ID of the DNS record.
- record_
set_ strid - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- Sequence[str]
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - updated_
at str - Last updated time of the DNS record.
- created
At String - Creation time of the DNS record.
- fqdn String
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- id String
- The provider-assigned unique ID for this managed resource.
- operators List<String>
- List of account IDs that recently operated on this DNS record.
- pqdn String
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record
Id String - Unique ID of the DNS record.
- record
Set StringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- List<String>
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - updated
At String - Last updated time of the DNS record.
Look up Existing Record Resource
Get an existing Record 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?: RecordState, opts?: CustomResourceOptions): Record@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
enable: Optional[bool] = None,
fqdn: Optional[str] = None,
host: Optional[str] = None,
line: Optional[str] = None,
operators: Optional[Sequence[str]] = None,
pqdn: Optional[str] = None,
record_id: Optional[str] = None,
record_set_id: Optional[str] = None,
remark: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
ttl: Optional[int] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None,
value: Optional[str] = None,
weight: Optional[int] = None,
zid: Optional[str] = None) -> Recordfunc GetRecord(ctx *Context, name string, id IDInput, state *RecordState, opts ...ResourceOption) (*Record, error)public static Record Get(string name, Input<string> id, RecordState? state, CustomResourceOptions? opts = null)public static Record get(String name, Output<String> id, RecordState state, CustomResourceOptions options)resources: _: type: volcenginecc:dns:Record get: id: ${id}import {
to = volcenginecc_dns_record.example
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.
- Created
At string - Creation time of the DNS record.
- Enable bool
- Whether the DNS record is enabled; if disabled, the record is inactive.
- Fqdn string
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- Host string
- Host record, the prefix of the subdomain;
@represents the root domain itself. - Line string
- Line code corresponding to the DNS record, such as
default. - Operators List<string>
- List of account IDs that recently operated on this DNS record.
- Pqdn string
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- Record
Id string - Unique ID of the DNS record.
- Record
Set stringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- Remark string
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- List<string>
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - Ttl int
- Expiration time of the DNS record, in seconds.
- Type string
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - Updated
At string - Last updated time of the DNS record.
- Value string
- Record value of the DNS record.
- Weight int
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- Zid string
- Domain name ID, can be obtained via interfaces such as
ListZones.
- Created
At string - Creation time of the DNS record.
- Enable bool
- Whether the DNS record is enabled; if disabled, the record is inactive.
- Fqdn string
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- Host string
- Host record, the prefix of the subdomain;
@represents the root domain itself. - Line string
- Line code corresponding to the DNS record, such as
default. - Operators []string
- List of account IDs that recently operated on this DNS record.
- Pqdn string
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- Record
Id string - Unique ID of the DNS record.
- Record
Set stringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- Remark string
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- []string
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - Ttl int
- Expiration time of the DNS record, in seconds.
- Type string
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - Updated
At string - Last updated time of the DNS record.
- Value string
- Record value of the DNS record.
- Weight int
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- Zid string
- Domain name ID, can be obtained via interfaces such as
ListZones.
- created_
at string - Creation time of the DNS record.
- enable bool
- Whether the DNS record is enabled; if disabled, the record is inactive.
- fqdn string
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- host string
- Host record, the prefix of the subdomain;
@represents the root domain itself. - line string
- Line code corresponding to the DNS record, such as
default. - operators list(string)
- List of account IDs that recently operated on this DNS record.
- pqdn string
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record_
id string - Unique ID of the DNS record.
- record_
set_ stringid - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- remark string
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- list(string)
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - ttl number
- Expiration time of the DNS record, in seconds.
- type string
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - updated_
at string - Last updated time of the DNS record.
- value string
- Record value of the DNS record.
- weight number
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- zid string
- Domain name ID, can be obtained via interfaces such as
ListZones.
- created
At String - Creation time of the DNS record.
- enable Boolean
- Whether the DNS record is enabled; if disabled, the record is inactive.
- fqdn String
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- host String
- Host record, the prefix of the subdomain;
@represents the root domain itself. - line String
- Line code corresponding to the DNS record, such as
default. - operators List<String>
- List of account IDs that recently operated on this DNS record.
- pqdn String
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record
Id String - Unique ID of the DNS record.
- record
Set StringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- remark String
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- List<String>
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - ttl Integer
- Expiration time of the DNS record, in seconds.
- type String
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - updated
At String - Last updated time of the DNS record.
- value String
- Record value of the DNS record.
- weight Integer
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- zid String
- Domain name ID, can be obtained via interfaces such as
ListZones.
- created
At string - Creation time of the DNS record.
- enable boolean
- Whether the DNS record is enabled; if disabled, the record is inactive.
- fqdn string
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- host string
- Host record, the prefix of the subdomain;
@represents the root domain itself. - line string
- Line code corresponding to the DNS record, such as
default. - operators string[]
- List of account IDs that recently operated on this DNS record.
- pqdn string
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record
Id string - Unique ID of the DNS record.
- record
Set stringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- remark string
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- string[]
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - ttl number
- Expiration time of the DNS record, in seconds.
- type string
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - updated
At string - Last updated time of the DNS record.
- value string
- Record value of the DNS record.
- weight number
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- zid string
- Domain name ID, can be obtained via interfaces such as
ListZones.
- created_
at str - Creation time of the DNS record.
- enable bool
- Whether the DNS record is enabled; if disabled, the record is inactive.
- fqdn str
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- host str
- Host record, the prefix of the subdomain;
@represents the root domain itself. - line str
- Line code corresponding to the DNS record, such as
default. - operators Sequence[str]
- List of account IDs that recently operated on this DNS record.
- pqdn str
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record_
id str - Unique ID of the DNS record.
- record_
set_ strid - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- remark str
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- Sequence[str]
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - ttl int
- Expiration time of the DNS record, in seconds.
- type str
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - updated_
at str - Last updated time of the DNS record.
- value str
- Record value of the DNS record.
- weight int
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- zid str
- Domain name ID, can be obtained via interfaces such as
ListZones.
- created
At String - Creation time of the DNS record.
- enable Boolean
- Whether the DNS record is enabled; if disabled, the record is inactive.
- fqdn String
- Host name included in the DNS record, using FQDN (Fully Qualified Domain Name) format; this field is deprecated.
- host String
- Host record, the prefix of the subdomain;
@represents the root domain itself. - line String
- Line code corresponding to the DNS record, such as
default. - operators List<String>
- List of account IDs that recently operated on this DNS record.
- pqdn String
- Host name included in the DNS record, using PQDN (Partially Qualified Domain Name) format.
- record
Id String - Unique ID of the DNS record.
- record
Set StringId - ID of the record set containing the DNS record; returned only for A, AAAA, and CNAME types.
- remark String
- Remarks for the DNS record, supports UTF-8 encoding and up to 16 characters.
- List<String>
- Tag information for the DNS record; if it contains
GTMLock, the record is associated with a GTM instance. - ttl Number
- Expiration time of the DNS record, in seconds.
- type String
- Record type, such as
A,AAAA,CNAME,NS,MX,SRV,TXT. - updated
At String - Last updated time of the DNS record.
- value String
- Record value of the DNS record.
- weight Number
- Weight of the DNS record, effective only when load balancing is enabled for the record set.
- zid String
- Domain name ID, can be obtained via interfaces such as
ListZones.
Import
$ pulumi import volcenginecc:dns/record:Record example "zid|record_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Jun 11, 2026 by Volcengine