Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
Use this data source to query detailed information of rds postgresql instance specs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const example = volcengine.rds_postgresql.getInstanceSpecs({
dbEngineVersion: "PostgreSQL_12",
specCode: "rds.postgres.32c128g",
storageType: "LocalSSD",
zoneId: "cn-chongqing-a",
});
import pulumi
import pulumi_volcengine as volcengine
example = volcengine.rds_postgresql.get_instance_specs(db_engine_version="PostgreSQL_12",
spec_code="rds.postgres.32c128g",
storage_type="LocalSSD",
zone_id="cn-chongqing-a")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds_postgresql.GetInstanceSpecs(ctx, &rds_postgresql.GetInstanceSpecsArgs{
DbEngineVersion: pulumi.StringRef("PostgreSQL_12"),
SpecCode: pulumi.StringRef("rds.postgres.32c128g"),
StorageType: pulumi.StringRef("LocalSSD"),
ZoneId: pulumi.StringRef("cn-chongqing-a"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var example = Volcengine.Rds_postgresql.GetInstanceSpecs.Invoke(new()
{
DbEngineVersion = "PostgreSQL_12",
SpecCode = "rds.postgres.32c128g",
StorageType = "LocalSSD",
ZoneId = "cn-chongqing-a",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds_postgresql.Rds_postgresqlFunctions;
import com.pulumi.volcengine.rds_postgresql.inputs.GetInstanceSpecsArgs;
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 = Rds_postgresqlFunctions.getInstanceSpecs(GetInstanceSpecsArgs.builder()
.dbEngineVersion("PostgreSQL_12")
.specCode("rds.postgres.32c128g")
.storageType("LocalSSD")
.zoneId("cn-chongqing-a")
.build());
}
}
variables:
example:
fn::invoke:
Function: volcengine:rds_postgresql:getInstanceSpecs
Arguments:
dbEngineVersion: PostgreSQL_12
specCode: rds.postgres.32c128g
storageType: LocalSSD
zoneId: cn-chongqing-a
Using getInstanceSpecs
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 getInstanceSpecs(args: GetInstanceSpecsArgs, opts?: InvokeOptions): Promise<GetInstanceSpecsResult>
function getInstanceSpecsOutput(args: GetInstanceSpecsOutputArgs, opts?: InvokeOptions): Output<GetInstanceSpecsResult>def get_instance_specs(db_engine_version: Optional[str] = None,
output_file: Optional[str] = None,
spec_code: Optional[str] = None,
storage_type: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceSpecsResult
def get_instance_specs_output(db_engine_version: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
spec_code: Optional[pulumi.Input[str]] = None,
storage_type: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceSpecsResult]func GetInstanceSpecs(ctx *Context, args *GetInstanceSpecsArgs, opts ...InvokeOption) (*GetInstanceSpecsResult, error)
func GetInstanceSpecsOutput(ctx *Context, args *GetInstanceSpecsOutputArgs, opts ...InvokeOption) GetInstanceSpecsResultOutput> Note: This function is named GetInstanceSpecs in the Go SDK.
public static class GetInstanceSpecs
{
public static Task<GetInstanceSpecsResult> InvokeAsync(GetInstanceSpecsArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceSpecsResult> Invoke(GetInstanceSpecsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstanceSpecsResult> getInstanceSpecs(GetInstanceSpecsArgs args, InvokeOptions options)
public static Output<GetInstanceSpecsResult> getInstanceSpecs(GetInstanceSpecsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:rds_postgresql/getInstanceSpecs:getInstanceSpecs
arguments:
# arguments dictionaryThe following arguments are supported:
- Db
Engine stringVersion - The version of the RDS PostgreSQL instance.
- Output
File string - File name where to save data source results.
- Spec
Code string - Instance specification code.
- Storage
Type string - Storage type, fixed to LocalSSD.
- Zone
Id string - Primary availability zone ID.
- Db
Engine stringVersion - The version of the RDS PostgreSQL instance.
- Output
File string - File name where to save data source results.
- Spec
Code string - Instance specification code.
- Storage
Type string - Storage type, fixed to LocalSSD.
- Zone
Id string - Primary availability zone ID.
- db
Engine StringVersion - The version of the RDS PostgreSQL instance.
- output
File String - File name where to save data source results.
- spec
Code String - Instance specification code.
- storage
Type String - Storage type, fixed to LocalSSD.
- zone
Id String - Primary availability zone ID.
- db
Engine stringVersion - The version of the RDS PostgreSQL instance.
- output
File string - File name where to save data source results.
- spec
Code string - Instance specification code.
- storage
Type string - Storage type, fixed to LocalSSD.
- zone
Id string - Primary availability zone ID.
- db_
engine_ strversion - The version of the RDS PostgreSQL instance.
- output_
file str - File name where to save data source results.
- spec_
code str - Instance specification code.
- storage_
type str - Storage type, fixed to LocalSSD.
- zone_
id str - Primary availability zone ID.
- db
Engine StringVersion - The version of the RDS PostgreSQL instance.
- output
File String - File name where to save data source results.
- spec
Code String - Instance specification code.
- storage
Type String - Storage type, fixed to LocalSSD.
- zone
Id String - Primary availability zone ID.
getInstanceSpecs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Specs List<GetInstance Specs Instance Spec> - Available instance specs.
- Total
Count int - The total count of query.
- Db
Engine stringVersion - The version of the RDS PostgreSQL instance.
- Output
File string - Spec
Code string - Instance specification code.
- Storage
Type string - Storage type, fixed to LocalSSD.
- Zone
Id string - Supported availability zone ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Specs []GetInstance Specs Instance Spec - Available instance specs.
- Total
Count int - The total count of query.
- Db
Engine stringVersion - The version of the RDS PostgreSQL instance.
- Output
File string - Spec
Code string - Instance specification code.
- Storage
Type string - Storage type, fixed to LocalSSD.
- Zone
Id string - Supported availability zone ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Specs List<GetInstance Specs Instance Spec> - Available instance specs.
- total
Count Integer - The total count of query.
- db
Engine StringVersion - The version of the RDS PostgreSQL instance.
- output
File String - spec
Code String - Instance specification code.
- storage
Type String - Storage type, fixed to LocalSSD.
- zone
Id String - Supported availability zone ID.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Specs GetInstance Specs Instance Spec[] - Available instance specs.
- total
Count number - The total count of query.
- db
Engine stringVersion - The version of the RDS PostgreSQL instance.
- output
File string - spec
Code string - Instance specification code.
- storage
Type string - Storage type, fixed to LocalSSD.
- zone
Id string - Supported availability zone ID.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
specs Sequence[GetInstance Specs Instance Spec] - Available instance specs.
- total_
count int - The total count of query.
- db_
engine_ strversion - The version of the RDS PostgreSQL instance.
- output_
file str - spec_
code str - Instance specification code.
- storage_
type str - Storage type, fixed to LocalSSD.
- zone_
id str - Supported availability zone ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Specs List<Property Map> - Available instance specs.
- total
Count Number - The total count of query.
- db
Engine StringVersion - The version of the RDS PostgreSQL instance.
- output
File String - spec
Code String - Instance specification code.
- storage
Type String - Storage type, fixed to LocalSSD.
- zone
Id String - Supported availability zone ID.
Supporting Types
GetInstanceSpecsInstanceSpec
- Connection int
- The maximum number of connections supported by the instance.
- Db
Engine stringVersion - The version of the RDS PostgreSQL instance.
- Memory int
- The memory size of the instance. Unit: GB.
- Region
Id string - The ID of the region.
- Spec
Code string - Instance specification code.
- Storage
Type string - Storage type, fixed to LocalSSD.
- VCpu int
- The number of vCPUs of the instance.
- Zone
Id string - Primary availability zone ID.
- Connection int
- The maximum number of connections supported by the instance.
- Db
Engine stringVersion - The version of the RDS PostgreSQL instance.
- Memory int
- The memory size of the instance. Unit: GB.
- Region
Id string - The ID of the region.
- Spec
Code string - Instance specification code.
- Storage
Type string - Storage type, fixed to LocalSSD.
- VCpu int
- The number of vCPUs of the instance.
- Zone
Id string - Primary availability zone ID.
- connection Integer
- The maximum number of connections supported by the instance.
- db
Engine StringVersion - The version of the RDS PostgreSQL instance.
- memory Integer
- The memory size of the instance. Unit: GB.
- region
Id String - The ID of the region.
- spec
Code String - Instance specification code.
- storage
Type String - Storage type, fixed to LocalSSD.
- v
Cpu Integer - The number of vCPUs of the instance.
- zone
Id String - Primary availability zone ID.
- connection number
- The maximum number of connections supported by the instance.
- db
Engine stringVersion - The version of the RDS PostgreSQL instance.
- memory number
- The memory size of the instance. Unit: GB.
- region
Id string - The ID of the region.
- spec
Code string - Instance specification code.
- storage
Type string - Storage type, fixed to LocalSSD.
- v
Cpu number - The number of vCPUs of the instance.
- zone
Id string - Primary availability zone ID.
- connection int
- The maximum number of connections supported by the instance.
- db_
engine_ strversion - The version of the RDS PostgreSQL instance.
- memory int
- The memory size of the instance. Unit: GB.
- region_
id str - The ID of the region.
- spec_
code str - Instance specification code.
- storage_
type str - Storage type, fixed to LocalSSD.
- v_
cpu int - The number of vCPUs of the instance.
- zone_
id str - Primary availability zone ID.
- connection Number
- The maximum number of connections supported by the instance.
- db
Engine StringVersion - The version of the RDS PostgreSQL instance.
- memory Number
- The memory size of the instance. Unit: GB.
- region
Id String - The ID of the region.
- spec
Code String - Instance specification code.
- storage
Type String - Storage type, fixed to LocalSSD.
- v
Cpu Number - The number of vCPUs of the instance.
- zone
Id String - Primary availability zone ID.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
