Viewing docs for tencentcloud 1.82.86
published on Tuesday, Apr 14, 2026 by tencentcloudstack
published on Tuesday, Apr 14, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.86
published on Tuesday, Apr 14, 2026 by tencentcloudstack
published on Tuesday, Apr 14, 2026 by tencentcloudstack
Use this data source to query availability zones supported by a cloud product.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getZones({
product: "cvm",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_zones(product="cvm")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetZones(ctx, &tencentcloud.GetZonesArgs{
Product: "cvm",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetZones.Invoke(new()
{
Product = "cvm",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.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 example = TencentcloudFunctions.getZones(GetZonesArgs.builder()
.product("cvm")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getZones
arguments:
product: cvm
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(id: Optional[str] = None,
product: Optional[str] = None,
result_output_file: Optional[str] = None,
scene: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetZonesResult
def get_zones_output(id: Optional[pulumi.Input[str]] = None,
product: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
scene: Optional[pulumi.Input[float]] = 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: tencentcloud:index/getZones:getZones
arguments:
# arguments dictionaryThe following arguments are supported:
- Product string
- Product name to query, e.g.
cvm. Usetencentcloud.getProductsto get available product names. - Id string
- Result
Output stringFile - Used to save results.
- Scene double
- Scene control parameter.
0or not set means do not query optional business whitelist;1means query optional business whitelist.
- Product string
- Product name to query, e.g.
cvm. Usetencentcloud.getProductsto get available product names. - Id string
- Result
Output stringFile - Used to save results.
- Scene float64
- Scene control parameter.
0or not set means do not query optional business whitelist;1means query optional business whitelist.
- product String
- Product name to query, e.g.
cvm. Usetencentcloud.getProductsto get available product names. - id String
- result
Output StringFile - Used to save results.
- scene Double
- Scene control parameter.
0or not set means do not query optional business whitelist;1means query optional business whitelist.
- product string
- Product name to query, e.g.
cvm. Usetencentcloud.getProductsto get available product names. - id string
- result
Output stringFile - Used to save results.
- scene number
- Scene control parameter.
0or not set means do not query optional business whitelist;1means query optional business whitelist.
- product str
- Product name to query, e.g.
cvm. Usetencentcloud.getProductsto get available product names. - id str
- result_
output_ strfile - Used to save results.
- scene float
- Scene control parameter.
0or not set means do not query optional business whitelist;1means query optional business whitelist.
- product String
- Product name to query, e.g.
cvm. Usetencentcloud.getProductsto get available product names. - id String
- result
Output StringFile - Used to save results.
- scene Number
- Scene control parameter.
0or not set means do not query optional business whitelist;1means query optional business whitelist.
getZones Result
The following output properties are available:
- Id string
- Product string
- Zone
Lists List<GetZones Zone List> - Zone list.
- Result
Output stringFile - Scene double
- Id string
- Product string
- Zone
Lists []GetZones Zone List - Zone list.
- Result
Output stringFile - Scene float64
- id String
- product String
- zone
Lists List<GetZones Zone List> - Zone list.
- result
Output StringFile - scene Double
- id string
- product string
- zone
Lists GetZones Zone List[] - Zone list.
- result
Output stringFile - scene number
- id str
- product str
- zone_
lists Sequence[GetZones Zone List] - Zone list.
- result_
output_ strfile - scene float
- id String
- product String
- zone
Lists List<Property Map> - Zone list.
- result
Output StringFile - scene Number
Supporting Types
GetZonesZoneList
- Parent
Zone string - Parent zone identifier.
- Parent
Zone stringId - Parent zone ID.
- Parent
Zone stringName - Parent zone description.
- Zone string
- Zone name, e.g.
ap-guangzhou-3. - Zone
Id string - Zone ID.
- Zone
Name string - Zone description, e.g.
Guangzhou Zone 3. - Zone
State string - Zone status,
AVAILABLEorUNAVAILABLE. - Zone
Type string - Zone type.
- Parent
Zone string - Parent zone identifier.
- Parent
Zone stringId - Parent zone ID.
- Parent
Zone stringName - Parent zone description.
- Zone string
- Zone name, e.g.
ap-guangzhou-3. - Zone
Id string - Zone ID.
- Zone
Name string - Zone description, e.g.
Guangzhou Zone 3. - Zone
State string - Zone status,
AVAILABLEorUNAVAILABLE. - Zone
Type string - Zone type.
- parent
Zone String - Parent zone identifier.
- parent
Zone StringId - Parent zone ID.
- parent
Zone StringName - Parent zone description.
- zone String
- Zone name, e.g.
ap-guangzhou-3. - zone
Id String - Zone ID.
- zone
Name String - Zone description, e.g.
Guangzhou Zone 3. - zone
State String - Zone status,
AVAILABLEorUNAVAILABLE. - zone
Type String - Zone type.
- parent
Zone string - Parent zone identifier.
- parent
Zone stringId - Parent zone ID.
- parent
Zone stringName - Parent zone description.
- zone string
- Zone name, e.g.
ap-guangzhou-3. - zone
Id string - Zone ID.
- zone
Name string - Zone description, e.g.
Guangzhou Zone 3. - zone
State string - Zone status,
AVAILABLEorUNAVAILABLE. - zone
Type string - Zone type.
- parent_
zone str - Parent zone identifier.
- parent_
zone_ strid - Parent zone ID.
- parent_
zone_ strname - Parent zone description.
- zone str
- Zone name, e.g.
ap-guangzhou-3. - zone_
id str - Zone ID.
- zone_
name str - Zone description, e.g.
Guangzhou Zone 3. - zone_
state str - Zone status,
AVAILABLEorUNAVAILABLE. - zone_
type str - Zone type.
- parent
Zone String - Parent zone identifier.
- parent
Zone StringId - Parent zone ID.
- parent
Zone StringName - Parent zone description.
- zone String
- Zone name, e.g.
ap-guangzhou-3. - zone
Id String - Zone ID.
- zone
Name String - Zone description, e.g.
Guangzhou Zone 3. - zone
State String - Zone status,
AVAILABLEorUNAVAILABLE. - zone
Type String - Zone type.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
Viewing docs for tencentcloud 1.82.86
published on Tuesday, Apr 14, 2026 by tencentcloudstack
published on Tuesday, Apr 14, 2026 by tencentcloudstack
