published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
The zone in the resource is the domain name, which can be a primary domain such as example.com or a subdomain such as abc.example.com
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const dnsZoneDemo = new volcenginecc.dns.Zone("DnsZoneDemo", {
zoneName: "DnsZoneDemo",
remark: "test",
projectName: "default",
tags: [{
key: "env",
value: "test",
}],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
dns_zone_demo = volcenginecc.dns.Zone("DnsZoneDemo",
zone_name="DnsZoneDemo",
remark="test",
project_name="default",
tags=[{
"key": "env",
"value": "test",
}])
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.NewZone(ctx, "DnsZoneDemo", &dns.ZoneArgs{
ZoneName: pulumi.String("DnsZoneDemo"),
Remark: pulumi.String("test"),
ProjectName: pulumi.String("default"),
Tags: dns.ZoneTagArray{
&dns.ZoneTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
})
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 dnsZoneDemo = new Volcenginecc.Dns.Zone("DnsZoneDemo", new()
{
ZoneName = "DnsZoneDemo",
Remark = "test",
ProjectName = "default",
Tags = new[]
{
new Volcenginecc.Dns.Inputs.ZoneTagArgs
{
Key = "env",
Value = "test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.dns.Zone;
import com.volcengine.volcenginecc.dns.ZoneArgs;
import com.pulumi.volcenginecc.dns.inputs.ZoneTagArgs;
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 dnsZoneDemo = new Zone("dnsZoneDemo", ZoneArgs.builder()
.zoneName("DnsZoneDemo")
.remark("test")
.projectName("default")
.tags(ZoneTagArgs.builder()
.key("env")
.value("test")
.build())
.build());
}
}
resources:
dnsZoneDemo:
type: volcenginecc:dns:Zone
name: DnsZoneDemo
properties:
zoneName: DnsZoneDemo
remark: test
projectName: default
tags:
- key: env
value: test
Create Zone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Zone(name: string, args: ZoneArgs, opts?: CustomResourceOptions);@overload
def Zone(resource_name: str,
args: ZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Zone(resource_name: str,
opts: Optional[ResourceOptions] = None,
zone_name: Optional[str] = None,
project_name: Optional[str] = None,
remark: Optional[str] = None,
tags: Optional[Sequence[ZoneTagArgs]] = None)func NewZone(ctx *Context, name string, args ZoneArgs, opts ...ResourceOption) (*Zone, error)public Zone(string name, ZoneArgs args, CustomResourceOptions? opts = null)type: volcenginecc:dns:Zone
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 ZoneArgs
- 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 ZoneArgs
- 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 ZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZoneArgs
- 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 zoneResource = new Volcenginecc.Dns.Zone("zoneResource", new()
{
ZoneName = "string",
ProjectName = "string",
Remark = "string",
Tags = new[]
{
new Volcenginecc.Dns.Inputs.ZoneTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := dns.NewZone(ctx, "zoneResource", &dns.ZoneArgs{
ZoneName: pulumi.String("string"),
ProjectName: pulumi.String("string"),
Remark: pulumi.String("string"),
Tags: dns.ZoneTagArray{
&dns.ZoneTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var zoneResource = new Zone("zoneResource", ZoneArgs.builder()
.zoneName("string")
.projectName("string")
.remark("string")
.tags(ZoneTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
zone_resource = volcenginecc.dns.Zone("zoneResource",
zone_name="string",
project_name="string",
remark="string",
tags=[{
"key": "string",
"value": "string",
}])
const zoneResource = new volcenginecc.dns.Zone("zoneResource", {
zoneName: "string",
projectName: "string",
remark: "string",
tags: [{
key: "string",
value: "string",
}],
});
type: volcenginecc:dns:Zone
properties:
projectName: string
remark: string
tags:
- key: string
value: string
zoneName: string
Zone 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 Zone resource accepts the following input properties:
- Zone
Name string - Domain name.
- Project
Name string - Domain project.
- Remark string
- Domain notes
-
List<Volcengine.
Zone Tag>
- Zone
Name string - Domain name.
- Project
Name string - Domain project.
- Remark string
- Domain notes
-
[]Zone
Tag Args
- zone
Name String - Domain name.
- project
Name String - Domain project.
- remark String
- Domain notes
-
List<Zone
Tag>
- zone
Name string - Domain name.
- project
Name string - Domain project.
- remark string
- Domain notes
-
Zone
Tag[]
- zone_
name str - Domain name.
- project_
name str - Domain project.
- remark str
- Domain notes
-
Sequence[Zone
Tag Args]
- zone
Name String - Domain name.
- project
Name String - Domain project.
- remark String
- Domain notes
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Zone resource produces the following output properties:
- Allocate
Dns List<string>Server Lists - List of DNS servers assigned to the domain by Cloud DNS
- Auto
Renew bool - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- Cache
Stage int - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- Created
Time string - Domain creation time.
- Dns
Security string - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- Expired
Time int - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID. For Cloud DNS Free Edition, this field is null.
- Instance
No string - Instance ID. For Cloud DNS Free Edition, this field is null.
- Is
Ns boolCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- Is
Sub boolDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- Last
Operator string - ID of the account that created the domain.
- Real
Dns List<string>Server Lists - List of DNS servers actually used by the domain.
- Record
Count int - Total number of DNS records contained in the domain.
- Stage int
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- Sub
Domain stringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
- Trade
Code string - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- Updated
Time string - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- Zid string
- Domain ID.
- Allocate
Dns []stringServer Lists - List of DNS servers assigned to the domain by Cloud DNS
- Auto
Renew bool - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- Cache
Stage int - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- Created
Time string - Domain creation time.
- Dns
Security string - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- Expired
Time int - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID. For Cloud DNS Free Edition, this field is null.
- Instance
No string - Instance ID. For Cloud DNS Free Edition, this field is null.
- Is
Ns boolCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- Is
Sub boolDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- Last
Operator string - ID of the account that created the domain.
- Real
Dns []stringServer Lists - List of DNS servers actually used by the domain.
- Record
Count int - Total number of DNS records contained in the domain.
- Stage int
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- Sub
Domain stringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
- Trade
Code string - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- Updated
Time string - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- Zid string
- Domain ID.
- allocate
Dns List<String>Server Lists - List of DNS servers assigned to the domain by Cloud DNS
- auto
Renew Boolean - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- cache
Stage Integer - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- created
Time String - Domain creation time.
- dns
Security String - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- expired
Time Integer - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID. For Cloud DNS Free Edition, this field is null.
- instance
No String - Instance ID. For Cloud DNS Free Edition, this field is null.
- is
Ns BooleanCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- is
Sub BooleanDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- last
Operator String - ID of the account that created the domain.
- real
Dns List<String>Server Lists - List of DNS servers actually used by the domain.
- record
Count Integer - Total number of DNS records contained in the domain.
- stage Integer
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- sub
Domain StringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
- trade
Code String - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- updated
Time String - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- zid String
- Domain ID.
- allocate
Dns string[]Server Lists - List of DNS servers assigned to the domain by Cloud DNS
- auto
Renew boolean - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- cache
Stage number - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- created
Time string - Domain creation time.
- dns
Security string - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- expired
Time number - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - Instance ID. For Cloud DNS Free Edition, this field is null.
- instance
No string - Instance ID. For Cloud DNS Free Edition, this field is null.
- is
Ns booleanCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- is
Sub booleanDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- last
Operator string - ID of the account that created the domain.
- real
Dns string[]Server Lists - List of DNS servers actually used by the domain.
- record
Count number - Total number of DNS records contained in the domain.
- stage number
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- sub
Domain stringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
- trade
Code string - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- updated
Time string - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- zid string
- Domain ID.
- allocate_
dns_ Sequence[str]server_ lists - List of DNS servers assigned to the domain by Cloud DNS
- auto_
renew bool - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- cache_
stage int - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- created_
time str - Domain creation time.
- dns_
security str - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- expired_
time int - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - Instance ID. For Cloud DNS Free Edition, this field is null.
- instance_
no str - Instance ID. For Cloud DNS Free Edition, this field is null.
- is_
ns_ boolcorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- is_
sub_ booldomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- last_
operator str - ID of the account that created the domain.
- real_
dns_ Sequence[str]server_ lists - List of DNS servers actually used by the domain.
- record_
count int - Total number of DNS records contained in the domain.
- stage int
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- sub_
domain_ strhost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
- trade_
code str - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- updated_
time str - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- zid str
- Domain ID.
- allocate
Dns List<String>Server Lists - List of DNS servers assigned to the domain by Cloud DNS
- auto
Renew Boolean - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- cache
Stage Number - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- created
Time String - Domain creation time.
- dns
Security String - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- expired
Time Number - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID. For Cloud DNS Free Edition, this field is null.
- instance
No String - Instance ID. For Cloud DNS Free Edition, this field is null.
- is
Ns BooleanCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- is
Sub BooleanDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- last
Operator String - ID of the account that created the domain.
- real
Dns List<String>Server Lists - List of DNS servers actually used by the domain.
- record
Count Number - Total number of DNS records contained in the domain.
- stage Number
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- sub
Domain StringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
- trade
Code String - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- updated
Time String - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- zid String
- Domain ID.
Look up Existing Zone Resource
Get an existing Zone 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?: ZoneState, opts?: CustomResourceOptions): Zone@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocate_dns_server_lists: Optional[Sequence[str]] = None,
auto_renew: Optional[bool] = None,
cache_stage: Optional[int] = None,
created_time: Optional[str] = None,
dns_security: Optional[str] = None,
expired_time: Optional[int] = None,
instance_id: Optional[str] = None,
instance_no: Optional[str] = None,
is_ns_correct: Optional[bool] = None,
is_sub_domain: Optional[bool] = None,
last_operator: Optional[str] = None,
project_name: Optional[str] = None,
real_dns_server_lists: Optional[Sequence[str]] = None,
record_count: Optional[int] = None,
remark: Optional[str] = None,
stage: Optional[int] = None,
sub_domain_host: Optional[str] = None,
tags: Optional[Sequence[ZoneTagArgs]] = None,
trade_code: Optional[str] = None,
updated_time: Optional[str] = None,
zid: Optional[str] = None,
zone_name: Optional[str] = None) -> Zonefunc GetZone(ctx *Context, name string, id IDInput, state *ZoneState, opts ...ResourceOption) (*Zone, error)public static Zone Get(string name, Input<string> id, ZoneState? state, CustomResourceOptions? opts = null)public static Zone get(String name, Output<String> id, ZoneState state, CustomResourceOptions options)resources: _: type: volcenginecc:dns:Zone 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.
- Allocate
Dns List<string>Server Lists - List of DNS servers assigned to the domain by Cloud DNS
- Auto
Renew bool - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- Cache
Stage int - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- Created
Time string - Domain creation time.
- Dns
Security string - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- Expired
Time int - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- Instance
Id string - Instance ID. For Cloud DNS Free Edition, this field is null.
- Instance
No string - Instance ID. For Cloud DNS Free Edition, this field is null.
- Is
Ns boolCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- Is
Sub boolDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- Last
Operator string - ID of the account that created the domain.
- Project
Name string - Domain project.
- Real
Dns List<string>Server Lists - List of DNS servers actually used by the domain.
- Record
Count int - Total number of DNS records contained in the domain.
- Remark string
- Domain notes
- Stage int
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- Sub
Domain stringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
List<Volcengine.
Zone Tag> - Trade
Code string - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- Updated
Time string - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- Zid string
- Domain ID.
- Zone
Name string - Domain name.
- Allocate
Dns []stringServer Lists - List of DNS servers assigned to the domain by Cloud DNS
- Auto
Renew bool - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- Cache
Stage int - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- Created
Time string - Domain creation time.
- Dns
Security string - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- Expired
Time int - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- Instance
Id string - Instance ID. For Cloud DNS Free Edition, this field is null.
- Instance
No string - Instance ID. For Cloud DNS Free Edition, this field is null.
- Is
Ns boolCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- Is
Sub boolDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- Last
Operator string - ID of the account that created the domain.
- Project
Name string - Domain project.
- Real
Dns []stringServer Lists - List of DNS servers actually used by the domain.
- Record
Count int - Total number of DNS records contained in the domain.
- Remark string
- Domain notes
- Stage int
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- Sub
Domain stringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
[]Zone
Tag Args - Trade
Code string - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- Updated
Time string - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- Zid string
- Domain ID.
- Zone
Name string - Domain name.
- allocate
Dns List<String>Server Lists - List of DNS servers assigned to the domain by Cloud DNS
- auto
Renew Boolean - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- cache
Stage Integer - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- created
Time String - Domain creation time.
- dns
Security String - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- expired
Time Integer - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- instance
Id String - Instance ID. For Cloud DNS Free Edition, this field is null.
- instance
No String - Instance ID. For Cloud DNS Free Edition, this field is null.
- is
Ns BooleanCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- is
Sub BooleanDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- last
Operator String - ID of the account that created the domain.
- project
Name String - Domain project.
- real
Dns List<String>Server Lists - List of DNS servers actually used by the domain.
- record
Count Integer - Total number of DNS records contained in the domain.
- remark String
- Domain notes
- stage Integer
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- sub
Domain StringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
List<Zone
Tag> - trade
Code String - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- updated
Time String - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- zid String
- Domain ID.
- zone
Name String - Domain name.
- allocate
Dns string[]Server Lists - List of DNS servers assigned to the domain by Cloud DNS
- auto
Renew boolean - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- cache
Stage number - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- created
Time string - Domain creation time.
- dns
Security string - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- expired
Time number - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- instance
Id string - Instance ID. For Cloud DNS Free Edition, this field is null.
- instance
No string - Instance ID. For Cloud DNS Free Edition, this field is null.
- is
Ns booleanCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- is
Sub booleanDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- last
Operator string - ID of the account that created the domain.
- project
Name string - Domain project.
- real
Dns string[]Server Lists - List of DNS servers actually used by the domain.
- record
Count number - Total number of DNS records contained in the domain.
- remark string
- Domain notes
- stage number
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- sub
Domain stringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
Zone
Tag[] - trade
Code string - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- updated
Time string - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- zid string
- Domain ID.
- zone
Name string - Domain name.
- allocate_
dns_ Sequence[str]server_ lists - List of DNS servers assigned to the domain by Cloud DNS
- auto_
renew bool - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- cache_
stage int - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- created_
time str - Domain creation time.
- dns_
security str - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- expired_
time int - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- instance_
id str - Instance ID. For Cloud DNS Free Edition, this field is null.
- instance_
no str - Instance ID. For Cloud DNS Free Edition, this field is null.
- is_
ns_ boolcorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- is_
sub_ booldomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- last_
operator str - ID of the account that created the domain.
- project_
name str - Domain project.
- real_
dns_ Sequence[str]server_ lists - List of DNS servers actually used by the domain.
- record_
count int - Total number of DNS records contained in the domain.
- remark str
- Domain notes
- stage int
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- sub_
domain_ strhost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
Sequence[Zone
Tag Args] - trade_
code str - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- updated_
time str - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- zid str
- Domain ID.
- zone_
name str - Domain name.
- allocate
Dns List<String>Server Lists - List of DNS servers assigned to the domain by Cloud DNS
- auto
Renew Boolean - Whether domain auto-renewal is enabled. true: Auto-renewal enabled. false: Auto-renewal disabled.
- cache
Stage Number - Domain ownership status. This parameter has the following values: 0: You are the domain owner. After adding this domain, you can manage its DNS resolution. 1: You are not the domain owner. After adding this domain, its status is 'domain reclaim pending.' To manage DNS resolution, you must verify domain ownership in the console as prompted.
- created
Time String - Domain creation time.
- dns
Security String - Version of DNS DDoS protection service. dnssecuritystandard_inner: Standard protection edition. "": No protection edition.
- expired
Time Number - Instance expiration time. Format is Unix timestamp. For Cloud DNS Free Edition, this field is null.
- instance
Id String - Instance ID. For Cloud DNS Free Edition, this field is null.
- instance
No String - Instance ID. For Cloud DNS Free Edition, this field is null.
- is
Ns BooleanCorrect - Whether the DNS server configuration is correct. If configured correctly, the domain status in Cloud DNS is Normal. This parameter has the following values: true: The DNS server list in RealDNSServerList includes all DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is correct. false: The DNS server list in RealDNSServerList includes only some or none of the DNS servers in AllocateDNSServerList. In this case, the DNS server configuration is incorrect.
- is
Sub BooleanDomain - Whether it is a subdomain. true: Subdomain. false: Primary domain.
- last
Operator String - ID of the account that created the domain.
- project
Name String - Domain project.
- real
Dns List<String>Server Lists - List of DNS servers actually used by the domain.
- record
Count Number - Total number of DNS records contained in the domain.
- remark String
- Domain notes
- stage Number
- Domain status. This parameter has the following values: 0: Normal. In this state, the domain's DNS resolution records are active. 1: Domain reclaim pending. In this state, the domain's DNS resolution records are inactive. This status indicates you are not the owner of the domain. If you need to manage DNS resolution, you must verify domain ownership. 2: TrafficRoute not used for resolution. In this state, the domain's DNS resolution records are inactive. This status means the DNS server assigned to the domain is not a Cloud DNS server. 3: Abnormal. In this state, the domain's DNS resolution records are inactive. Common causes for this status include: the domain is disabled by the registry or registrar due to lack of real-name verification; DNS server not configured; domain not registered; API timeout when querying the domain, possibly due to network issues. 5: Please change DNS server. This status means you need to update the domain's DNS server to the newly assigned Cloud DNS server due to service upgrade or change.
- sub
Domain StringHost - Prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
- List<Property Map>
- trade
Code String - Domain feature version. This parameter has the following values: freeinner: Free Edition; professionalinner: Professional Edition; enterpriseinner: Enterprise Edition; ultimateinner: Flagship Edition; ultimateexclusiveinner: Premium Edition.
- updated
Time String - Last update time for the domain. Update operations include: updating domain remarks, creating DNS records under the domain.
- zid String
- Domain ID.
- zone
Name String - Domain name.
Supporting Types
ZoneTag, ZoneTagArgs
Import
$ pulumi import volcenginecc:dns/zone:Zone 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 Thursday, Apr 23, 2026 by Volcengine
