tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack
tencentcloud.getPostgresqlSpecinfos
Explore with Pulumi AI
tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack
Use this data source to get the available product configs of the postgresql instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = tencentcloud.getPostgresqlSpecinfos({
    availabilityZone: "ap-shanghai-2",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_postgresql_specinfos(availability_zone="ap-shanghai-2")
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.GetPostgresqlSpecinfos(ctx, &tencentcloud.GetPostgresqlSpecinfosArgs{
			AvailabilityZone: "ap-shanghai-2",
		}, 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 foo = Tencentcloud.GetPostgresqlSpecinfos.Invoke(new()
    {
        AvailabilityZone = "ap-shanghai-2",
    });
});
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.GetPostgresqlSpecinfosArgs;
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 = TencentcloudFunctions.getPostgresqlSpecinfos(GetPostgresqlSpecinfosArgs.builder()
            .availabilityZone("ap-shanghai-2")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      function: tencentcloud:getPostgresqlSpecinfos
      arguments:
        availabilityZone: ap-shanghai-2
Using getPostgresqlSpecinfos
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 getPostgresqlSpecinfos(args: GetPostgresqlSpecinfosArgs, opts?: InvokeOptions): Promise<GetPostgresqlSpecinfosResult>
function getPostgresqlSpecinfosOutput(args: GetPostgresqlSpecinfosOutputArgs, opts?: InvokeOptions): Output<GetPostgresqlSpecinfosResult>def get_postgresql_specinfos(availability_zone: Optional[str] = None,
                             id: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPostgresqlSpecinfosResult
def get_postgresql_specinfos_output(availability_zone: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPostgresqlSpecinfosResult]func GetPostgresqlSpecinfos(ctx *Context, args *GetPostgresqlSpecinfosArgs, opts ...InvokeOption) (*GetPostgresqlSpecinfosResult, error)
func GetPostgresqlSpecinfosOutput(ctx *Context, args *GetPostgresqlSpecinfosOutputArgs, opts ...InvokeOption) GetPostgresqlSpecinfosResultOutput> Note: This function is named GetPostgresqlSpecinfos in the Go SDK.
public static class GetPostgresqlSpecinfos 
{
    public static Task<GetPostgresqlSpecinfosResult> InvokeAsync(GetPostgresqlSpecinfosArgs args, InvokeOptions? opts = null)
    public static Output<GetPostgresqlSpecinfosResult> Invoke(GetPostgresqlSpecinfosInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPostgresqlSpecinfosResult> getPostgresqlSpecinfos(GetPostgresqlSpecinfosArgs args, InvokeOptions options)
public static Output<GetPostgresqlSpecinfosResult> getPostgresqlSpecinfos(GetPostgresqlSpecinfosArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getPostgresqlSpecinfos:getPostgresqlSpecinfos
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AvailabilityZone string
- The zone of the postgresql instance to query.
- Id string
- ID of the postgresql instance speccode.
- ResultOutput stringFile 
- Used to save results.
- AvailabilityZone string
- The zone of the postgresql instance to query.
- Id string
- ID of the postgresql instance speccode.
- ResultOutput stringFile 
- Used to save results.
- availabilityZone String
- The zone of the postgresql instance to query.
- id String
- ID of the postgresql instance speccode.
- resultOutput StringFile 
- Used to save results.
- availabilityZone string
- The zone of the postgresql instance to query.
- id string
- ID of the postgresql instance speccode.
- resultOutput stringFile 
- Used to save results.
- availability_zone str
- The zone of the postgresql instance to query.
- id str
- ID of the postgresql instance speccode.
- result_output_ strfile 
- Used to save results.
- availabilityZone String
- The zone of the postgresql instance to query.
- id String
- ID of the postgresql instance speccode.
- resultOutput StringFile 
- Used to save results.
getPostgresqlSpecinfos Result
The following output properties are available:
- AvailabilityZone string
- Id string
- ID of the postgresql instance speccode.
- Lists
List<GetPostgresql Specinfos List> 
- A list of zones will be exported and its every element contains the following attributes:
- ResultOutput stringFile 
- AvailabilityZone string
- Id string
- ID of the postgresql instance speccode.
- Lists
[]GetPostgresql Specinfos List 
- A list of zones will be exported and its every element contains the following attributes:
- ResultOutput stringFile 
- availabilityZone String
- id String
- ID of the postgresql instance speccode.
- lists
List<GetPostgresql Specinfos List> 
- A list of zones will be exported and its every element contains the following attributes:
- resultOutput StringFile 
- availabilityZone string
- id string
- ID of the postgresql instance speccode.
- lists
GetPostgresql Specinfos List[] 
- A list of zones will be exported and its every element contains the following attributes:
- resultOutput stringFile 
- availability_zone str
- id str
- ID of the postgresql instance speccode.
- lists
Sequence[GetPostgresql Specinfos List] 
- A list of zones will be exported and its every element contains the following attributes:
- result_output_ strfile 
- availabilityZone String
- id String
- ID of the postgresql instance speccode.
- lists List<Property Map>
- A list of zones will be exported and its every element contains the following attributes:
- resultOutput StringFile 
Supporting Types
GetPostgresqlSpecinfosList   
- Cpu double
- The CPU number of the postgresql instance.
- EngineVersion string
- Version of the postgresql database engine.
- EngineVersion stringName 
- Version name of the postgresql database engine.
- Id string
- ID of the postgresql instance speccode.
- Memory double
- Memory size(in GB).
- Qps double
- The QPS of the postgresql instance.
- StorageMax double
- The maximum volume size(in GB).
- StorageMin double
- The minimum volume size(in GB).
- Cpu float64
- The CPU number of the postgresql instance.
- EngineVersion string
- Version of the postgresql database engine.
- EngineVersion stringName 
- Version name of the postgresql database engine.
- Id string
- ID of the postgresql instance speccode.
- Memory float64
- Memory size(in GB).
- Qps float64
- The QPS of the postgresql instance.
- StorageMax float64
- The maximum volume size(in GB).
- StorageMin float64
- The minimum volume size(in GB).
- cpu Double
- The CPU number of the postgresql instance.
- engineVersion String
- Version of the postgresql database engine.
- engineVersion StringName 
- Version name of the postgresql database engine.
- id String
- ID of the postgresql instance speccode.
- memory Double
- Memory size(in GB).
- qps Double
- The QPS of the postgresql instance.
- storageMax Double
- The maximum volume size(in GB).
- storageMin Double
- The minimum volume size(in GB).
- cpu number
- The CPU number of the postgresql instance.
- engineVersion string
- Version of the postgresql database engine.
- engineVersion stringName 
- Version name of the postgresql database engine.
- id string
- ID of the postgresql instance speccode.
- memory number
- Memory size(in GB).
- qps number
- The QPS of the postgresql instance.
- storageMax number
- The maximum volume size(in GB).
- storageMin number
- The minimum volume size(in GB).
- cpu float
- The CPU number of the postgresql instance.
- engine_version str
- Version of the postgresql database engine.
- engine_version_ strname 
- Version name of the postgresql database engine.
- id str
- ID of the postgresql instance speccode.
- memory float
- Memory size(in GB).
- qps float
- The QPS of the postgresql instance.
- storage_max float
- The maximum volume size(in GB).
- storage_min float
- The minimum volume size(in GB).
- cpu Number
- The CPU number of the postgresql instance.
- engineVersion String
- Version of the postgresql database engine.
- engineVersion StringName 
- Version name of the postgresql database engine.
- id String
- ID of the postgresql instance speccode.
- memory Number
- Memory size(in GB).
- qps Number
- The QPS of the postgresql instance.
- storageMax Number
- The maximum volume size(in GB).
- storageMin Number
- The minimum volume size(in GB).
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack