Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine
volcengine.private_zone.getPrivateZones
Explore with Pulumi AI
Use this data source to query detailed information of private zones
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.private_zone.getPrivateZones({
lineMode: 3,
recursionMode: true,
searchMode: "EXACT",
zid: 770000,
zoneName: "volces.com",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.private_zone.get_private_zones(line_mode=3,
recursion_mode=True,
search_mode="EXACT",
zid=770000,
zone_name="volces.com")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/private_zone"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := private_zone.GetPrivateZones(ctx, &private_zone.GetPrivateZonesArgs{
LineMode: pulumi.IntRef(3),
RecursionMode: pulumi.BoolRef(true),
SearchMode: pulumi.StringRef("EXACT"),
Zid: pulumi.IntRef(770000),
ZoneName: pulumi.StringRef("volces.com"),
}, 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.Private_zone.GetPrivateZones.Invoke(new()
{
LineMode = 3,
RecursionMode = true,
SearchMode = "EXACT",
Zid = 770000,
ZoneName = "volces.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.private_zone.Private_zoneFunctions;
import com.pulumi.volcengine.private_zone.inputs.GetPrivateZonesArgs;
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 = Private_zoneFunctions.getPrivateZones(GetPrivateZonesArgs.builder()
.lineMode(3)
.recursionMode(true)
.searchMode("EXACT")
.zid(770000)
.zoneName("volces.com")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:private_zone:getPrivateZones
Arguments:
lineMode: 3
recursionMode: true
searchMode: EXACT
zid: 770000
zoneName: volces.com
Using getPrivateZones
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 getPrivateZones(args: GetPrivateZonesArgs, opts?: InvokeOptions): Promise<GetPrivateZonesResult>
function getPrivateZonesOutput(args: GetPrivateZonesOutputArgs, opts?: InvokeOptions): Output<GetPrivateZonesResult>
def get_private_zones(line_mode: Optional[int] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
recursion_mode: Optional[bool] = None,
region: Optional[str] = None,
search_mode: Optional[str] = None,
vpc_id: Optional[str] = None,
zid: Optional[int] = None,
zone_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivateZonesResult
def get_private_zones_output(line_mode: Optional[pulumi.Input[int]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
recursion_mode: Optional[pulumi.Input[bool]] = None,
region: Optional[pulumi.Input[str]] = None,
search_mode: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
zid: Optional[pulumi.Input[int]] = None,
zone_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivateZonesResult]
func GetPrivateZones(ctx *Context, args *GetPrivateZonesArgs, opts ...InvokeOption) (*GetPrivateZonesResult, error)
func GetPrivateZonesOutput(ctx *Context, args *GetPrivateZonesOutputArgs, opts ...InvokeOption) GetPrivateZonesResultOutput
> Note: This function is named GetPrivateZones
in the Go SDK.
public static class GetPrivateZones
{
public static Task<GetPrivateZonesResult> InvokeAsync(GetPrivateZonesArgs args, InvokeOptions? opts = null)
public static Output<GetPrivateZonesResult> Invoke(GetPrivateZonesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrivateZonesResult> getPrivateZones(GetPrivateZonesArgs args, InvokeOptions options)
public static Output<GetPrivateZonesResult> getPrivateZones(GetPrivateZonesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:private_zone/getPrivateZones:getPrivateZones
arguments:
# arguments dictionary
The following arguments are supported:
- Line
Mode int - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Recursion
Mode bool - Whether the recursion mode of Private Zone is enabled.
- Region string
- The region of Private Zone.
- Search
Mode string - The search mode of query. Valid values:
LIKE
,EXACT
. Default isLIKE
. - Vpc
Id string - The vpc id associated to Private Zone.
- Zid int
- The zid of Private Zone.
- Zone
Name string - The name of Private Zone.
- Line
Mode int - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Recursion
Mode bool - Whether the recursion mode of Private Zone is enabled.
- Region string
- The region of Private Zone.
- Search
Mode string - The search mode of query. Valid values:
LIKE
,EXACT
. Default isLIKE
. - Vpc
Id string - The vpc id associated to Private Zone.
- Zid int
- The zid of Private Zone.
- Zone
Name string - The name of Private Zone.
- line
Mode Integer - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- recursion
Mode Boolean - Whether the recursion mode of Private Zone is enabled.
- region String
- The region of Private Zone.
- search
Mode String - The search mode of query. Valid values:
LIKE
,EXACT
. Default isLIKE
. - vpc
Id String - The vpc id associated to Private Zone.
- zid Integer
- The zid of Private Zone.
- zone
Name String - The name of Private Zone.
- line
Mode number - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- recursion
Mode boolean - Whether the recursion mode of Private Zone is enabled.
- region string
- The region of Private Zone.
- search
Mode string - The search mode of query. Valid values:
LIKE
,EXACT
. Default isLIKE
. - vpc
Id string - The vpc id associated to Private Zone.
- zid number
- The zid of Private Zone.
- zone
Name string - The name of Private Zone.
- line_
mode int - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- recursion_
mode bool - Whether the recursion mode of Private Zone is enabled.
- region str
- The region of Private Zone.
- search_
mode str - The search mode of query. Valid values:
LIKE
,EXACT
. Default isLIKE
. - vpc_
id str - The vpc id associated to Private Zone.
- zid int
- The zid of Private Zone.
- zone_
name str - The name of Private Zone.
- line
Mode Number - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- recursion
Mode Boolean - Whether the recursion mode of Private Zone is enabled.
- region String
- The region of Private Zone.
- search
Mode String - The search mode of query. Valid values:
LIKE
,EXACT
. Default isLIKE
. - vpc
Id String - The vpc id associated to Private Zone.
- zid Number
- The zid of Private Zone.
- zone
Name String - The name of Private Zone.
getPrivateZones Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Zones List<GetPrivate Zones Private Zone> - The collection of query.
- Total
Count int - The total count of query.
- Line
Mode int - The line mode of the private zone, specified whether the intelligent mode and the load balance function is enabled.
- Name
Regex string - Output
File string - Recursion
Mode bool - Whether the recursion mode of the private zone is enabled.
- Region string
- The region of the private zone.
- Search
Mode string - Vpc
Id string - Zid int
- The id of the private zone.
- Zone
Name string - The id of the private zone.
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Zones []GetPrivate Zones Private Zone - The collection of query.
- Total
Count int - The total count of query.
- Line
Mode int - The line mode of the private zone, specified whether the intelligent mode and the load balance function is enabled.
- Name
Regex string - Output
File string - Recursion
Mode bool - Whether the recursion mode of the private zone is enabled.
- Region string
- The region of the private zone.
- Search
Mode string - Vpc
Id string - Zid int
- The id of the private zone.
- Zone
Name string - The id of the private zone.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Zones List<GetPrivate Zones Private Zone> - The collection of query.
- total
Count Integer - The total count of query.
- line
Mode Integer - The line mode of the private zone, specified whether the intelligent mode and the load balance function is enabled.
- name
Regex String - output
File String - recursion
Mode Boolean - Whether the recursion mode of the private zone is enabled.
- region String
- The region of the private zone.
- search
Mode String - vpc
Id String - zid Integer
- The id of the private zone.
- zone
Name String - The id of the private zone.
- id string
- The provider-assigned unique ID for this managed resource.
- private
Zones GetPrivate Zones Private Zone[] - The collection of query.
- total
Count number - The total count of query.
- line
Mode number - The line mode of the private zone, specified whether the intelligent mode and the load balance function is enabled.
- name
Regex string - output
File string - recursion
Mode boolean - Whether the recursion mode of the private zone is enabled.
- region string
- The region of the private zone.
- search
Mode string - vpc
Id string - zid number
- The id of the private zone.
- zone
Name string - The id of the private zone.
- id str
- The provider-assigned unique ID for this managed resource.
- private_
zones Sequence[GetPrivate Zones Private Zone] - The collection of query.
- total_
count int - The total count of query.
- line_
mode int - The line mode of the private zone, specified whether the intelligent mode and the load balance function is enabled.
- name_
regex str - output_
file str - recursion_
mode bool - Whether the recursion mode of the private zone is enabled.
- region str
- The region of the private zone.
- search_
mode str - vpc_
id str - zid int
- The id of the private zone.
- zone_
name str - The id of the private zone.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Zones List<Property Map> - The collection of query.
- total
Count Number - The total count of query.
- line
Mode Number - The line mode of the private zone, specified whether the intelligent mode and the load balance function is enabled.
- name
Regex String - output
File String - recursion
Mode Boolean - Whether the recursion mode of the private zone is enabled.
- region String
- The region of the private zone.
- search
Mode String - vpc
Id String - zid Number
- The id of the private zone.
- zone
Name String - The id of the private zone.
Supporting Types
GetPrivateZonesPrivateZone
- Bind
Vpcs List<GetPrivate Zones Private Zone Bind Vpc> - The Bind vpc info of the private zone.
- Created
At string - The created time of the private zone.
- Id string
- The id of the private zone.
- Last
Operator string - The account id of the last operator who created the private zone.
- Line
Mode int - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- Record
Count int - The record count of the private zone.
- Recursion
Mode bool - Whether the recursion mode of Private Zone is enabled.
- Regions List<string>
- The region of Private Zone.
- Remark string
- The remark of the private zone.
- Updated
At string - The updated time of the private zone.
- Zid int
- The zid of Private Zone.
- Zone
Name string - The name of Private Zone.
- Bind
Vpcs []GetPrivate Zones Private Zone Bind Vpc - The Bind vpc info of the private zone.
- Created
At string - The created time of the private zone.
- Id string
- The id of the private zone.
- Last
Operator string - The account id of the last operator who created the private zone.
- Line
Mode int - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- Record
Count int - The record count of the private zone.
- Recursion
Mode bool - Whether the recursion mode of Private Zone is enabled.
- Regions []string
- The region of Private Zone.
- Remark string
- The remark of the private zone.
- Updated
At string - The updated time of the private zone.
- Zid int
- The zid of Private Zone.
- Zone
Name string - The name of Private Zone.
- bind
Vpcs List<GetPrivate Zones Private Zone Bind Vpc> - The Bind vpc info of the private zone.
- created
At String - The created time of the private zone.
- id String
- The id of the private zone.
- last
Operator String - The account id of the last operator who created the private zone.
- line
Mode Integer - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- record
Count Integer - The record count of the private zone.
- recursion
Mode Boolean - Whether the recursion mode of Private Zone is enabled.
- regions List<String>
- The region of Private Zone.
- remark String
- The remark of the private zone.
- updated
At String - The updated time of the private zone.
- zid Integer
- The zid of Private Zone.
- zone
Name String - The name of Private Zone.
- bind
Vpcs GetPrivate Zones Private Zone Bind Vpc[] - The Bind vpc info of the private zone.
- created
At string - The created time of the private zone.
- id string
- The id of the private zone.
- last
Operator string - The account id of the last operator who created the private zone.
- line
Mode number - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- record
Count number - The record count of the private zone.
- recursion
Mode boolean - Whether the recursion mode of Private Zone is enabled.
- regions string[]
- The region of Private Zone.
- remark string
- The remark of the private zone.
- updated
At string - The updated time of the private zone.
- zid number
- The zid of Private Zone.
- zone
Name string - The name of Private Zone.
- bind_
vpcs Sequence[GetPrivate Zones Private Zone Bind Vpc] - The Bind vpc info of the private zone.
- created_
at str - The created time of the private zone.
- id str
- The id of the private zone.
- last_
operator str - The account id of the last operator who created the private zone.
- line_
mode int - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- record_
count int - The record count of the private zone.
- recursion_
mode bool - Whether the recursion mode of Private Zone is enabled.
- regions Sequence[str]
- The region of Private Zone.
- remark str
- The remark of the private zone.
- updated_
at str - The updated time of the private zone.
- zid int
- The zid of Private Zone.
- zone_
name str - The name of Private Zone.
- bind
Vpcs List<Property Map> - The Bind vpc info of the private zone.
- created
At String - The created time of the private zone.
- id String
- The id of the private zone.
- last
Operator String - The account id of the last operator who created the private zone.
- line
Mode Number - The line mode of Private Zone, specified whether the intelligent mode and the load balance function is enabled.
- record
Count Number - The record count of the private zone.
- recursion
Mode Boolean - Whether the recursion mode of Private Zone is enabled.
- regions List<String>
- The region of Private Zone.
- remark String
- The remark of the private zone.
- updated
At String - The updated time of the private zone.
- zid Number
- The zid of Private Zone.
- zone
Name String - The name of Private Zone.
GetPrivateZonesPrivateZoneBindVpc
- Account
Id string - The account id of the bind vpc.
- Id string
- The id of the private zone.
- Region string
- The region of Private Zone.
- Region
Name string - The region name of the bind vpc.
- Account
Id string - The account id of the bind vpc.
- Id string
- The id of the private zone.
- Region string
- The region of Private Zone.
- Region
Name string - The region name of the bind vpc.
- account
Id String - The account id of the bind vpc.
- id String
- The id of the private zone.
- region String
- The region of Private Zone.
- region
Name String - The region name of the bind vpc.
- account
Id string - The account id of the bind vpc.
- id string
- The id of the private zone.
- region string
- The region of Private Zone.
- region
Name string - The region name of the bind vpc.
- account_
id str - The account id of the bind vpc.
- id str
- The id of the private zone.
- region str
- The region of Private Zone.
- region_
name str - The region name of the bind vpc.
- account
Id String - The account id of the bind vpc.
- id String
- The id of the private zone.
- region String
- The region of Private Zone.
- region
Name String - The region name of the bind vpc.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.