tencentcloud 1.82.64 published on Friday, Jan 30, 2026 by tencentcloudstack
tencentcloud 1.82.64 published on Friday, Jan 30, 2026 by tencentcloudstack
Use this data source to query PostgreSQL instances
Example Usage
Query all postgresql instances
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getPostgresqlInstances({});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_postgresql_instances()
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.GetPostgresqlInstances(ctx, &tencentcloud.GetPostgresqlInstancesArgs{}, 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.GetPostgresqlInstances.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.GetPostgresqlInstancesArgs;
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.getPostgresqlInstances(GetPostgresqlInstancesArgs.builder()
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getPostgresqlInstances
arguments: {}
Query postgresql instances by filters
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getPostgresqlInstances({
id: "postgres-gngyhl9d",
name: "tf-example",
projectId: "1235143",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_postgresql_instances(id="postgres-gngyhl9d",
name="tf-example",
project_id="1235143")
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.GetPostgresqlInstances(ctx, &tencentcloud.GetPostgresqlInstancesArgs{
Id: pulumi.StringRef("postgres-gngyhl9d"),
Name: pulumi.StringRef("tf-example"),
ProjectId: pulumi.StringRef("1235143"),
}, 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.GetPostgresqlInstances.Invoke(new()
{
Id = "postgres-gngyhl9d",
Name = "tf-example",
ProjectId = "1235143",
});
});
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.GetPostgresqlInstancesArgs;
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.getPostgresqlInstances(GetPostgresqlInstancesArgs.builder()
.id("postgres-gngyhl9d")
.name("tf-example")
.projectId("1235143")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getPostgresqlInstances
arguments:
id: postgres-gngyhl9d
name: tf-example
projectId: '1235143'
Using getPostgresqlInstances
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 getPostgresqlInstances(args: GetPostgresqlInstancesArgs, opts?: InvokeOptions): Promise<GetPostgresqlInstancesResult>
function getPostgresqlInstancesOutput(args: GetPostgresqlInstancesOutputArgs, opts?: InvokeOptions): Output<GetPostgresqlInstancesResult>def get_postgresql_instances(id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPostgresqlInstancesResult
def get_postgresql_instances_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPostgresqlInstancesResult]func GetPostgresqlInstances(ctx *Context, args *GetPostgresqlInstancesArgs, opts ...InvokeOption) (*GetPostgresqlInstancesResult, error)
func GetPostgresqlInstancesOutput(ctx *Context, args *GetPostgresqlInstancesOutputArgs, opts ...InvokeOption) GetPostgresqlInstancesResultOutput> Note: This function is named GetPostgresqlInstances in the Go SDK.
public static class GetPostgresqlInstances
{
public static Task<GetPostgresqlInstancesResult> InvokeAsync(GetPostgresqlInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetPostgresqlInstancesResult> Invoke(GetPostgresqlInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPostgresqlInstancesResult> getPostgresqlInstances(GetPostgresqlInstancesArgs args, InvokeOptions options)
public static Output<GetPostgresqlInstancesResult> getPostgresqlInstances(GetPostgresqlInstancesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getPostgresqlInstances:getPostgresqlInstances
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- ID of the postgresql instance to be query.
- Name string
- Name of the postgresql instance to be query.
- Project
Id string - Project ID of the postgresql instance to be query.
- Result
Output stringFile - Used to save results.
- Id string
- ID of the postgresql instance to be query.
- Name string
- Name of the postgresql instance to be query.
- Project
Id string - Project ID of the postgresql instance to be query.
- Result
Output stringFile - Used to save results.
- id String
- ID of the postgresql instance to be query.
- name String
- Name of the postgresql instance to be query.
- project
Id String - Project ID of the postgresql instance to be query.
- result
Output StringFile - Used to save results.
- id string
- ID of the postgresql instance to be query.
- name string
- Name of the postgresql instance to be query.
- project
Id string - Project ID of the postgresql instance to be query.
- result
Output stringFile - Used to save results.
- id str
- ID of the postgresql instance to be query.
- name str
- Name of the postgresql instance to be query.
- project_
id str - Project ID of the postgresql instance to be query.
- result_
output_ strfile - Used to save results.
- id String
- ID of the postgresql instance to be query.
- name String
- Name of the postgresql instance to be query.
- project
Id String - Project ID of the postgresql instance to be query.
- result
Output StringFile - Used to save results.
getPostgresqlInstances Result
The following output properties are available:
- Db
Instance List<GetSets Postgresql Instances Db Instance Set> - Instance details set.
- Instance
Lists List<GetPostgresql Instances Instance List> - (Deprecated) It has been deprecated from version 1.82.64. Please use
db_instance_setinstead. A list of postgresql instances. Each element contains the following attributes. - Id string
- ID of the postgresql instance.
- Name string
- Name of the postgresql instance.
- Project
Id string - Project id, default value is 0.
- Result
Output stringFile
- Db
Instance []GetSets Postgresql Instances Db Instance Set - Instance details set.
- Instance
Lists []GetPostgresql Instances Instance List - (Deprecated) It has been deprecated from version 1.82.64. Please use
db_instance_setinstead. A list of postgresql instances. Each element contains the following attributes. - Id string
- ID of the postgresql instance.
- Name string
- Name of the postgresql instance.
- Project
Id string - Project id, default value is 0.
- Result
Output stringFile
- db
Instance List<GetSets Postgresql Instances Db Instance Set> - Instance details set.
- instance
Lists List<GetPostgresql Instances Instance List> - (Deprecated) It has been deprecated from version 1.82.64. Please use
db_instance_setinstead. A list of postgresql instances. Each element contains the following attributes. - id String
- ID of the postgresql instance.
- name String
- Name of the postgresql instance.
- project
Id String - Project id, default value is 0.
- result
Output StringFile
- db
Instance GetSets Postgresql Instances Db Instance Set[] - Instance details set.
- instance
Lists GetPostgresql Instances Instance List[] - (Deprecated) It has been deprecated from version 1.82.64. Please use
db_instance_setinstead. A list of postgresql instances. Each element contains the following attributes. - id string
- ID of the postgresql instance.
- name string
- Name of the postgresql instance.
- project
Id string - Project id, default value is 0.
- result
Output stringFile
- db_
instance_ Sequence[Getsets Postgresql Instances Db Instance Set] - Instance details set.
- instance_
lists Sequence[GetPostgresql Instances Instance List] - (Deprecated) It has been deprecated from version 1.82.64. Please use
db_instance_setinstead. A list of postgresql instances. Each element contains the following attributes. - id str
- ID of the postgresql instance.
- name str
- Name of the postgresql instance.
- project_
id str - Project id, default value is 0.
- result_
output_ strfile
- db
Instance List<Property Map>Sets - Instance details set.
- instance
Lists List<Property Map> - (Deprecated) It has been deprecated from version 1.82.64. Please use
db_instance_setinstead. A list of postgresql instances. Each element contains the following attributes. - id String
- ID of the postgresql instance.
- name String
- Name of the postgresql instance.
- project
Id String - Project id, default value is 0.
- result
Output StringFile
Supporting Types
GetPostgresqlInstancesDbInstanceSet
- App
Id double - User
AppId. - Auto
Renew double - Auto-renewal or not:
- Create
Time string - Create time of the postgresql instance.
- Db
Charset string - Instance character set, which currently supports only:
- Db
Engine string - Database engine, which supports:
- Db
Engine stringConfig - Configuration information for the database engine, and the configuration format is as follows:.
{
$key1:$value1,$key2:$value2} Supported engines include:. mssql_compatible engine:. - Db
Instance stringClass - Purchasable specification ID.
- Db
Instance doubleCpu - Number of assigned CPUs.
- Db
Instance stringId - Instance ID.
- Db
Instance doubleMemory - Assigned instance memory size in GB.
- Db
Instance stringName - Instance name.
- Db
Instance List<GetNet Infos Postgresql Instances Db Instance Set Db Instance Net Info> - Instance network connection information.
- Db
Instance stringStatus - Instance status, including:
applying(applying),init(to be initialized),initing(initializing),running(running),limited run(restricted operation),isolating(isolating),isolated(isolated),disisolating(de-isolating),recycling(recycling),recycled(recycled),job running(task executing),offline(offline),migrating(migrating),expanding(scaling out),waitSwitch(waiting to switch),switching(switching),readonly(readonly),restarting(restarting),network changing(network modification in progress),upgrading(kernel version upgrading),audit-switching(audit status changing),primary-switching(primary-secondary switching),offlining(offline),deployment changing(modify az),cloning(restoring data),parameter modifying(parameter modification in progress),log-switching(log status change),restoring(recovering), andexpanding(scaling out). - Db
Instance doubleStorage - Assigned instance storage capacity in GB.
- Db
Instance stringType - Instance type, which includes:
- Db
Instance stringVersion - Instance version. Valid value:
standard(dual-server high-availability; one-primary-one-standby). - Db
Kernel stringVersion - PostgreSQL kernel version number.
- Db
Major stringVersion - PostgreSQL major version number.
- Db
Node List<GetSets Postgresql Instances Db Instance Set Db Node Set> - Instance node information Note: This field may return null, indicating that no valid values can be obtained.
- Db
Version string - Number of the major PostgreSQL community version and minor version, such as 12.4, which can be queried by the DescribeDBVersions API.
- Deletion
Protection bool - Specifies whether to enable deletion protection for the instance. valid values as follows:. -Specifies whether to enable deletion protection. valid values: true (enable deletion protection). -Specifies whether to disable deletion protection. valid values: false (disable deletion protection).
- Expanded
Cpu double - Number of cpu cores that have been elastically scaled out.
- Expire
Time string - Instance expiration time.
- Is
Support doubleTde - Whether the instance supports TDE data encryption.
- Isolated
Time string - Instance isolation time.
- Master
Db stringInstance Id - Primary instance information. returned only when the instance is a read-only instance.
- Network
Access List<GetLists Postgresql Instances Db Instance Set Network Access List> - Network access list of the instance (this field has been deprecated)
Note: this field may return
null, indicating that no valid values can be obtained. - Offline
Time string - Decommissioning time.
- Pay
Type string - Billing mode:
- Project
Id double - Project ID of the postgresql instance to be query.
- Read
Only doubleInstance Num - Specifies the number of read-only instances.
- Region string
- Instance region such as ap-guangzhou, which corresponds to the
Regionfield inRegionSet. - Root
User string - Instance root account name, default value is
root. - Status
In stringReadonly Group - Describes the state of the read-only instance in the read-only group.
- Subnet
Id string - ID of subnet.
- Support
Ipv6 double - Whether the instance supports IPv6:
- Tag
Lists List<GetPostgresql Instances Db Instance Set Tag List> - Describes the Tag information associated with the instance.
- Type string
- Machine type.
- Uid double
- Instance
Uid. - Update
Time string - Last updated time of the instance attribute.
- Vpc
Id string - ID of VPC.
- Zone string
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- App
Id float64 - User
AppId. - Auto
Renew float64 - Auto-renewal or not:
- Create
Time string - Create time of the postgresql instance.
- Db
Charset string - Instance character set, which currently supports only:
- Db
Engine string - Database engine, which supports:
- Db
Engine stringConfig - Configuration information for the database engine, and the configuration format is as follows:.
{
$key1:$value1,$key2:$value2} Supported engines include:. mssql_compatible engine:. - Db
Instance stringClass - Purchasable specification ID.
- Db
Instance float64Cpu - Number of assigned CPUs.
- Db
Instance stringId - Instance ID.
- Db
Instance float64Memory - Assigned instance memory size in GB.
- Db
Instance stringName - Instance name.
- Db
Instance []GetNet Infos Postgresql Instances Db Instance Set Db Instance Net Info - Instance network connection information.
- Db
Instance stringStatus - Instance status, including:
applying(applying),init(to be initialized),initing(initializing),running(running),limited run(restricted operation),isolating(isolating),isolated(isolated),disisolating(de-isolating),recycling(recycling),recycled(recycled),job running(task executing),offline(offline),migrating(migrating),expanding(scaling out),waitSwitch(waiting to switch),switching(switching),readonly(readonly),restarting(restarting),network changing(network modification in progress),upgrading(kernel version upgrading),audit-switching(audit status changing),primary-switching(primary-secondary switching),offlining(offline),deployment changing(modify az),cloning(restoring data),parameter modifying(parameter modification in progress),log-switching(log status change),restoring(recovering), andexpanding(scaling out). - Db
Instance float64Storage - Assigned instance storage capacity in GB.
- Db
Instance stringType - Instance type, which includes:
- Db
Instance stringVersion - Instance version. Valid value:
standard(dual-server high-availability; one-primary-one-standby). - Db
Kernel stringVersion - PostgreSQL kernel version number.
- Db
Major stringVersion - PostgreSQL major version number.
- Db
Node []GetSets Postgresql Instances Db Instance Set Db Node Set - Instance node information Note: This field may return null, indicating that no valid values can be obtained.
- Db
Version string - Number of the major PostgreSQL community version and minor version, such as 12.4, which can be queried by the DescribeDBVersions API.
- Deletion
Protection bool - Specifies whether to enable deletion protection for the instance. valid values as follows:. -Specifies whether to enable deletion protection. valid values: true (enable deletion protection). -Specifies whether to disable deletion protection. valid values: false (disable deletion protection).
- Expanded
Cpu float64 - Number of cpu cores that have been elastically scaled out.
- Expire
Time string - Instance expiration time.
- Is
Support float64Tde - Whether the instance supports TDE data encryption.
- Isolated
Time string - Instance isolation time.
- Master
Db stringInstance Id - Primary instance information. returned only when the instance is a read-only instance.
- Network
Access []GetLists Postgresql Instances Db Instance Set Network Access List - Network access list of the instance (this field has been deprecated)
Note: this field may return
null, indicating that no valid values can be obtained. - Offline
Time string - Decommissioning time.
- Pay
Type string - Billing mode:
- Project
Id float64 - Project ID of the postgresql instance to be query.
- Read
Only float64Instance Num - Specifies the number of read-only instances.
- Region string
- Instance region such as ap-guangzhou, which corresponds to the
Regionfield inRegionSet. - Root
User string - Instance root account name, default value is
root. - Status
In stringReadonly Group - Describes the state of the read-only instance in the read-only group.
- Subnet
Id string - ID of subnet.
- Support
Ipv6 float64 - Whether the instance supports IPv6:
- Tag
Lists []GetPostgresql Instances Db Instance Set Tag List - Describes the Tag information associated with the instance.
- Type string
- Machine type.
- Uid float64
- Instance
Uid. - Update
Time string - Last updated time of the instance attribute.
- Vpc
Id string - ID of VPC.
- Zone string
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- app
Id Double - User
AppId. - auto
Renew Double - Auto-renewal or not:
- create
Time String - Create time of the postgresql instance.
- db
Charset String - Instance character set, which currently supports only:
- db
Engine String - Database engine, which supports:
- db
Engine StringConfig - Configuration information for the database engine, and the configuration format is as follows:.
{
$key1:$value1,$key2:$value2} Supported engines include:. mssql_compatible engine:. - db
Instance StringClass - Purchasable specification ID.
- db
Instance DoubleCpu - Number of assigned CPUs.
- db
Instance StringId - Instance ID.
- db
Instance DoubleMemory - Assigned instance memory size in GB.
- db
Instance StringName - Instance name.
- db
Instance List<GetNet Infos Postgresql Instances Db Instance Set Db Instance Net Info> - Instance network connection information.
- db
Instance StringStatus - Instance status, including:
applying(applying),init(to be initialized),initing(initializing),running(running),limited run(restricted operation),isolating(isolating),isolated(isolated),disisolating(de-isolating),recycling(recycling),recycled(recycled),job running(task executing),offline(offline),migrating(migrating),expanding(scaling out),waitSwitch(waiting to switch),switching(switching),readonly(readonly),restarting(restarting),network changing(network modification in progress),upgrading(kernel version upgrading),audit-switching(audit status changing),primary-switching(primary-secondary switching),offlining(offline),deployment changing(modify az),cloning(restoring data),parameter modifying(parameter modification in progress),log-switching(log status change),restoring(recovering), andexpanding(scaling out). - db
Instance DoubleStorage - Assigned instance storage capacity in GB.
- db
Instance StringType - Instance type, which includes:
- db
Instance StringVersion - Instance version. Valid value:
standard(dual-server high-availability; one-primary-one-standby). - db
Kernel StringVersion - PostgreSQL kernel version number.
- db
Major StringVersion - PostgreSQL major version number.
- db
Node List<GetSets Postgresql Instances Db Instance Set Db Node Set> - Instance node information Note: This field may return null, indicating that no valid values can be obtained.
- db
Version String - Number of the major PostgreSQL community version and minor version, such as 12.4, which can be queried by the DescribeDBVersions API.
- deletion
Protection Boolean - Specifies whether to enable deletion protection for the instance. valid values as follows:. -Specifies whether to enable deletion protection. valid values: true (enable deletion protection). -Specifies whether to disable deletion protection. valid values: false (disable deletion protection).
- expanded
Cpu Double - Number of cpu cores that have been elastically scaled out.
- expire
Time String - Instance expiration time.
- is
Support DoubleTde - Whether the instance supports TDE data encryption.
- isolated
Time String - Instance isolation time.
- master
Db StringInstance Id - Primary instance information. returned only when the instance is a read-only instance.
- network
Access List<GetLists Postgresql Instances Db Instance Set Network Access List> - Network access list of the instance (this field has been deprecated)
Note: this field may return
null, indicating that no valid values can be obtained. - offline
Time String - Decommissioning time.
- pay
Type String - Billing mode:
- project
Id Double - Project ID of the postgresql instance to be query.
- read
Only DoubleInstance Num - Specifies the number of read-only instances.
- region String
- Instance region such as ap-guangzhou, which corresponds to the
Regionfield inRegionSet. - root
User String - Instance root account name, default value is
root. - status
In StringReadonly Group - Describes the state of the read-only instance in the read-only group.
- subnet
Id String - ID of subnet.
- support
Ipv6 Double - Whether the instance supports IPv6:
- tag
Lists List<GetPostgresql Instances Db Instance Set Tag List> - Describes the Tag information associated with the instance.
- type String
- Machine type.
- uid Double
- Instance
Uid. - update
Time String - Last updated time of the instance attribute.
- vpc
Id String - ID of VPC.
- zone String
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- app
Id number - User
AppId. - auto
Renew number - Auto-renewal or not:
- create
Time string - Create time of the postgresql instance.
- db
Charset string - Instance character set, which currently supports only:
- db
Engine string - Database engine, which supports:
- db
Engine stringConfig - Configuration information for the database engine, and the configuration format is as follows:.
{
$key1:$value1,$key2:$value2} Supported engines include:. mssql_compatible engine:. - db
Instance stringClass - Purchasable specification ID.
- db
Instance numberCpu - Number of assigned CPUs.
- db
Instance stringId - Instance ID.
- db
Instance numberMemory - Assigned instance memory size in GB.
- db
Instance stringName - Instance name.
- db
Instance GetNet Infos Postgresql Instances Db Instance Set Db Instance Net Info[] - Instance network connection information.
- db
Instance stringStatus - Instance status, including:
applying(applying),init(to be initialized),initing(initializing),running(running),limited run(restricted operation),isolating(isolating),isolated(isolated),disisolating(de-isolating),recycling(recycling),recycled(recycled),job running(task executing),offline(offline),migrating(migrating),expanding(scaling out),waitSwitch(waiting to switch),switching(switching),readonly(readonly),restarting(restarting),network changing(network modification in progress),upgrading(kernel version upgrading),audit-switching(audit status changing),primary-switching(primary-secondary switching),offlining(offline),deployment changing(modify az),cloning(restoring data),parameter modifying(parameter modification in progress),log-switching(log status change),restoring(recovering), andexpanding(scaling out). - db
Instance numberStorage - Assigned instance storage capacity in GB.
- db
Instance stringType - Instance type, which includes:
- db
Instance stringVersion - Instance version. Valid value:
standard(dual-server high-availability; one-primary-one-standby). - db
Kernel stringVersion - PostgreSQL kernel version number.
- db
Major stringVersion - PostgreSQL major version number.
- db
Node GetSets Postgresql Instances Db Instance Set Db Node Set[] - Instance node information Note: This field may return null, indicating that no valid values can be obtained.
- db
Version string - Number of the major PostgreSQL community version and minor version, such as 12.4, which can be queried by the DescribeDBVersions API.
- deletion
Protection boolean - Specifies whether to enable deletion protection for the instance. valid values as follows:. -Specifies whether to enable deletion protection. valid values: true (enable deletion protection). -Specifies whether to disable deletion protection. valid values: false (disable deletion protection).
- expanded
Cpu number - Number of cpu cores that have been elastically scaled out.
- expire
Time string - Instance expiration time.
- is
Support numberTde - Whether the instance supports TDE data encryption.
- isolated
Time string - Instance isolation time.
- master
Db stringInstance Id - Primary instance information. returned only when the instance is a read-only instance.
- network
Access GetLists Postgresql Instances Db Instance Set Network Access List[] - Network access list of the instance (this field has been deprecated)
Note: this field may return
null, indicating that no valid values can be obtained. - offline
Time string - Decommissioning time.
- pay
Type string - Billing mode:
- project
Id number - Project ID of the postgresql instance to be query.
- read
Only numberInstance Num - Specifies the number of read-only instances.
- region string
- Instance region such as ap-guangzhou, which corresponds to the
Regionfield inRegionSet. - root
User string - Instance root account name, default value is
root. - status
In stringReadonly Group - Describes the state of the read-only instance in the read-only group.
- subnet
Id string - ID of subnet.
- support
Ipv6 number - Whether the instance supports IPv6:
- tag
Lists GetPostgresql Instances Db Instance Set Tag List[] - Describes the Tag information associated with the instance.
- type string
- Machine type.
- uid number
- Instance
Uid. - update
Time string - Last updated time of the instance attribute.
- vpc
Id string - ID of VPC.
- zone string
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- app_
id float - User
AppId. - auto_
renew float - Auto-renewal or not:
- create_
time str - Create time of the postgresql instance.
- db_
charset str - Instance character set, which currently supports only:
- db_
engine str - Database engine, which supports:
- db_
engine_ strconfig - Configuration information for the database engine, and the configuration format is as follows:.
{
$key1:$value1,$key2:$value2} Supported engines include:. mssql_compatible engine:. - db_
instance_ strclass - Purchasable specification ID.
- db_
instance_ floatcpu - Number of assigned CPUs.
- db_
instance_ strid - Instance ID.
- db_
instance_ floatmemory - Assigned instance memory size in GB.
- db_
instance_ strname - Instance name.
- db_
instance_ Sequence[Getnet_ infos Postgresql Instances Db Instance Set Db Instance Net Info] - Instance network connection information.
- db_
instance_ strstatus - Instance status, including:
applying(applying),init(to be initialized),initing(initializing),running(running),limited run(restricted operation),isolating(isolating),isolated(isolated),disisolating(de-isolating),recycling(recycling),recycled(recycled),job running(task executing),offline(offline),migrating(migrating),expanding(scaling out),waitSwitch(waiting to switch),switching(switching),readonly(readonly),restarting(restarting),network changing(network modification in progress),upgrading(kernel version upgrading),audit-switching(audit status changing),primary-switching(primary-secondary switching),offlining(offline),deployment changing(modify az),cloning(restoring data),parameter modifying(parameter modification in progress),log-switching(log status change),restoring(recovering), andexpanding(scaling out). - db_
instance_ floatstorage - Assigned instance storage capacity in GB.
- db_
instance_ strtype - Instance type, which includes:
- db_
instance_ strversion - Instance version. Valid value:
standard(dual-server high-availability; one-primary-one-standby). - db_
kernel_ strversion - PostgreSQL kernel version number.
- db_
major_ strversion - PostgreSQL major version number.
- db_
node_ Sequence[Getsets Postgresql Instances Db Instance Set Db Node Set] - Instance node information Note: This field may return null, indicating that no valid values can be obtained.
- db_
version str - Number of the major PostgreSQL community version and minor version, such as 12.4, which can be queried by the DescribeDBVersions API.
- deletion_
protection bool - Specifies whether to enable deletion protection for the instance. valid values as follows:. -Specifies whether to enable deletion protection. valid values: true (enable deletion protection). -Specifies whether to disable deletion protection. valid values: false (disable deletion protection).
- expanded_
cpu float - Number of cpu cores that have been elastically scaled out.
- expire_
time str - Instance expiration time.
- is_
support_ floattde - Whether the instance supports TDE data encryption.
- isolated_
time str - Instance isolation time.
- master_
db_ strinstance_ id - Primary instance information. returned only when the instance is a read-only instance.
- network_
access_ Sequence[Getlists Postgresql Instances Db Instance Set Network Access List] - Network access list of the instance (this field has been deprecated)
Note: this field may return
null, indicating that no valid values can be obtained. - offline_
time str - Decommissioning time.
- pay_
type str - Billing mode:
- project_
id float - Project ID of the postgresql instance to be query.
- read_
only_ floatinstance_ num - Specifies the number of read-only instances.
- region str
- Instance region such as ap-guangzhou, which corresponds to the
Regionfield inRegionSet. - root_
user str - Instance root account name, default value is
root. - status_
in_ strreadonly_ group - Describes the state of the read-only instance in the read-only group.
- subnet_
id str - ID of subnet.
- support_
ipv6 float - Whether the instance supports IPv6:
- tag_
lists Sequence[GetPostgresql Instances Db Instance Set Tag List] - Describes the Tag information associated with the instance.
- type str
- Machine type.
- uid float
- Instance
Uid. - update_
time str - Last updated time of the instance attribute.
- vpc_
id str - ID of VPC.
- zone str
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- app
Id Number - User
AppId. - auto
Renew Number - Auto-renewal or not:
- create
Time String - Create time of the postgresql instance.
- db
Charset String - Instance character set, which currently supports only:
- db
Engine String - Database engine, which supports:
- db
Engine StringConfig - Configuration information for the database engine, and the configuration format is as follows:.
{
$key1:$value1,$key2:$value2} Supported engines include:. mssql_compatible engine:. - db
Instance StringClass - Purchasable specification ID.
- db
Instance NumberCpu - Number of assigned CPUs.
- db
Instance StringId - Instance ID.
- db
Instance NumberMemory - Assigned instance memory size in GB.
- db
Instance StringName - Instance name.
- db
Instance List<Property Map>Net Infos - Instance network connection information.
- db
Instance StringStatus - Instance status, including:
applying(applying),init(to be initialized),initing(initializing),running(running),limited run(restricted operation),isolating(isolating),isolated(isolated),disisolating(de-isolating),recycling(recycling),recycled(recycled),job running(task executing),offline(offline),migrating(migrating),expanding(scaling out),waitSwitch(waiting to switch),switching(switching),readonly(readonly),restarting(restarting),network changing(network modification in progress),upgrading(kernel version upgrading),audit-switching(audit status changing),primary-switching(primary-secondary switching),offlining(offline),deployment changing(modify az),cloning(restoring data),parameter modifying(parameter modification in progress),log-switching(log status change),restoring(recovering), andexpanding(scaling out). - db
Instance NumberStorage - Assigned instance storage capacity in GB.
- db
Instance StringType - Instance type, which includes:
- db
Instance StringVersion - Instance version. Valid value:
standard(dual-server high-availability; one-primary-one-standby). - db
Kernel StringVersion - PostgreSQL kernel version number.
- db
Major StringVersion - PostgreSQL major version number.
- db
Node List<Property Map>Sets - Instance node information Note: This field may return null, indicating that no valid values can be obtained.
- db
Version String - Number of the major PostgreSQL community version and minor version, such as 12.4, which can be queried by the DescribeDBVersions API.
- deletion
Protection Boolean - Specifies whether to enable deletion protection for the instance. valid values as follows:. -Specifies whether to enable deletion protection. valid values: true (enable deletion protection). -Specifies whether to disable deletion protection. valid values: false (disable deletion protection).
- expanded
Cpu Number - Number of cpu cores that have been elastically scaled out.
- expire
Time String - Instance expiration time.
- is
Support NumberTde - Whether the instance supports TDE data encryption.
- isolated
Time String - Instance isolation time.
- master
Db StringInstance Id - Primary instance information. returned only when the instance is a read-only instance.
- network
Access List<Property Map>Lists - Network access list of the instance (this field has been deprecated)
Note: this field may return
null, indicating that no valid values can be obtained. - offline
Time String - Decommissioning time.
- pay
Type String - Billing mode:
- project
Id Number - Project ID of the postgresql instance to be query.
- read
Only NumberInstance Num - Specifies the number of read-only instances.
- region String
- Instance region such as ap-guangzhou, which corresponds to the
Regionfield inRegionSet. - root
User String - Instance root account name, default value is
root. - status
In StringReadonly Group - Describes the state of the read-only instance in the read-only group.
- subnet
Id String - ID of subnet.
- support
Ipv6 Number - Whether the instance supports IPv6:
- tag
Lists List<Property Map> - Describes the Tag information associated with the instance.
- type String
- Machine type.
- uid Number
- Instance
Uid. - update
Time String - Last updated time of the instance attribute.
- vpc
Id String - ID of VPC.
- zone String
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
GetPostgresqlInstancesDbInstanceSetDbInstanceNetInfo
- Address string
- DNS domain name.
- Ip string
- Ip.
- Net
Type string - Network type. 1: inner (private network address), 2: public (public network address).
- Port double
- Connection port address.
- Protocol
Type string - Specifies the protocol type to connect to the database. currently supported: postgresql, mssql (mssql compatible syntax).
- Status string
- Network connection status. Valid values:
initing(never enabled before),opened(enabled),closed(disabled),opening(enabling),closing(disabling). - Subnet
Id string - ID of subnet.
- Vpc
Id string - ID of VPC.
- Address string
- DNS domain name.
- Ip string
- Ip.
- Net
Type string - Network type. 1: inner (private network address), 2: public (public network address).
- Port float64
- Connection port address.
- Protocol
Type string - Specifies the protocol type to connect to the database. currently supported: postgresql, mssql (mssql compatible syntax).
- Status string
- Network connection status. Valid values:
initing(never enabled before),opened(enabled),closed(disabled),opening(enabling),closing(disabling). - Subnet
Id string - ID of subnet.
- Vpc
Id string - ID of VPC.
- address String
- DNS domain name.
- ip String
- Ip.
- net
Type String - Network type. 1: inner (private network address), 2: public (public network address).
- port Double
- Connection port address.
- protocol
Type String - Specifies the protocol type to connect to the database. currently supported: postgresql, mssql (mssql compatible syntax).
- status String
- Network connection status. Valid values:
initing(never enabled before),opened(enabled),closed(disabled),opening(enabling),closing(disabling). - subnet
Id String - ID of subnet.
- vpc
Id String - ID of VPC.
- address string
- DNS domain name.
- ip string
- Ip.
- net
Type string - Network type. 1: inner (private network address), 2: public (public network address).
- port number
- Connection port address.
- protocol
Type string - Specifies the protocol type to connect to the database. currently supported: postgresql, mssql (mssql compatible syntax).
- status string
- Network connection status. Valid values:
initing(never enabled before),opened(enabled),closed(disabled),opening(enabling),closing(disabling). - subnet
Id string - ID of subnet.
- vpc
Id string - ID of VPC.
- address str
- DNS domain name.
- ip str
- Ip.
- net_
type str - Network type. 1: inner (private network address), 2: public (public network address).
- port float
- Connection port address.
- protocol_
type str - Specifies the protocol type to connect to the database. currently supported: postgresql, mssql (mssql compatible syntax).
- status str
- Network connection status. Valid values:
initing(never enabled before),opened(enabled),closed(disabled),opening(enabling),closing(disabling). - subnet_
id str - ID of subnet.
- vpc_
id str - ID of VPC.
- address String
- DNS domain name.
- ip String
- Ip.
- net
Type String - Network type. 1: inner (private network address), 2: public (public network address).
- port Number
- Connection port address.
- protocol
Type String - Specifies the protocol type to connect to the database. currently supported: postgresql, mssql (mssql compatible syntax).
- status String
- Network connection status. Valid values:
initing(never enabled before),opened(enabled),closed(disabled),opening(enabling),closing(disabling). - subnet
Id String - ID of subnet.
- vpc
Id String - ID of VPC.
GetPostgresqlInstancesDbInstanceSetDbNodeSet
- Dedicated
Cluster stringId - Role string
- Node type. Valid values:
Primary;Standby. - Zone string
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- Dedicated
Cluster stringId - Role string
- Node type. Valid values:
Primary;Standby. - Zone string
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- dedicated
Cluster StringId - role String
- Node type. Valid values:
Primary;Standby. - zone String
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- dedicated
Cluster stringId - role string
- Node type. Valid values:
Primary;Standby. - zone string
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- dedicated_
cluster_ strid - role str
- Node type. Valid values:
Primary;Standby. - zone str
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
- dedicated
Cluster StringId - role String
- Node type. Valid values:
Primary;Standby. - zone String
- Instance AZ such as ap-guangzhou-3, which corresponds to the
Zonefield ofZoneSet.
GetPostgresqlInstancesDbInstanceSetNetworkAccessList
- Resource
Id string - Network resource id, instance id, or RO group id.
- Resource
Type double - Resource type. valid values: 1 (instance), 2 (RO group).
- Subnet
Id string - ID of subnet.
- Vip string
- IPv4 Address.
- Vip6 string
- IPv6 Address.
- Vpc
Id string - ID of VPC.
- Vpc
Status double - Network status. valid values: 1-applying, 2-active, 3-deleting, 4-deleted.
- Vport double
- Specifies the access port.
- Resource
Id string - Network resource id, instance id, or RO group id.
- Resource
Type float64 - Resource type. valid values: 1 (instance), 2 (RO group).
- Subnet
Id string - ID of subnet.
- Vip string
- IPv4 Address.
- Vip6 string
- IPv6 Address.
- Vpc
Id string - ID of VPC.
- Vpc
Status float64 - Network status. valid values: 1-applying, 2-active, 3-deleting, 4-deleted.
- Vport float64
- Specifies the access port.
- resource
Id String - Network resource id, instance id, or RO group id.
- resource
Type Double - Resource type. valid values: 1 (instance), 2 (RO group).
- subnet
Id String - ID of subnet.
- vip String
- IPv4 Address.
- vip6 String
- IPv6 Address.
- vpc
Id String - ID of VPC.
- vpc
Status Double - Network status. valid values: 1-applying, 2-active, 3-deleting, 4-deleted.
- vport Double
- Specifies the access port.
- resource
Id string - Network resource id, instance id, or RO group id.
- resource
Type number - Resource type. valid values: 1 (instance), 2 (RO group).
- subnet
Id string - ID of subnet.
- vip string
- IPv4 Address.
- vip6 string
- IPv6 Address.
- vpc
Id string - ID of VPC.
- vpc
Status number - Network status. valid values: 1-applying, 2-active, 3-deleting, 4-deleted.
- vport number
- Specifies the access port.
- resource_
id str - Network resource id, instance id, or RO group id.
- resource_
type float - Resource type. valid values: 1 (instance), 2 (RO group).
- subnet_
id str - ID of subnet.
- vip str
- IPv4 Address.
- vip6 str
- IPv6 Address.
- vpc_
id str - ID of VPC.
- vpc_
status float - Network status. valid values: 1-applying, 2-active, 3-deleting, 4-deleted.
- vport float
- Specifies the access port.
- resource
Id String - Network resource id, instance id, or RO group id.
- resource
Type Number - Resource type. valid values: 1 (instance), 2 (RO group).
- subnet
Id String - ID of subnet.
- vip String
- IPv4 Address.
- vip6 String
- IPv6 Address.
- vpc
Id String - ID of VPC.
- vpc
Status Number - Network status. valid values: 1-applying, 2-active, 3-deleting, 4-deleted.
- vport Number
- Specifies the access port.
GetPostgresqlInstancesDbInstanceSetTagList
GetPostgresqlInstancesInstanceList
- Auto
Renew doubleFlag - Auto renew flag.
- Availability
Zone string - Availability zone.
- Charge
Type string - Pay type of the postgresql instance.
- Charset string
- Charset of the postgresql instance.
- Create
Time string - Create time of the postgresql instance.
- Db
Kernel stringVersion - PostgreSQL kernel version number.
- Db
Major stringVersion - PostgreSQL major version number.
- Engine
Version string - Version of the postgresql database engine.
- Id string
- ID of the postgresql instance to be query.
- Memory double
- Memory size(in GB).
- Name string
- Name of the postgresql instance to be query.
- Private
Access stringIp - IP address for private access.
- Private
Access doublePort - Port for private access.
- Project
Id double - Project ID of the postgresql instance to be query.
- Public
Access stringHost - Host for public access.
- Public
Access doublePort - Port for public access.
- Public
Access boolSwitch - Indicates whether to enable the access to an instance from public network or not.
- Root
User string - Instance root account name, default value is
root. - Storage double
- Volume size(in GB).
- Subnet
Id string - ID of subnet.
- Dictionary<string, string>
- The available tags within this postgresql.
- Vpc
Id string - ID of VPC.
- Auto
Renew float64Flag - Auto renew flag.
- Availability
Zone string - Availability zone.
- Charge
Type string - Pay type of the postgresql instance.
- Charset string
- Charset of the postgresql instance.
- Create
Time string - Create time of the postgresql instance.
- Db
Kernel stringVersion - PostgreSQL kernel version number.
- Db
Major stringVersion - PostgreSQL major version number.
- Engine
Version string - Version of the postgresql database engine.
- Id string
- ID of the postgresql instance to be query.
- Memory float64
- Memory size(in GB).
- Name string
- Name of the postgresql instance to be query.
- Private
Access stringIp - IP address for private access.
- Private
Access float64Port - Port for private access.
- Project
Id float64 - Project ID of the postgresql instance to be query.
- Public
Access stringHost - Host for public access.
- Public
Access float64Port - Port for public access.
- Public
Access boolSwitch - Indicates whether to enable the access to an instance from public network or not.
- Root
User string - Instance root account name, default value is
root. - Storage float64
- Volume size(in GB).
- Subnet
Id string - ID of subnet.
- map[string]string
- The available tags within this postgresql.
- Vpc
Id string - ID of VPC.
- auto
Renew DoubleFlag - Auto renew flag.
- availability
Zone String - Availability zone.
- charge
Type String - Pay type of the postgresql instance.
- charset String
- Charset of the postgresql instance.
- create
Time String - Create time of the postgresql instance.
- db
Kernel StringVersion - PostgreSQL kernel version number.
- db
Major StringVersion - PostgreSQL major version number.
- engine
Version String - Version of the postgresql database engine.
- id String
- ID of the postgresql instance to be query.
- memory Double
- Memory size(in GB).
- name String
- Name of the postgresql instance to be query.
- private
Access StringIp - IP address for private access.
- private
Access DoublePort - Port for private access.
- project
Id Double - Project ID of the postgresql instance to be query.
- public
Access StringHost - Host for public access.
- public
Access DoublePort - Port for public access.
- public
Access BooleanSwitch - Indicates whether to enable the access to an instance from public network or not.
- root
User String - Instance root account name, default value is
root. - storage Double
- Volume size(in GB).
- subnet
Id String - ID of subnet.
- Map<String,String>
- The available tags within this postgresql.
- vpc
Id String - ID of VPC.
- auto
Renew numberFlag - Auto renew flag.
- availability
Zone string - Availability zone.
- charge
Type string - Pay type of the postgresql instance.
- charset string
- Charset of the postgresql instance.
- create
Time string - Create time of the postgresql instance.
- db
Kernel stringVersion - PostgreSQL kernel version number.
- db
Major stringVersion - PostgreSQL major version number.
- engine
Version string - Version of the postgresql database engine.
- id string
- ID of the postgresql instance to be query.
- memory number
- Memory size(in GB).
- name string
- Name of the postgresql instance to be query.
- private
Access stringIp - IP address for private access.
- private
Access numberPort - Port for private access.
- project
Id number - Project ID of the postgresql instance to be query.
- public
Access stringHost - Host for public access.
- public
Access numberPort - Port for public access.
- public
Access booleanSwitch - Indicates whether to enable the access to an instance from public network or not.
- root
User string - Instance root account name, default value is
root. - storage number
- Volume size(in GB).
- subnet
Id string - ID of subnet.
- {[key: string]: string}
- The available tags within this postgresql.
- vpc
Id string - ID of VPC.
- auto_
renew_ floatflag - Auto renew flag.
- availability_
zone str - Availability zone.
- charge_
type str - Pay type of the postgresql instance.
- charset str
- Charset of the postgresql instance.
- create_
time str - Create time of the postgresql instance.
- db_
kernel_ strversion - PostgreSQL kernel version number.
- db_
major_ strversion - PostgreSQL major version number.
- engine_
version str - Version of the postgresql database engine.
- id str
- ID of the postgresql instance to be query.
- memory float
- Memory size(in GB).
- name str
- Name of the postgresql instance to be query.
- private_
access_ strip - IP address for private access.
- private_
access_ floatport - Port for private access.
- project_
id float - Project ID of the postgresql instance to be query.
- public_
access_ strhost - Host for public access.
- public_
access_ floatport - Port for public access.
- public_
access_ boolswitch - Indicates whether to enable the access to an instance from public network or not.
- root_
user str - Instance root account name, default value is
root. - storage float
- Volume size(in GB).
- subnet_
id str - ID of subnet.
- Mapping[str, str]
- The available tags within this postgresql.
- vpc_
id str - ID of VPC.
- auto
Renew NumberFlag - Auto renew flag.
- availability
Zone String - Availability zone.
- charge
Type String - Pay type of the postgresql instance.
- charset String
- Charset of the postgresql instance.
- create
Time String - Create time of the postgresql instance.
- db
Kernel StringVersion - PostgreSQL kernel version number.
- db
Major StringVersion - PostgreSQL major version number.
- engine
Version String - Version of the postgresql database engine.
- id String
- ID of the postgresql instance to be query.
- memory Number
- Memory size(in GB).
- name String
- Name of the postgresql instance to be query.
- private
Access StringIp - IP address for private access.
- private
Access NumberPort - Port for private access.
- project
Id Number - Project ID of the postgresql instance to be query.
- public
Access StringHost - Host for public access.
- public
Access NumberPort - Port for public access.
- public
Access BooleanSwitch - Indicates whether to enable the access to an instance from public network or not.
- root
User String - Instance root account name, default value is
root. - storage Number
- Volume size(in GB).
- subnet
Id String - ID of subnet.
- Map<String>
- The available tags within this postgresql.
- vpc
Id String - ID of VPC.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.64 published on Friday, Jan 30, 2026 by tencentcloudstack
