published on Monday, Mar 9, 2026 by Volcengine
published on Monday, Mar 9, 2026 by Volcengine
解析记录是域名与 VPC 内资源信息的映射。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const privateZoneRecordDemo = new volcenginecc.privatezone.Record("PrivateZoneRecordDemo", {
host: "ccapi-test-1",
line: "default",
remark: "test",
ttl: 600,
type: "AAAA",
value: "ff03:0:0:0:0:0:0:c1",
weight: 1,
zid: 403215,
enable: true,
});
import pulumi
import pulumi_volcenginecc as volcenginecc
private_zone_record_demo = volcenginecc.privatezone.Record("PrivateZoneRecordDemo",
host="ccapi-test-1",
line="default",
remark="test",
ttl=600,
type="AAAA",
value="ff03:0:0:0:0:0:0:c1",
weight=1,
zid=403215,
enable=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/privatezone"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := privatezone.NewRecord(ctx, "PrivateZoneRecordDemo", &privatezone.RecordArgs{
Host: pulumi.String("ccapi-test-1"),
Line: pulumi.String("default"),
Remark: pulumi.String("test"),
Ttl: pulumi.Int(600),
Type: pulumi.String("AAAA"),
Value: pulumi.String("ff03:0:0:0:0:0:0:c1"),
Weight: pulumi.Int(1),
Zid: pulumi.Int(403215),
Enable: pulumi.Bool(true),
})
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 privateZoneRecordDemo = new Volcenginecc.Privatezone.Record("PrivateZoneRecordDemo", new()
{
Host = "ccapi-test-1",
Line = "default",
Remark = "test",
Ttl = 600,
Type = "AAAA",
Value = "ff03:0:0:0:0:0:0:c1",
Weight = 1,
Zid = 403215,
Enable = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.privatezone.Record;
import com.volcengine.volcenginecc.privatezone.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 privateZoneRecordDemo = new Record("privateZoneRecordDemo", RecordArgs.builder()
.host("ccapi-test-1")
.line("default")
.remark("test")
.ttl(600)
.type("AAAA")
.value("ff03:0:0:0:0:0:0:c1")
.weight(1)
.zid(403215)
.enable(true)
.build());
}
}
resources:
privateZoneRecordDemo:
type: volcenginecc:privatezone:Record
name: PrivateZoneRecordDemo
properties:
host: ccapi-test-1
line: default
remark: test
ttl: 600
type: AAAA
value: ff03:0:0:0:0:0:0:c1
weight: 1
zid: 403215
enable: true
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[int] = 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:privatezone:Record
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 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.Privatezone.Record("recordResource", new()
{
Host = "string",
Type = "string",
Value = "string",
Zid = 0,
Enable = false,
Line = "string",
Remark = "string",
Ttl = 0,
Weight = 0,
});
example, err := privatezone.NewRecord(ctx, "recordResource", &privatezone.RecordArgs{
Host: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
Zid: pulumi.Int(0),
Enable: pulumi.Bool(false),
Line: pulumi.String("string"),
Remark: pulumi.String("string"),
Ttl: pulumi.Int(0),
Weight: pulumi.Int(0),
})
var recordResource = new Record("recordResource", RecordArgs.builder()
.host("string")
.type("string")
.value("string")
.zid(0)
.enable(false)
.line("string")
.remark("string")
.ttl(0)
.weight(0)
.build());
record_resource = volcenginecc.privatezone.Record("recordResource",
host="string",
type="string",
value="string",
zid=0,
enable=False,
line="string",
remark="string",
ttl=0,
weight=0)
const recordResource = new volcenginecc.privatezone.Record("recordResource", {
host: "string",
type: "string",
value: "string",
zid: 0,
enable: false,
line: "string",
remark: "string",
ttl: 0,
weight: 0,
});
type: volcenginecc:privatezone:Record
properties:
enable: false
host: string
line: string
remark: string
ttl: 0
type: string
value: string
weight: 0
zid: 0
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
- 子域名的域名前缀。
- Type string
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- Value string
- 记录值。
- Zid int
- 域名 ID。
- Enable bool
- 解析记录是否被启用。
- Line string
- 解析记录的线路,只能是默认线路 default。
- Remark string
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- Ttl int
- 解析记录的过期时间。单位为秒。默认值为 600。
- Weight int
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- Host string
- 子域名的域名前缀。
- Type string
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- Value string
- 记录值。
- Zid int
- 域名 ID。
- Enable bool
- 解析记录是否被启用。
- Line string
- 解析记录的线路,只能是默认线路 default。
- Remark string
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- Ttl int
- 解析记录的过期时间。单位为秒。默认值为 600。
- Weight int
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- host String
- 子域名的域名前缀。
- type String
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- value String
- 记录值。
- zid Integer
- 域名 ID。
- enable Boolean
- 解析记录是否被启用。
- line String
- 解析记录的线路,只能是默认线路 default。
- remark String
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- ttl Integer
- 解析记录的过期时间。单位为秒。默认值为 600。
- weight Integer
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- host string
- 子域名的域名前缀。
- type string
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- value string
- 记录值。
- zid number
- 域名 ID。
- enable boolean
- 解析记录是否被启用。
- line string
- 解析记录的线路,只能是默认线路 default。
- remark string
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- ttl number
- 解析记录的过期时间。单位为秒。默认值为 600。
- weight number
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- host str
- 子域名的域名前缀。
- type str
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- value str
- 记录值。
- zid int
- 域名 ID。
- enable bool
- 解析记录是否被启用。
- line str
- 解析记录的线路,只能是默认线路 default。
- remark str
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- ttl int
- 解析记录的过期时间。单位为秒。默认值为 600。
- weight int
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- host String
- 子域名的域名前缀。
- type String
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- value String
- 记录值。
- zid Number
- 域名 ID。
- enable Boolean
- 解析记录是否被启用。
- line String
- 解析记录的线路,只能是默认线路 default。
- remark String
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- ttl Number
- 解析记录的过期时间。单位为秒。默认值为 600。
- weight Number
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
Outputs
All input properties are implicitly available as output properties. Additionally, the Record resource produces the following output properties:
- Created
At string - 解析记录的创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Operator string - 最近一次更新解析记录的账号 ID。
- Record
Id string - 解析记录 ID。
- Updated
At string - 解析记录最近一次的更新时间。
- Created
At string - 解析记录的创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Operator string - 最近一次更新解析记录的账号 ID。
- Record
Id string - 解析记录 ID。
- Updated
At string - 解析记录最近一次的更新时间。
- created
At String - 解析记录的创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- last
Operator String - 最近一次更新解析记录的账号 ID。
- record
Id String - 解析记录 ID。
- updated
At String - 解析记录最近一次的更新时间。
- created
At string - 解析记录的创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- last
Operator string - 最近一次更新解析记录的账号 ID。
- record
Id string - 解析记录 ID。
- updated
At string - 解析记录最近一次的更新时间。
- created_
at str - 解析记录的创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- last_
operator str - 最近一次更新解析记录的账号 ID。
- record_
id str - 解析记录 ID。
- updated_
at str - 解析记录最近一次的更新时间。
- created
At String - 解析记录的创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- last
Operator String - 最近一次更新解析记录的账号 ID。
- record
Id String - 解析记录 ID。
- updated
At String - 解析记录最近一次的更新时间。
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,
host: Optional[str] = None,
last_operator: Optional[str] = None,
line: Optional[str] = None,
record_id: Optional[str] = None,
remark: Optional[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[int] = 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:privatezone:Record 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.
- Created
At string - 解析记录的创建时间。
- Enable bool
- 解析记录是否被启用。
- Host string
- 子域名的域名前缀。
- Last
Operator string - 最近一次更新解析记录的账号 ID。
- Line string
- 解析记录的线路,只能是默认线路 default。
- Record
Id string - 解析记录 ID。
- Remark string
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- Ttl int
- 解析记录的过期时间。单位为秒。默认值为 600。
- Type string
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- Updated
At string - 解析记录最近一次的更新时间。
- Value string
- 记录值。
- Weight int
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- Zid int
- 域名 ID。
- Created
At string - 解析记录的创建时间。
- Enable bool
- 解析记录是否被启用。
- Host string
- 子域名的域名前缀。
- Last
Operator string - 最近一次更新解析记录的账号 ID。
- Line string
- 解析记录的线路,只能是默认线路 default。
- Record
Id string - 解析记录 ID。
- Remark string
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- Ttl int
- 解析记录的过期时间。单位为秒。默认值为 600。
- Type string
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- Updated
At string - 解析记录最近一次的更新时间。
- Value string
- 记录值。
- Weight int
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- Zid int
- 域名 ID。
- created
At String - 解析记录的创建时间。
- enable Boolean
- 解析记录是否被启用。
- host String
- 子域名的域名前缀。
- last
Operator String - 最近一次更新解析记录的账号 ID。
- line String
- 解析记录的线路,只能是默认线路 default。
- record
Id String - 解析记录 ID。
- remark String
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- ttl Integer
- 解析记录的过期时间。单位为秒。默认值为 600。
- type String
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- updated
At String - 解析记录最近一次的更新时间。
- value String
- 记录值。
- weight Integer
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- zid Integer
- 域名 ID。
- created
At string - 解析记录的创建时间。
- enable boolean
- 解析记录是否被启用。
- host string
- 子域名的域名前缀。
- last
Operator string - 最近一次更新解析记录的账号 ID。
- line string
- 解析记录的线路,只能是默认线路 default。
- record
Id string - 解析记录 ID。
- remark string
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- ttl number
- 解析记录的过期时间。单位为秒。默认值为 600。
- type string
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- updated
At string - 解析记录最近一次的更新时间。
- value string
- 记录值。
- weight number
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- zid number
- 域名 ID。
- created_
at str - 解析记录的创建时间。
- enable bool
- 解析记录是否被启用。
- host str
- 子域名的域名前缀。
- last_
operator str - 最近一次更新解析记录的账号 ID。
- line str
- 解析记录的线路,只能是默认线路 default。
- record_
id str - 解析记录 ID。
- remark str
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- ttl int
- 解析记录的过期时间。单位为秒。默认值为 600。
- type str
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- updated_
at str - 解析记录最近一次的更新时间。
- value str
- 记录值。
- weight int
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- zid int
- 域名 ID。
- created
At String - 解析记录的创建时间。
- enable Boolean
- 解析记录是否被启用。
- host String
- 子域名的域名前缀。
- last
Operator String - 最近一次更新解析记录的账号 ID。
- line String
- 解析记录的线路,只能是默认线路 default。
- record
Id String - 解析记录 ID。
- remark String
- 备注。支持 UTF-8 字符。不能超过 16 个字符。默认值为空字符串。
- ttl Number
- 解析记录的过期时间。单位为秒。默认值为 600。
- type String
- 解析记录类型。该参数的取值如下:A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。A:A 记录。AAAA:AAAA 记录。CNAME:CNAME 记录。TXT:TXT 记录。MX:MX 记录。PTR:PTR 记录。
- updated
At String - 解析记录最近一次的更新时间。
- value String
- 记录值。
- weight Number
- 记录的权重。只有域名开启了负载均衡后,记录值的权重才会生效。
- zid Number
- 域名 ID。
Import
$ pulumi import volcenginecc:privatezone/record:Record example "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 Monday, Mar 9, 2026 by Volcengine
