tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getPostgresqlSpecinfos
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary
The following arguments are supported:
- Availability
Zone string - The zone of the postgresql instance to query.
- Id string
- ID of the postgresql instance speccode.
- Result
Output stringFile - Used to save results.
- Availability
Zone string - The zone of the postgresql instance to query.
- Id string
- ID of the postgresql instance speccode.
- Result
Output stringFile - Used to save results.
- availability
Zone String - The zone of the postgresql instance to query.
- id String
- ID of the postgresql instance speccode.
- result
Output StringFile - Used to save results.
- availability
Zone string - The zone of the postgresql instance to query.
- id string
- ID of the postgresql instance speccode.
- result
Output 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.
- availability
Zone String - The zone of the postgresql instance to query.
- id String
- ID of the postgresql instance speccode.
- result
Output StringFile - Used to save results.
getPostgresqlSpecinfos Result
The following output properties are available:
- Availability
Zone string - Id string
- ID of the postgresql instance speccode.
- Lists
List<Get
Postgresql Specinfos List> - A list of zones will be exported and its every element contains the following attributes:
- Result
Output stringFile
- Availability
Zone string - Id string
- ID of the postgresql instance speccode.
- Lists
[]Get
Postgresql Specinfos List - A list of zones will be exported and its every element contains the following attributes:
- Result
Output stringFile
- availability
Zone String - id String
- ID of the postgresql instance speccode.
- lists
List<Get
Postgresql Specinfos List> - A list of zones will be exported and its every element contains the following attributes:
- result
Output StringFile
- availability
Zone string - id string
- ID of the postgresql instance speccode.
- lists
Get
Postgresql Specinfos List[] - A list of zones will be exported and its every element contains the following attributes:
- result
Output stringFile
- availability_
zone str - id str
- ID of the postgresql instance speccode.
- lists
Sequence[Get
Postgresql Specinfos List] - A list of zones will be exported and its every element contains the following attributes:
- result_
output_ strfile
- availability
Zone 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:
- result
Output StringFile
Supporting Types
GetPostgresqlSpecinfosList
- Cpu double
- The CPU number of the postgresql instance.
- Engine
Version string - Version of the postgresql database engine.
- Engine
Version 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.
- Storage
Max double - The maximum volume size(in GB).
- Storage
Min double - The minimum volume size(in GB).
- Cpu float64
- The CPU number of the postgresql instance.
- Engine
Version string - Version of the postgresql database engine.
- Engine
Version 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.
- Storage
Max float64 - The maximum volume size(in GB).
- Storage
Min float64 - The minimum volume size(in GB).
- cpu Double
- The CPU number of the postgresql instance.
- engine
Version String - Version of the postgresql database engine.
- engine
Version 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.
- storage
Max Double - The maximum volume size(in GB).
- storage
Min Double - The minimum volume size(in GB).
- cpu number
- The CPU number of the postgresql instance.
- engine
Version string - Version of the postgresql database engine.
- engine
Version 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.
- storage
Max number - The maximum volume size(in GB).
- storage
Min 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.
- engine
Version String - Version of the postgresql database engine.
- engine
Version 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.
- storage
Max Number - The maximum volume size(in GB).
- storage
Min Number - The minimum volume size(in GB).
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack