published on Monday, Jun 15, 2026 by Volcengine
published on Monday, Jun 15, 2026 by Volcengine
Private network resolution
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
privateZoneDemo:
type: volcenginecc:privatezone:PrivateZone
name: PrivateZoneDemo
properties:
zoneName: new.example.com
vpcs:
- vpc_id: vpc-btgxxxxx0b2tnxxxxx
region: cn-beijing
projectName: default
lineMode: 1
recursionMode: true
tags:
- value: test
key: env
remark: 测试域名
Example coming soon!
Create PrivateZone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateZone(name: string, args: PrivateZoneArgs, opts?: CustomResourceOptions);@overload
def PrivateZone(resource_name: str,
args: PrivateZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateZone(resource_name: str,
opts: Optional[ResourceOptions] = None,
zone_name: Optional[str] = None,
line_mode: Optional[int] = None,
project_name: Optional[str] = None,
recursion_mode: Optional[bool] = None,
remark: Optional[str] = None,
tags: Optional[Sequence[PrivateZoneTagArgs]] = None,
vpcs: Optional[Sequence[PrivateZoneVpcArgs]] = None)func NewPrivateZone(ctx *Context, name string, args PrivateZoneArgs, opts ...ResourceOption) (*PrivateZone, error)public PrivateZone(string name, PrivateZoneArgs args, CustomResourceOptions? opts = null)
public PrivateZone(String name, PrivateZoneArgs args)
public PrivateZone(String name, PrivateZoneArgs args, CustomResourceOptions options)
type: volcenginecc:privatezone:PrivateZone
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcenginecc_privatezone_privatezone" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PrivateZoneArgs
- 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 PrivateZoneArgs
- 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 PrivateZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateZoneArgs
- 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 privateZoneResource = new Volcenginecc.Privatezone.PrivateZone("privateZoneResource", new()
{
ZoneName = "string",
LineMode = 0,
ProjectName = "string",
RecursionMode = false,
Remark = "string",
Tags = new[]
{
new Volcenginecc.Privatezone.Inputs.PrivateZoneTagArgs
{
Key = "string",
Value = "string",
},
},
Vpcs = new[]
{
new Volcenginecc.Privatezone.Inputs.PrivateZoneVpcArgs
{
Region = "string",
VpcId = "string",
},
},
});
example, err := privatezone.NewPrivateZone(ctx, "privateZoneResource", &privatezone.PrivateZoneArgs{
ZoneName: pulumi.String("string"),
LineMode: pulumi.Int(0),
ProjectName: pulumi.String("string"),
RecursionMode: pulumi.Bool(false),
Remark: pulumi.String("string"),
Tags: privatezone.PrivateZoneTagArray{
&privatezone.PrivateZoneTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Vpcs: privatezone.PrivateZoneVpcArray{
&privatezone.PrivateZoneVpcArgs{
Region: pulumi.String("string"),
VpcId: pulumi.String("string"),
},
},
})
resource "volcenginecc_privatezone_privatezone" "privateZoneResource" {
zone_name = "string"
line_mode = 0
project_name = "string"
recursion_mode = false
remark = "string"
tags {
key = "string"
value = "string"
}
vpcs {
region = "string"
vpc_id = "string"
}
}
var privateZoneResource = new PrivateZone("privateZoneResource", PrivateZoneArgs.builder()
.zoneName("string")
.lineMode(0)
.projectName("string")
.recursionMode(false)
.remark("string")
.tags(PrivateZoneTagArgs.builder()
.key("string")
.value("string")
.build())
.vpcs(PrivateZoneVpcArgs.builder()
.region("string")
.vpcId("string")
.build())
.build());
private_zone_resource = volcenginecc.privatezone.PrivateZone("privateZoneResource",
zone_name="string",
line_mode=0,
project_name="string",
recursion_mode=False,
remark="string",
tags=[{
"key": "string",
"value": "string",
}],
vpcs=[{
"region": "string",
"vpc_id": "string",
}])
const privateZoneResource = new volcenginecc.privatezone.PrivateZone("privateZoneResource", {
zoneName: "string",
lineMode: 0,
projectName: "string",
recursionMode: false,
remark: "string",
tags: [{
key: "string",
value: "string",
}],
vpcs: [{
region: "string",
vpcId: "string",
}],
});
type: volcenginecc:privatezone:PrivateZone
properties:
lineMode: 0
projectName: string
recursionMode: false
remark: string
tags:
- key: string
value: string
vpcs:
- region: string
vpcId: string
zoneName: string
PrivateZone 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 PrivateZone resource accepts the following input properties:
- Zone
Name string - Domain name, can be a second-level or multi-level domain
- Line
Mode int - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- Project
Name string - Name of the project the domain belongs to. Default is default
- Recursion
Mode bool - Enable recursive resolution: true to enable, false to disable. Default is false
- Remark string
- Remarks. Default is an empty string
-
List<Volcengine.
Private Zone Tag> - Vpcs
List<Volcengine.
Private Zone Vpc>
- Zone
Name string - Domain name, can be a second-level or multi-level domain
- Line
Mode int - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- Project
Name string - Name of the project the domain belongs to. Default is default
- Recursion
Mode bool - Enable recursive resolution: true to enable, false to disable. Default is false
- Remark string
- Remarks. Default is an empty string
-
[]Private
Zone Tag Args - Vpcs
[]Private
Zone Vpc Args
- zone_
name string - Domain name, can be a second-level or multi-level domain
- line_
mode number - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project_
name string - Name of the project the domain belongs to. Default is default
- recursion_
mode bool - Enable recursive resolution: true to enable, false to disable. Default is false
- remark string
- Remarks. Default is an empty string
- list(object)
- vpcs list(object)
- zone
Name String - Domain name, can be a second-level or multi-level domain
- line
Mode Integer - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project
Name String - Name of the project the domain belongs to. Default is default
- recursion
Mode Boolean - Enable recursive resolution: true to enable, false to disable. Default is false
- remark String
- Remarks. Default is an empty string
-
List<Private
Zone Tag> - vpcs
List<Private
Zone Vpc>
- zone
Name string - Domain name, can be a second-level or multi-level domain
- line
Mode number - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project
Name string - Name of the project the domain belongs to. Default is default
- recursion
Mode boolean - Enable recursive resolution: true to enable, false to disable. Default is false
- remark string
- Remarks. Default is an empty string
-
Private
Zone Tag[] - vpcs
Private
Zone Vpc[]
- zone_
name str - Domain name, can be a second-level or multi-level domain
- line_
mode int - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project_
name str - Name of the project the domain belongs to. Default is default
- recursion_
mode bool - Enable recursive resolution: true to enable, false to disable. Default is false
- remark str
- Remarks. Default is an empty string
-
Sequence[Private
Zone Tag Args] - vpcs
Sequence[Private
Zone Vpc Args]
- zone
Name String - Domain name, can be a second-level or multi-level domain
- line
Mode Number - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project
Name String - Name of the project the domain belongs to. Default is default
- recursion
Mode Boolean - Enable recursive resolution: true to enable, false to disable. Default is false
- remark String
- Remarks. Default is an empty string
- List<Property Map>
- vpcs List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateZone resource produces the following output properties:
- Created
At string - Domain creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Operator string - Most recent operator
- Record
Count int - Number of DNS records under the domain name
- Updated
At string - Most recent update time of the domain
- Zid string
- Unique ID identifying the domain name
- Created
At string - Domain creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Operator string - Most recent operator
- Record
Count int - Number of DNS records under the domain name
- Updated
At string - Most recent update time of the domain
- Zid string
- Unique ID identifying the domain name
- created_
at string - Domain creation time
- id string
- The provider-assigned unique ID for this managed resource.
- last_
operator string - Most recent operator
- record_
count number - Number of DNS records under the domain name
- updated_
at string - Most recent update time of the domain
- zid string
- Unique ID identifying the domain name
- created
At String - Domain creation time
- id String
- The provider-assigned unique ID for this managed resource.
- last
Operator String - Most recent operator
- record
Count Integer - Number of DNS records under the domain name
- updated
At String - Most recent update time of the domain
- zid String
- Unique ID identifying the domain name
- created
At string - Domain creation time
- id string
- The provider-assigned unique ID for this managed resource.
- last
Operator string - Most recent operator
- record
Count number - Number of DNS records under the domain name
- updated
At string - Most recent update time of the domain
- zid string
- Unique ID identifying the domain name
- created_
at str - Domain creation time
- id str
- The provider-assigned unique ID for this managed resource.
- last_
operator str - Most recent operator
- record_
count int - Number of DNS records under the domain name
- updated_
at str - Most recent update time of the domain
- zid str
- Unique ID identifying the domain name
- created
At String - Domain creation time
- id String
- The provider-assigned unique ID for this managed resource.
- last
Operator String - Most recent operator
- record
Count Number - Number of DNS records under the domain name
- updated
At String - Most recent update time of the domain
- zid String
- Unique ID identifying the domain name
Look up Existing PrivateZone Resource
Get an existing PrivateZone 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?: PrivateZoneState, opts?: CustomResourceOptions): PrivateZone@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
last_operator: Optional[str] = None,
line_mode: Optional[int] = None,
project_name: Optional[str] = None,
record_count: Optional[int] = None,
recursion_mode: Optional[bool] = None,
remark: Optional[str] = None,
tags: Optional[Sequence[PrivateZoneTagArgs]] = None,
updated_at: Optional[str] = None,
vpcs: Optional[Sequence[PrivateZoneVpcArgs]] = None,
zid: Optional[str] = None,
zone_name: Optional[str] = None) -> PrivateZonefunc GetPrivateZone(ctx *Context, name string, id IDInput, state *PrivateZoneState, opts ...ResourceOption) (*PrivateZone, error)public static PrivateZone Get(string name, Input<string> id, PrivateZoneState? state, CustomResourceOptions? opts = null)public static PrivateZone get(String name, Output<String> id, PrivateZoneState state, CustomResourceOptions options)resources: _: type: volcenginecc:privatezone:PrivateZone get: id: ${id}import {
to = volcenginecc_privatezone_privatezone.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 - Domain creation time
- Last
Operator string - Most recent operator
- Line
Mode int - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- Project
Name string - Name of the project the domain belongs to. Default is default
- Record
Count int - Number of DNS records under the domain name
- Recursion
Mode bool - Enable recursive resolution: true to enable, false to disable. Default is false
- Remark string
- Remarks. Default is an empty string
-
List<Volcengine.
Private Zone Tag> - Updated
At string - Most recent update time of the domain
- Vpcs
List<Volcengine.
Private Zone Vpc> - Zid string
- Unique ID identifying the domain name
- Zone
Name string - Domain name, can be a second-level or multi-level domain
- Created
At string - Domain creation time
- Last
Operator string - Most recent operator
- Line
Mode int - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- Project
Name string - Name of the project the domain belongs to. Default is default
- Record
Count int - Number of DNS records under the domain name
- Recursion
Mode bool - Enable recursive resolution: true to enable, false to disable. Default is false
- Remark string
- Remarks. Default is an empty string
-
[]Private
Zone Tag Args - Updated
At string - Most recent update time of the domain
- Vpcs
[]Private
Zone Vpc Args - Zid string
- Unique ID identifying the domain name
- Zone
Name string - Domain name, can be a second-level or multi-level domain
- created_
at string - Domain creation time
- last_
operator string - Most recent operator
- line_
mode number - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project_
name string - Name of the project the domain belongs to. Default is default
- record_
count number - Number of DNS records under the domain name
- recursion_
mode bool - Enable recursive resolution: true to enable, false to disable. Default is false
- remark string
- Remarks. Default is an empty string
- list(object)
- updated_
at string - Most recent update time of the domain
- vpcs list(object)
- zid string
- Unique ID identifying the domain name
- zone_
name string - Domain name, can be a second-level or multi-level domain
- created
At String - Domain creation time
- last
Operator String - Most recent operator
- line
Mode Integer - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project
Name String - Name of the project the domain belongs to. Default is default
- record
Count Integer - Number of DNS records under the domain name
- recursion
Mode Boolean - Enable recursive resolution: true to enable, false to disable. Default is false
- remark String
- Remarks. Default is an empty string
-
List<Private
Zone Tag> - updated
At String - Most recent update time of the domain
- vpcs
List<Private
Zone Vpc> - zid String
- Unique ID identifying the domain name
- zone
Name String - Domain name, can be a second-level or multi-level domain
- created
At string - Domain creation time
- last
Operator string - Most recent operator
- line
Mode number - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project
Name string - Name of the project the domain belongs to. Default is default
- record
Count number - Number of DNS records under the domain name
- recursion
Mode boolean - Enable recursive resolution: true to enable, false to disable. Default is false
- remark string
- Remarks. Default is an empty string
-
Private
Zone Tag[] - updated
At string - Most recent update time of the domain
- vpcs
Private
Zone Vpc[] - zid string
- Unique ID identifying the domain name
- zone
Name string - Domain name, can be a second-level or multi-level domain
- created_
at str - Domain creation time
- last_
operator str - Most recent operator
- line_
mode int - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project_
name str - Name of the project the domain belongs to. Default is default
- record_
count int - Number of DNS records under the domain name
- recursion_
mode bool - Enable recursive resolution: true to enable, false to disable. Default is false
- remark str
- Remarks. Default is an empty string
-
Sequence[Private
Zone Tag Args] - updated_
at str - Most recent update time of the domain
- vpcs
Sequence[Private
Zone Vpc Args] - zid str
- Unique ID identifying the domain name
- zone_
name str - Domain name, can be a second-level or multi-level domain
- created
At String - Domain creation time
- last
Operator String - Most recent operator
- line
Mode Number - Enable load balancing: 0 to disable, 1 to enable. Default is 0
- project
Name String - Name of the project the domain belongs to. Default is default
- record
Count Number - Number of DNS records under the domain name
- recursion
Mode Boolean - Enable recursive resolution: true to enable, false to disable. Default is false
- remark String
- Remarks. Default is an empty string
- List<Property Map>
- updated
At String - Most recent update time of the domain
- vpcs List<Property Map>
- zid String
- Unique ID identifying the domain name
- zone
Name String - Domain name, can be a second-level or multi-level domain
Supporting Types
PrivateZoneTag, PrivateZoneTagArgs
PrivateZoneVpc, PrivateZoneVpcArgs
Import
$ pulumi import volcenginecc:privatezone/privateZone:PrivateZone example "zid"
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, Jun 15, 2026 by Volcengine