tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getPostgresqlRegions
Start a Neo task
Explain and create a tencentcloud.getPostgresqlRegions resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of postgresql regions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const regions = tencentcloud.getPostgresqlRegions({});
import pulumi
import pulumi_tencentcloud as tencentcloud
regions = tencentcloud.get_postgresql_regions()
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.GetPostgresqlRegions(ctx, &tencentcloud.GetPostgresqlRegionsArgs{}, 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 regions = Tencentcloud.GetPostgresqlRegions.Invoke();
});
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.GetPostgresqlRegionsArgs;
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 regions = TencentcloudFunctions.getPostgresqlRegions(GetPostgresqlRegionsArgs.builder()
.build());
}
}
variables:
regions:
fn::invoke:
function: tencentcloud:getPostgresqlRegions
arguments: {}
Using getPostgresqlRegions
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 getPostgresqlRegions(args: GetPostgresqlRegionsArgs, opts?: InvokeOptions): Promise<GetPostgresqlRegionsResult>
function getPostgresqlRegionsOutput(args: GetPostgresqlRegionsOutputArgs, opts?: InvokeOptions): Output<GetPostgresqlRegionsResult>def get_postgresql_regions(id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPostgresqlRegionsResult
def get_postgresql_regions_output(id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPostgresqlRegionsResult]func GetPostgresqlRegions(ctx *Context, args *GetPostgresqlRegionsArgs, opts ...InvokeOption) (*GetPostgresqlRegionsResult, error)
func GetPostgresqlRegionsOutput(ctx *Context, args *GetPostgresqlRegionsOutputArgs, opts ...InvokeOption) GetPostgresqlRegionsResultOutput> Note: This function is named GetPostgresqlRegions in the Go SDK.
public static class GetPostgresqlRegions
{
public static Task<GetPostgresqlRegionsResult> InvokeAsync(GetPostgresqlRegionsArgs args, InvokeOptions? opts = null)
public static Output<GetPostgresqlRegionsResult> Invoke(GetPostgresqlRegionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPostgresqlRegionsResult> getPostgresqlRegions(GetPostgresqlRegionsArgs args, InvokeOptions options)
public static Output<GetPostgresqlRegionsResult> getPostgresqlRegions(GetPostgresqlRegionsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getPostgresqlRegions:getPostgresqlRegions
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Result
Output stringFile - Used to save results.
- Id string
- Result
Output stringFile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
- id string
- result
Output stringFile - Used to save results.
- id str
- result_
output_ strfile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
getPostgresqlRegions Result
The following output properties are available:
- Id string
- Region
Sets List<GetPostgresql Regions Region Set> - Region information set.
- Result
Output stringFile
- Id string
- Region
Sets []GetPostgresql Regions Region Set - Region information set.
- Result
Output stringFile
- id String
- region
Sets List<GetPostgresql Regions Region Set> - Region information set.
- result
Output StringFile
- id string
- region
Sets GetPostgresql Regions Region Set[] - Region information set.
- result
Output stringFile
- id str
- region_
sets Sequence[GetPostgresql Regions Region Set] - Region information set.
- result_
output_ strfile
- id String
- region
Sets List<Property Map> - Region information set.
- result
Output StringFile
Supporting Types
GetPostgresqlRegionsRegionSet
- Region string
- Region abbreviation.
- Region
Id double - Region number.
- Region
Name string - Region name.
- Region
State string - Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
- Support
International double - Whether the resource can be purchased in this region. Valid values:
0(no),1(yes).Note: this field may returnnull, indicating that no valid values can be obtained.
- Region string
- Region abbreviation.
- Region
Id float64 - Region number.
- Region
Name string - Region name.
- Region
State string - Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
- Support
International float64 - Whether the resource can be purchased in this region. Valid values:
0(no),1(yes).Note: this field may returnnull, indicating that no valid values can be obtained.
- region String
- Region abbreviation.
- region
Id Double - Region number.
- region
Name String - Region name.
- region
State String - Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
- support
International Double - Whether the resource can be purchased in this region. Valid values:
0(no),1(yes).Note: this field may returnnull, indicating that no valid values can be obtained.
- region string
- Region abbreviation.
- region
Id number - Region number.
- region
Name string - Region name.
- region
State string - Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
- support
International number - Whether the resource can be purchased in this region. Valid values:
0(no),1(yes).Note: this field may returnnull, indicating that no valid values can be obtained.
- region str
- Region abbreviation.
- region_
id float - Region number.
- region_
name str - Region name.
- region_
state str - Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
- support_
international float - Whether the resource can be purchased in this region. Valid values:
0(no),1(yes).Note: this field may returnnull, indicating that no valid values can be obtained.
- region String
- Region abbreviation.
- region
Id Number - Region number.
- region
Name String - Region name.
- region
State String - Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
- support
International Number - Whether the resource can be purchased in this region. Valid values:
0(no),1(yes).Note: this field may returnnull, indicating that no valid values can be obtained.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
