Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of dns zones
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.dns.getZones({
tags: [{
key: "xx",
values: ["xx"],
}],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.dns.get_zones(tags=[volcengine.dns.GetZonesTagArgs(
key="xx",
values=["xx"],
)])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/dns"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dns.GetZones(ctx, &dns.GetZonesArgs{
Tags: []dns.GetZonesTag{
{
Key: "xx",
Values: []string{
"xx",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Dns.GetZones.Invoke(new()
{
Tags = new[]
{
new Volcengine.Dns.Inputs.GetZonesTagInputArgs
{
Key = "xx",
Values = new[]
{
"xx",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.dns.DnsFunctions;
import com.pulumi.volcengine.dns.inputs.GetZonesArgs;
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) {
final var foo = DnsFunctions.getZones(GetZonesArgs.builder()
.tags(GetZonesTagArgs.builder()
.key("xx")
.values("xx")
.build())
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:dns:getZones
Arguments:
tags:
- key: xx
values:
- xx
Using getZones
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
function getZonesOutput(args: GetZonesOutputArgs, opts?: InvokeOptions): Output<GetZonesResult>def get_zones(key: Optional[str] = None,
name_regex: Optional[str] = None,
order_key: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
search_mode: Optional[str] = None,
search_order: Optional[str] = None,
stage: Optional[str] = None,
tags: Optional[Sequence[GetZonesTag]] = None,
trade_code: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZonesResult
def get_zones_output(key: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
order_key: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
search_mode: Optional[pulumi.Input[str]] = None,
search_order: Optional[pulumi.Input[str]] = None,
stage: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetZonesTagArgs]]]] = None,
trade_code: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZonesResult]func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
func GetZonesOutput(ctx *Context, args *GetZonesOutputArgs, opts ...InvokeOption) GetZonesResultOutput> Note: This function is named GetZones in the Go SDK.
public static class GetZones
{
public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args, InvokeOptions? opts = null)
public static Output<GetZonesResult> Invoke(GetZonesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZonesResult> getZones(GetZonesArgs args, InvokeOptions options)
public static Output<GetZonesResult> getZones(GetZonesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:dns/getZones:getZones
arguments:
# arguments dictionaryThe following arguments are supported:
- Key string
- The keyword included in domains.
- Name
Regex string - A Name Regex of Resource.
- Order
Key string - The key for sorting the results.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the domain.
- Search
Mode string - The matching mode for the Key parameter.
- Search
Order string - The sorting order of the results.
- Stage string
- The status of the domain.
-
List<Get
Zones Tag> - Tags.
- Trade
Code string - The edition of the domain.
- Key string
- The keyword included in domains.
- Name
Regex string - A Name Regex of Resource.
- Order
Key string - The key for sorting the results.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the domain.
- Search
Mode string - The matching mode for the Key parameter.
- Search
Order string - The sorting order of the results.
- Stage string
- The status of the domain.
-
[]Get
Zones Tag - Tags.
- Trade
Code string - The edition of the domain.
- key String
- The keyword included in domains.
- name
Regex String - A Name Regex of Resource.
- order
Key String - The key for sorting the results.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the domain.
- search
Mode String - The matching mode for the Key parameter.
- search
Order String - The sorting order of the results.
- stage String
- The status of the domain.
-
List<Get
Zones Tag> - Tags.
- trade
Code String - The edition of the domain.
- key string
- The keyword included in domains.
- name
Regex string - A Name Regex of Resource.
- order
Key string - The key for sorting the results.
- output
File string - File name where to save data source results.
- project
Name string - The ProjectName of the domain.
- search
Mode string - The matching mode for the Key parameter.
- search
Order string - The sorting order of the results.
- stage string
- The status of the domain.
-
Get
Zones Tag[] - Tags.
- trade
Code string - The edition of the domain.
- key str
- The keyword included in domains.
- name_
regex str - A Name Regex of Resource.
- order_
key str - The key for sorting the results.
- output_
file str - File name where to save data source results.
- project_
name str - The ProjectName of the domain.
- search_
mode str - The matching mode for the Key parameter.
- search_
order str - The sorting order of the results.
- stage str
- The status of the domain.
-
Sequence[Get
Zones Tag] - Tags.
- trade_
code str - The edition of the domain.
- key String
- The keyword included in domains.
- name
Regex String - A Name Regex of Resource.
- order
Key String - The key for sorting the results.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the domain.
- search
Mode String - The matching mode for the Key parameter.
- search
Order String - The sorting order of the results.
- stage String
- The status of the domain.
- List<Property Map>
- Tags.
- trade
Code String - The edition of the domain.
getZones Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Zones
List<Get
Zones Zone> - The collection of query.
- Key string
- The Key of Tags.
- Name
Regex string - Order
Key string - Output
File string - Project
Name string - The ProjectName of the domain.
- Search
Mode string - Search
Order string - Stage string
- The status of the domain.
-
List<Get
Zones Tag> - Tags.
- Trade
Code string - The edition of the domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Zones
[]Get
Zones Zone - The collection of query.
- Key string
- The Key of Tags.
- Name
Regex string - Order
Key string - Output
File string - Project
Name string - The ProjectName of the domain.
- Search
Mode string - Search
Order string - Stage string
- The status of the domain.
-
[]Get
Zones Tag - Tags.
- Trade
Code string - The edition of the domain.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- zones
List<Get
Zones Zone> - The collection of query.
- key String
- The Key of Tags.
- name
Regex String - order
Key String - output
File String - project
Name String - The ProjectName of the domain.
- search
Mode String - search
Order String - stage String
- The status of the domain.
-
List<Get
Zones Tag> - Tags.
- trade
Code String - The edition of the domain.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- zones
Get
Zones Zone[] - The collection of query.
- key string
- The Key of Tags.
- name
Regex string - order
Key string - output
File string - project
Name string - The ProjectName of the domain.
- search
Mode string - search
Order string - stage string
- The status of the domain.
-
Get
Zones Tag[] - Tags.
- trade
Code string - The edition of the domain.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- zones
Sequence[Get
Zones Zone] - The collection of query.
- key str
- The Key of Tags.
- name_
regex str - order_
key str - output_
file str - project_
name str - The ProjectName of the domain.
- search_
mode str - search_
order str - stage str
- The status of the domain.
-
Sequence[Get
Zones Tag] - Tags.
- trade_
code str - The edition of the domain.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- zones List<Property Map>
- The collection of query.
- key String
- The Key of Tags.
- name
Regex String - order
Key String - output
File String - project
Name String - The ProjectName of the domain.
- search
Mode String - search
Order String - stage String
- The status of the domain.
- List<Property Map>
- Tags.
- trade
Code String - The edition of the domain.
Supporting Types
GetZonesTag
GetZonesZone
- Allocate
Dns List<string>Server Lists - The list of DNS servers allocated to the domain by BytePlus DNS.
- Auto
Renew bool - Whether automatic domain renewal is enabled.
- Cache
Stage int - The most recent update time of the domain.
- Created
At string - The creation time of the domain.
- Dns
Security string - The version of DNS DDoS protection service.
- Expired
Time int - The expiration time of the domain.
- Id string
- The id of the zone.
- Instance
Id string - The ID of the instance.
- Instance
No string - The ID of the instance. For free edition, the value of this field is null.
- Is
Ns boolCorrect - Indicates whether the configuration of NS servers is correct. If the configuration is correct, the status of the domain in BytePlus DNS is Active.
- Is
Sub boolDomain - Whether the domain is a subdomain.
- Last
Operator string - The ID of the account that last updated this domain.
- Project
Name string - The ProjectName of the domain.
- Real
Dns List<string>Server Lists - The list of DNS servers actually used by the domain.
- Record
Count int - The total number of DNS records contained in the domain.
- Remark string
- The remarks for the domain.
- Stage int
- The status of the domain.
- Sub
Domain stringHost - The domain prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
List<Get
Zones Zone Tag> - Tags.
- Trade
Code string - The edition of the domain.
- Updated
At string - The most recent update time of the domain.
- Zid int
- The ID of the domain.
- Zone
Name string - The domain name.
- Allocate
Dns []stringServer Lists - The list of DNS servers allocated to the domain by BytePlus DNS.
- Auto
Renew bool - Whether automatic domain renewal is enabled.
- Cache
Stage int - The most recent update time of the domain.
- Created
At string - The creation time of the domain.
- Dns
Security string - The version of DNS DDoS protection service.
- Expired
Time int - The expiration time of the domain.
- Id string
- The id of the zone.
- Instance
Id string - The ID of the instance.
- Instance
No string - The ID of the instance. For free edition, the value of this field is null.
- Is
Ns boolCorrect - Indicates whether the configuration of NS servers is correct. If the configuration is correct, the status of the domain in BytePlus DNS is Active.
- Is
Sub boolDomain - Whether the domain is a subdomain.
- Last
Operator string - The ID of the account that last updated this domain.
- Project
Name string - The ProjectName of the domain.
- Real
Dns []stringServer Lists - The list of DNS servers actually used by the domain.
- Record
Count int - The total number of DNS records contained in the domain.
- Remark string
- The remarks for the domain.
- Stage int
- The status of the domain.
- Sub
Domain stringHost - The domain prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
[]Get
Zones Zone Tag - Tags.
- Trade
Code string - The edition of the domain.
- Updated
At string - The most recent update time of the domain.
- Zid int
- The ID of the domain.
- Zone
Name string - The domain name.
- allocate
Dns List<String>Server Lists - The list of DNS servers allocated to the domain by BytePlus DNS.
- auto
Renew Boolean - Whether automatic domain renewal is enabled.
- cache
Stage Integer - The most recent update time of the domain.
- created
At String - The creation time of the domain.
- dns
Security String - The version of DNS DDoS protection service.
- expired
Time Integer - The expiration time of the domain.
- id String
- The id of the zone.
- instance
Id String - The ID of the instance.
- instance
No String - The ID of the instance. For free edition, the value of this field is null.
- is
Ns BooleanCorrect - Indicates whether the configuration of NS servers is correct. If the configuration is correct, the status of the domain in BytePlus DNS is Active.
- is
Sub BooleanDomain - Whether the domain is a subdomain.
- last
Operator String - The ID of the account that last updated this domain.
- project
Name String - The ProjectName of the domain.
- real
Dns List<String>Server Lists - The list of DNS servers actually used by the domain.
- record
Count Integer - The total number of DNS records contained in the domain.
- remark String
- The remarks for the domain.
- stage Integer
- The status of the domain.
- sub
Domain StringHost - The domain prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
List<Get
Zones Zone Tag> - Tags.
- trade
Code String - The edition of the domain.
- updated
At String - The most recent update time of the domain.
- zid Integer
- The ID of the domain.
- zone
Name String - The domain name.
- allocate
Dns string[]Server Lists - The list of DNS servers allocated to the domain by BytePlus DNS.
- auto
Renew boolean - Whether automatic domain renewal is enabled.
- cache
Stage number - The most recent update time of the domain.
- created
At string - The creation time of the domain.
- dns
Security string - The version of DNS DDoS protection service.
- expired
Time number - The expiration time of the domain.
- id string
- The id of the zone.
- instance
Id string - The ID of the instance.
- instance
No string - The ID of the instance. For free edition, the value of this field is null.
- is
Ns booleanCorrect - Indicates whether the configuration of NS servers is correct. If the configuration is correct, the status of the domain in BytePlus DNS is Active.
- is
Sub booleanDomain - Whether the domain is a subdomain.
- last
Operator string - The ID of the account that last updated this domain.
- project
Name string - The ProjectName of the domain.
- real
Dns string[]Server Lists - The list of DNS servers actually used by the domain.
- record
Count number - The total number of DNS records contained in the domain.
- remark string
- The remarks for the domain.
- stage number
- The status of the domain.
- sub
Domain stringHost - The domain prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
Get
Zones Zone Tag[] - Tags.
- trade
Code string - The edition of the domain.
- updated
At string - The most recent update time of the domain.
- zid number
- The ID of the domain.
- zone
Name string - The domain name.
- allocate_
dns_ Sequence[str]server_ lists - The list of DNS servers allocated to the domain by BytePlus DNS.
- auto_
renew bool - Whether automatic domain renewal is enabled.
- cache_
stage int - The most recent update time of the domain.
- created_
at str - The creation time of the domain.
- dns_
security str - The version of DNS DDoS protection service.
- expired_
time int - The expiration time of the domain.
- id str
- The id of the zone.
- instance_
id str - The ID of the instance.
- instance_
no str - The ID of the instance. For free edition, the value of this field is null.
- is_
ns_ boolcorrect - Indicates whether the configuration of NS servers is correct. If the configuration is correct, the status of the domain in BytePlus DNS is Active.
- is_
sub_ booldomain - Whether the domain is a subdomain.
- last_
operator str - The ID of the account that last updated this domain.
- project_
name str - The ProjectName of the domain.
- real_
dns_ Sequence[str]server_ lists - The list of DNS servers actually used by the domain.
- record_
count int - The total number of DNS records contained in the domain.
- remark str
- The remarks for the domain.
- stage int
- The status of the domain.
- sub_
domain_ strhost - The domain prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
-
Sequence[Get
Zones Zone Tag] - Tags.
- trade_
code str - The edition of the domain.
- updated_
at str - The most recent update time of the domain.
- zid int
- The ID of the domain.
- zone_
name str - The domain name.
- allocate
Dns List<String>Server Lists - The list of DNS servers allocated to the domain by BytePlus DNS.
- auto
Renew Boolean - Whether automatic domain renewal is enabled.
- cache
Stage Number - The most recent update time of the domain.
- created
At String - The creation time of the domain.
- dns
Security String - The version of DNS DDoS protection service.
- expired
Time Number - The expiration time of the domain.
- id String
- The id of the zone.
- instance
Id String - The ID of the instance.
- instance
No String - The ID of the instance. For free edition, the value of this field is null.
- is
Ns BooleanCorrect - Indicates whether the configuration of NS servers is correct. If the configuration is correct, the status of the domain in BytePlus DNS is Active.
- is
Sub BooleanDomain - Whether the domain is a subdomain.
- last
Operator String - The ID of the account that last updated this domain.
- project
Name String - The ProjectName of the domain.
- real
Dns List<String>Server Lists - The list of DNS servers actually used by the domain.
- record
Count Number - The total number of DNS records contained in the domain.
- remark String
- The remarks for the domain.
- stage Number
- The status of the domain.
- sub
Domain StringHost - The domain prefix of the subdomain. If the domain is not a subdomain, this parameter is null.
- List<Property Map>
- Tags.
- trade
Code String - The edition of the domain.
- updated
At String - The most recent update time of the domain.
- zid Number
- The ID of the domain.
- zone
Name String - The domain name.
GetZonesZoneTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
