volcengine.private_zone.Record
Explore with Pulumi AI
Provides a resource to manage private zone record
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,
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: volcengine:private_zone: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 Volcengine.Private_zone.Record("recordResource", new()
{
Host = "string",
Type = "string",
Value = "string",
Zid = 0,
Enable = false,
Remark = "string",
Ttl = 0,
Weight = 0,
});
example, err := private_zone.NewRecord(ctx, "recordResource", &private_zone.RecordArgs{
Host: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
Zid: pulumi.Int(0),
Enable: pulumi.Bool(false),
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)
.remark("string")
.ttl(0)
.weight(0)
.build());
record_resource = volcengine.private_zone.Record("recordResource",
host="string",
type="string",
value="string",
zid=0,
enable=False,
remark="string",
ttl=0,
weight=0)
const recordResource = new volcengine.private_zone.Record("recordResource", {
host: "string",
type: "string",
value: "string",
zid: 0,
enable: false,
remark: "string",
ttl: 0,
weight: 0,
});
type: volcengine:private_zone:Record
properties:
enable: false
host: 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
- The host of the private zone record.
- Type string
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - Value string
- The value of the private zone record. Record values need to be set based on the value of the
type
. - Zid int
- The zid of the private zone record.
- Enable bool
- Whether to enable the private zone record. This field is only effected when modify this resource.
- Remark string
- The remark of the private zone record.
- Ttl int
- The ttl of the private zone record. Unit: second. Default is 600.
- Weight int
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1.
- Host string
- The host of the private zone record.
- Type string
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - Value string
- The value of the private zone record. Record values need to be set based on the value of the
type
. - Zid int
- The zid of the private zone record.
- Enable bool
- Whether to enable the private zone record. This field is only effected when modify this resource.
- Remark string
- The remark of the private zone record.
- Ttl int
- The ttl of the private zone record. Unit: second. Default is 600.
- Weight int
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1.
- host String
- The host of the private zone record.
- type String
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - value String
- The value of the private zone record. Record values need to be set based on the value of the
type
. - zid Integer
- The zid of the private zone record.
- enable Boolean
- Whether to enable the private zone record. This field is only effected when modify this resource.
- remark String
- The remark of the private zone record.
- ttl Integer
- The ttl of the private zone record. Unit: second. Default is 600.
- weight Integer
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1.
- host string
- The host of the private zone record.
- type string
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - value string
- The value of the private zone record. Record values need to be set based on the value of the
type
. - zid number
- The zid of the private zone record.
- enable boolean
- Whether to enable the private zone record. This field is only effected when modify this resource.
- remark string
- The remark of the private zone record.
- ttl number
- The ttl of the private zone record. Unit: second. Default is 600.
- weight number
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1.
- host str
- The host of the private zone record.
- type str
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - value str
- The value of the private zone record. Record values need to be set based on the value of the
type
. - zid int
- The zid of the private zone record.
- enable bool
- Whether to enable the private zone record. This field is only effected when modify this resource.
- remark str
- The remark of the private zone record.
- ttl int
- The ttl of the private zone record. Unit: second. Default is 600.
- weight int
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1.
- host String
- The host of the private zone record.
- type String
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - value String
- The value of the private zone record. Record values need to be set based on the value of the
type
. - zid Number
- The zid of the private zone record.
- enable Boolean
- Whether to enable the private zone record. This field is only effected when modify this resource.
- remark String
- The remark of the private zone record.
- ttl Number
- The ttl of the private zone record. Unit: second. Default is 600.
- weight Number
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1.
Outputs
All input properties are implicitly available as output properties. Additionally, the Record resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
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,
enable: Optional[bool] = None,
host: Optional[str] = None,
remark: Optional[str] = None,
ttl: Optional[int] = None,
type: Optional[str] = None,
value: Optional[str] = None,
weight: Optional[int] = None,
zid: Optional[int] = None) -> Record
func 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)
Resource lookup is not supported in YAML
- 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.
- Enable bool
- Whether to enable the private zone record. This field is only effected when modify this resource.
- Host string
- The host of the private zone record.
- Remark string
- The remark of the private zone record.
- Ttl int
- The ttl of the private zone record. Unit: second. Default is 600.
- Type string
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - Value string
- The value of the private zone record. Record values need to be set based on the value of the
type
. - Weight int
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1. - Zid int
- The zid of the private zone record.
- Enable bool
- Whether to enable the private zone record. This field is only effected when modify this resource.
- Host string
- The host of the private zone record.
- Remark string
- The remark of the private zone record.
- Ttl int
- The ttl of the private zone record. Unit: second. Default is 600.
- Type string
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - Value string
- The value of the private zone record. Record values need to be set based on the value of the
type
. - Weight int
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1. - Zid int
- The zid of the private zone record.
- enable Boolean
- Whether to enable the private zone record. This field is only effected when modify this resource.
- host String
- The host of the private zone record.
- remark String
- The remark of the private zone record.
- ttl Integer
- The ttl of the private zone record. Unit: second. Default is 600.
- type String
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - value String
- The value of the private zone record. Record values need to be set based on the value of the
type
. - weight Integer
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1. - zid Integer
- The zid of the private zone record.
- enable boolean
- Whether to enable the private zone record. This field is only effected when modify this resource.
- host string
- The host of the private zone record.
- remark string
- The remark of the private zone record.
- ttl number
- The ttl of the private zone record. Unit: second. Default is 600.
- type string
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - value string
- The value of the private zone record. Record values need to be set based on the value of the
type
. - weight number
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1. - zid number
- The zid of the private zone record.
- enable bool
- Whether to enable the private zone record. This field is only effected when modify this resource.
- host str
- The host of the private zone record.
- remark str
- The remark of the private zone record.
- ttl int
- The ttl of the private zone record. Unit: second. Default is 600.
- type str
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - value str
- The value of the private zone record. Record values need to be set based on the value of the
type
. - weight int
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1. - zid int
- The zid of the private zone record.
- enable Boolean
- Whether to enable the private zone record. This field is only effected when modify this resource.
- host String
- The host of the private zone record.
- remark String
- The remark of the private zone record.
- ttl Number
- The ttl of the private zone record. Unit: second. Default is 600.
- type String
- The type of the private zone record. Valid values:
A
,AAAA
,CNAME
,MX
,PTR
. - value String
- The value of the private zone record. Record values need to be set based on the value of the
type
. - weight Number
- The weight of the private zone record. This field is only effected when the
load_balance_mode
of the private zone is true and theweight_enabled
of the record_set is true. Default is 1. - zid Number
- The zid of the private zone record.
Import
PrivateZoneRecord can be imported using the id, e.g.
$ pulumi import volcengine:private_zone/record:Record default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.