Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Use this data source to query regions supported by a cloud product.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getRegions({
product: "cvm",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_regions(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.GetRegions(ctx, &tencentcloud.GetRegionsArgs{
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.GetRegions.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.GetRegionsArgs;
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.getRegions(GetRegionsArgs.builder()
.product("cvm")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getRegions
arguments:
product: cvm
Example coming soon!
Using getRegions
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 getRegions(args: GetRegionsArgs, opts?: InvokeOptions): Promise<GetRegionsResult>
function getRegionsOutput(args: GetRegionsOutputArgs, opts?: InvokeOptions): Output<GetRegionsResult>def get_regions(id: Optional[str] = None,
product: Optional[str] = None,
result_output_file: Optional[str] = None,
scene: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetRegionsResult
def get_regions_output(id: pulumi.Input[Optional[str]] = None,
product: pulumi.Input[Optional[str]] = None,
result_output_file: pulumi.Input[Optional[str]] = None,
scene: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegionsResult]func GetRegions(ctx *Context, args *GetRegionsArgs, opts ...InvokeOption) (*GetRegionsResult, error)
func GetRegionsOutput(ctx *Context, args *GetRegionsOutputArgs, opts ...InvokeOption) GetRegionsResultOutput> Note: This function is named GetRegions in the Go SDK.
public static class GetRegions
{
public static Task<GetRegionsResult> InvokeAsync(GetRegionsArgs args, InvokeOptions? opts = null)
public static Output<GetRegionsResult> Invoke(GetRegionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRegionsResult> getRegions(GetRegionsArgs args, InvokeOptions options)
public static Output<GetRegionsResult> getRegions(GetRegionsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getRegions:getRegions
arguments:
# arguments dictionarydata "tencentcloud_getregions" "name" {
# arguments
}The 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 number
- 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.
getRegions Result
The following output properties are available:
- Id string
- Product string
- Region
Lists List<GetRegions Region List> - Region list.
- Result
Output stringFile - Scene double
- Id string
- Product string
- Region
Lists []GetRegions Region List - Region list.
- Result
Output stringFile - Scene float64
- id string
- product string
- region_
lists list(object) - Region list.
- result_
output_ stringfile - scene number
- id String
- product String
- region
Lists List<GetRegions Region List> - Region list.
- result
Output StringFile - scene Double
- id string
- product string
- region
Lists GetRegions Region List[] - Region list.
- result
Output stringFile - scene number
- id str
- product str
- region_
lists Sequence[GetRegions Region List] - Region list.
- result_
output_ strfile - scene float
- id String
- product String
- region
Lists List<Property Map> - Region list.
- result
Output StringFile - scene Number
Supporting Types
GetRegionsRegionList
- Location
MC string - Region description in different languages.
- Region string
- Region identifier, e.g.
ap-guangzhou. - Region
Id stringMC - Region ID for console.
- Region
Name string - Region name, e.g.
South China (Guangzhou). - Region
Name stringMC - Region description displayed in console.
- Region
State string - Region availability status, e.g.
AVAILABLE. - Region
Type doubleMC - Console type, null when called via API.
- Location
MC string - Region description in different languages.
- Region string
- Region identifier, e.g.
ap-guangzhou. - Region
Id stringMC - Region ID for console.
- Region
Name string - Region name, e.g.
South China (Guangzhou). - Region
Name stringMC - Region description displayed in console.
- Region
State string - Region availability status, e.g.
AVAILABLE. - Region
Type float64MC - Console type, null when called via API.
- location_
mc string - Region description in different languages.
- region string
- Region identifier, e.g.
ap-guangzhou. - region_
id_ stringmc - Region ID for console.
- region_
name string - Region name, e.g.
South China (Guangzhou). - region_
name_ stringmc - Region description displayed in console.
- region_
state string - Region availability status, e.g.
AVAILABLE. - region_
type_ numbermc - Console type, null when called via API.
- location
MC String - Region description in different languages.
- region String
- Region identifier, e.g.
ap-guangzhou. - region
Id StringMC - Region ID for console.
- region
Name String - Region name, e.g.
South China (Guangzhou). - region
Name StringMC - Region description displayed in console.
- region
State String - Region availability status, e.g.
AVAILABLE. - region
Type DoubleMC - Console type, null when called via API.
- location
MC string - Region description in different languages.
- region string
- Region identifier, e.g.
ap-guangzhou. - region
Id stringMC - Region ID for console.
- region
Name string - Region name, e.g.
South China (Guangzhou). - region
Name stringMC - Region description displayed in console.
- region
State string - Region availability status, e.g.
AVAILABLE. - region
Type numberMC - Console type, null when called via API.
- location_
mc str - Region description in different languages.
- region str
- Region identifier, e.g.
ap-guangzhou. - region_
id_ strmc - Region ID for console.
- region_
name str - Region name, e.g.
South China (Guangzhou). - region_
name_ strmc - Region description displayed in console.
- region_
state str - Region availability status, e.g.
AVAILABLE. - region_
type_ floatmc - Console type, null when called via API.
- location
MC String - Region description in different languages.
- region String
- Region identifier, e.g.
ap-guangzhou. - region
Id StringMC - Region ID for console.
- region
Name String - Region name, e.g.
South China (Guangzhou). - region
Name StringMC - Region description displayed in console.
- region
State String - Region availability status, e.g.
AVAILABLE. - region
Type NumberMC - Console type, null when called via API.
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.93
published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
