1. Packages
  2. Volcengine
  3. API Docs
  4. rds_postgresql
  5. InstanceSpecs
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
volcengine logo
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
    Deprecated: volcengine.rds_postgresql.InstanceSpecs has been deprecated in favor of volcengine.rds_postgresql.getInstanceSpecs

    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 InstanceSpecs

    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 instanceSpecs(args: InstanceSpecsArgs, opts?: InvokeOptions): Promise<InstanceSpecsResult>
    function instanceSpecsOutput(args: InstanceSpecsOutputArgs, opts?: InvokeOptions): Output<InstanceSpecsResult>
    def 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) -> InstanceSpecsResult
    def 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[InstanceSpecsResult]
    func InstanceSpecs(ctx *Context, args *InstanceSpecsArgs, opts ...InvokeOption) (*InstanceSpecsResult, error)
    func InstanceSpecsOutput(ctx *Context, args *InstanceSpecsOutputArgs, opts ...InvokeOption) InstanceSpecsResultOutput
    public static class InstanceSpecs 
    {
        public static Task<InstanceSpecsResult> InvokeAsync(InstanceSpecsArgs args, InvokeOptions? opts = null)
        public static Output<InstanceSpecsResult> Invoke(InstanceSpecsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<InstanceSpecsResult> instanceSpecs(InstanceSpecsArgs args, InvokeOptions options)
    public static Output<InstanceSpecsResult> instanceSpecs(InstanceSpecsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:rds_postgresql:InstanceSpecs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbEngineVersion string
    The version of the RDS PostgreSQL instance.
    OutputFile string
    File name where to save data source results.
    SpecCode string
    Instance specification code.
    StorageType string
    Storage type, fixed to LocalSSD.
    ZoneId string
    Primary availability zone ID.
    DbEngineVersion string
    The version of the RDS PostgreSQL instance.
    OutputFile string
    File name where to save data source results.
    SpecCode string
    Instance specification code.
    StorageType string
    Storage type, fixed to LocalSSD.
    ZoneId string
    Primary availability zone ID.
    dbEngineVersion String
    The version of the RDS PostgreSQL instance.
    outputFile String
    File name where to save data source results.
    specCode String
    Instance specification code.
    storageType String
    Storage type, fixed to LocalSSD.
    zoneId String
    Primary availability zone ID.
    dbEngineVersion string
    The version of the RDS PostgreSQL instance.
    outputFile string
    File name where to save data source results.
    specCode string
    Instance specification code.
    storageType string
    Storage type, fixed to LocalSSD.
    zoneId string
    Primary availability zone ID.
    db_engine_version str
    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.
    dbEngineVersion String
    The version of the RDS PostgreSQL instance.
    outputFile String
    File name where to save data source results.
    specCode String
    Instance specification code.
    storageType String
    Storage type, fixed to LocalSSD.
    zoneId String
    Primary availability zone ID.

    InstanceSpecs Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceSpecs List<InstanceSpecsInstanceSpec>
    Available instance specs.
    TotalCount int
    The total count of query.
    DbEngineVersion string
    The version of the RDS PostgreSQL instance.
    OutputFile string
    SpecCode string
    Instance specification code.
    StorageType string
    Storage type, fixed to LocalSSD.
    ZoneId string
    Supported availability zone ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceSpecs []InstanceSpecsInstanceSpec
    Available instance specs.
    TotalCount int
    The total count of query.
    DbEngineVersion string
    The version of the RDS PostgreSQL instance.
    OutputFile string
    SpecCode string
    Instance specification code.
    StorageType string
    Storage type, fixed to LocalSSD.
    ZoneId string
    Supported availability zone ID.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceSpecs List<InstanceSpecsInstanceSpec>
    Available instance specs.
    totalCount Integer
    The total count of query.
    dbEngineVersion String
    The version of the RDS PostgreSQL instance.
    outputFile String
    specCode String
    Instance specification code.
    storageType String
    Storage type, fixed to LocalSSD.
    zoneId String
    Supported availability zone ID.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceSpecs InstanceSpecsInstanceSpec[]
    Available instance specs.
    totalCount number
    The total count of query.
    dbEngineVersion string
    The version of the RDS PostgreSQL instance.
    outputFile string
    specCode string
    Instance specification code.
    storageType string
    Storage type, fixed to LocalSSD.
    zoneId string
    Supported availability zone ID.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_specs Sequence[InstanceSpecsInstanceSpec]
    Available instance specs.
    total_count int
    The total count of query.
    db_engine_version str
    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.
    instanceSpecs List<Property Map>
    Available instance specs.
    totalCount Number
    The total count of query.
    dbEngineVersion String
    The version of the RDS PostgreSQL instance.
    outputFile String
    specCode String
    Instance specification code.
    storageType String
    Storage type, fixed to LocalSSD.
    zoneId String
    Supported availability zone ID.

    Supporting Types

    InstanceSpecsInstanceSpec

    Connection int
    The maximum number of connections supported by the instance.
    DbEngineVersion string
    The version of the RDS PostgreSQL instance.
    Memory int
    The memory size of the instance. Unit: GB.
    RegionId string
    The ID of the region.
    SpecCode string
    Instance specification code.
    StorageType string
    Storage type, fixed to LocalSSD.
    VCpu int
    The number of vCPUs of the instance.
    ZoneId string
    Primary availability zone ID.
    Connection int
    The maximum number of connections supported by the instance.
    DbEngineVersion string
    The version of the RDS PostgreSQL instance.
    Memory int
    The memory size of the instance. Unit: GB.
    RegionId string
    The ID of the region.
    SpecCode string
    Instance specification code.
    StorageType string
    Storage type, fixed to LocalSSD.
    VCpu int
    The number of vCPUs of the instance.
    ZoneId string
    Primary availability zone ID.
    connection Integer
    The maximum number of connections supported by the instance.
    dbEngineVersion String
    The version of the RDS PostgreSQL instance.
    memory Integer
    The memory size of the instance. Unit: GB.
    regionId String
    The ID of the region.
    specCode String
    Instance specification code.
    storageType String
    Storage type, fixed to LocalSSD.
    vCpu Integer
    The number of vCPUs of the instance.
    zoneId String
    Primary availability zone ID.
    connection number
    The maximum number of connections supported by the instance.
    dbEngineVersion string
    The version of the RDS PostgreSQL instance.
    memory number
    The memory size of the instance. Unit: GB.
    regionId string
    The ID of the region.
    specCode string
    Instance specification code.
    storageType string
    Storage type, fixed to LocalSSD.
    vCpu number
    The number of vCPUs of the instance.
    zoneId string
    Primary availability zone ID.
    connection int
    The maximum number of connections supported by the instance.
    db_engine_version str
    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.
    dbEngineVersion String
    The version of the RDS PostgreSQL instance.
    memory Number
    The memory size of the instance. Unit: GB.
    regionId String
    The ID of the region.
    specCode String
    Instance specification code.
    storageType String
    Storage type, fixed to LocalSSD.
    vCpu Number
    The number of vCPUs of the instance.
    zoneId String
    Primary availability zone ID.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate