1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getPostgresqlRegions
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getPostgresqlRegions

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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();
    
        }
    }
    
    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 dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used to save results.
    Id string
    ResultOutputFile string
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.
    id string
    resultOutputFile string
    Used to save results.
    id str
    result_output_file str
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.

    getPostgresqlRegions Result

    The following output properties are available:

    id String
    regionSets List<Property Map>
    Region information set.
    resultOutputFile String

    Supporting Types

    GetPostgresqlRegionsRegionSet

    Region string
    Region abbreviation.
    RegionId double
    Region number.
    RegionName string
    Region name.
    RegionState string
    Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
    SupportInternational double
    Whether the resource can be purchased in this region. Valid values: 0 (no), 1 (yes).Note: this field may return null, indicating that no valid values can be obtained.
    Region string
    Region abbreviation.
    RegionId float64
    Region number.
    RegionName string
    Region name.
    RegionState string
    Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
    SupportInternational float64
    Whether the resource can be purchased in this region. Valid values: 0 (no), 1 (yes).Note: this field may return null, indicating that no valid values can be obtained.
    region String
    Region abbreviation.
    regionId Double
    Region number.
    regionName String
    Region name.
    regionState String
    Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
    supportInternational Double
    Whether the resource can be purchased in this region. Valid values: 0 (no), 1 (yes).Note: this field may return null, indicating that no valid values can be obtained.
    region string
    Region abbreviation.
    regionId number
    Region number.
    regionName string
    Region name.
    regionState string
    Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
    supportInternational number
    Whether the resource can be purchased in this region. Valid values: 0 (no), 1 (yes).Note: this field may return null, 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 return null, indicating that no valid values can be obtained.
    region String
    Region abbreviation.
    regionId Number
    Region number.
    regionName String
    Region name.
    regionState String
    Availability status. UNAVAILABLE: unavailable, AVAILABLE: available.
    supportInternational Number
    Whether the resource can be purchased in this region. Valid values: 0 (no), 1 (yes).Note: this field may return null, 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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack