1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getRdsStorageTypes
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getRdsStorageTypes

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get the list of RDS storage types.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject("instanceId");
    const test = flexibleengine.getRdsStorageTypes({
        dbType: "MySQL",
        dbVersion: "8.0",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    test = flexibleengine.get_rds_storage_types(db_type="MySQL",
        db_version="8.0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId := cfg.RequireObject("instanceId")
    		_, err := flexibleengine.GetRdsStorageTypes(ctx, &flexibleengine.GetRdsStorageTypesArgs{
    			DbType:    "MySQL",
    			DbVersion: "8.0",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var test = Flexibleengine.GetRdsStorageTypes.Invoke(new()
        {
            DbType = "MySQL",
            DbVersion = "8.0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetRdsStorageTypesArgs;
    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 config = ctx.config();
            final var instanceId = config.get("instanceId");
            final var test = FlexibleengineFunctions.getRdsStorageTypes(GetRdsStorageTypesArgs.builder()
                .dbType("MySQL")
                .dbVersion("8.0")
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getRdsStorageTypes
          arguments:
            dbType: MySQL
            dbVersion: '8.0'
    

    Using getRdsStorageTypes

    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 getRdsStorageTypes(args: GetRdsStorageTypesArgs, opts?: InvokeOptions): Promise<GetRdsStorageTypesResult>
    function getRdsStorageTypesOutput(args: GetRdsStorageTypesOutputArgs, opts?: InvokeOptions): Output<GetRdsStorageTypesResult>
    def get_rds_storage_types(db_type: Optional[str] = None,
                              db_version: Optional[str] = None,
                              id: Optional[str] = None,
                              instance_mode: Optional[str] = None,
                              region: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetRdsStorageTypesResult
    def get_rds_storage_types_output(db_type: Optional[pulumi.Input[str]] = None,
                              db_version: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              instance_mode: Optional[pulumi.Input[str]] = None,
                              region: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetRdsStorageTypesResult]
    func GetRdsStorageTypes(ctx *Context, args *GetRdsStorageTypesArgs, opts ...InvokeOption) (*GetRdsStorageTypesResult, error)
    func GetRdsStorageTypesOutput(ctx *Context, args *GetRdsStorageTypesOutputArgs, opts ...InvokeOption) GetRdsStorageTypesResultOutput

    > Note: This function is named GetRdsStorageTypes in the Go SDK.

    public static class GetRdsStorageTypes 
    {
        public static Task<GetRdsStorageTypesResult> InvokeAsync(GetRdsStorageTypesArgs args, InvokeOptions? opts = null)
        public static Output<GetRdsStorageTypesResult> Invoke(GetRdsStorageTypesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRdsStorageTypesResult> getRdsStorageTypes(GetRdsStorageTypesArgs args, InvokeOptions options)
    public static Output<GetRdsStorageTypesResult> getRdsStorageTypes(GetRdsStorageTypesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getRdsStorageTypes:getRdsStorageTypes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbType string
    Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
    DbVersion string
    Specifies the database version. For details about how to obtain the database version, see section Querying Version Information About a DB Engine.
    Id string
    The resource ID.
    InstanceMode string
    Specifies the HA mode. The value options are as follows: single, ha, replica.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    DbType string
    Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
    DbVersion string
    Specifies the database version. For details about how to obtain the database version, see section Querying Version Information About a DB Engine.
    Id string
    The resource ID.
    InstanceMode string
    Specifies the HA mode. The value options are as follows: single, ha, replica.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    dbType String
    Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
    dbVersion String
    Specifies the database version. For details about how to obtain the database version, see section Querying Version Information About a DB Engine.
    id String
    The resource ID.
    instanceMode String
    Specifies the HA mode. The value options are as follows: single, ha, replica.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    dbType string
    Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
    dbVersion string
    Specifies the database version. For details about how to obtain the database version, see section Querying Version Information About a DB Engine.
    id string
    The resource ID.
    instanceMode string
    Specifies the HA mode. The value options are as follows: single, ha, replica.
    region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    db_type str
    Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
    db_version str
    Specifies the database version. For details about how to obtain the database version, see section Querying Version Information About a DB Engine.
    id str
    The resource ID.
    instance_mode str
    Specifies the HA mode. The value options are as follows: single, ha, replica.
    region str
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    dbType String
    Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
    dbVersion String
    Specifies the database version. For details about how to obtain the database version, see section Querying Version Information About a DB Engine.
    id String
    The resource ID.
    instanceMode String
    Specifies the HA mode. The value options are as follows: single, ha, replica.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.

    getRdsStorageTypes Result

    The following output properties are available:

    DbType string
    DbVersion string
    Id string
    The resource ID.
    Region string
    StorageTypes List<GetRdsStorageTypesStorageType>
    Indicates the DB instance specifications information list. For details, see Data structure of the storage_type field. The storage_types structure is documented below.
    InstanceMode string
    DbType string
    DbVersion string
    Id string
    The resource ID.
    Region string
    StorageTypes []GetRdsStorageTypesStorageType
    Indicates the DB instance specifications information list. For details, see Data structure of the storage_type field. The storage_types structure is documented below.
    InstanceMode string
    dbType String
    dbVersion String
    id String
    The resource ID.
    region String
    storageTypes List<GetRdsStorageTypesStorageType>
    Indicates the DB instance specifications information list. For details, see Data structure of the storage_type field. The storage_types structure is documented below.
    instanceMode String
    dbType string
    dbVersion string
    id string
    The resource ID.
    region string
    storageTypes GetRdsStorageTypesStorageType[]
    Indicates the DB instance specifications information list. For details, see Data structure of the storage_type field. The storage_types structure is documented below.
    instanceMode string
    db_type str
    db_version str
    id str
    The resource ID.
    region str
    storage_types Sequence[GetRdsStorageTypesStorageType]
    Indicates the DB instance specifications information list. For details, see Data structure of the storage_type field. The storage_types structure is documented below.
    instance_mode str
    dbType String
    dbVersion String
    id String
    The resource ID.
    region String
    storageTypes List<Property Map>
    Indicates the DB instance specifications information list. For details, see Data structure of the storage_type field. The storage_types structure is documented below.
    instanceMode String

    Supporting Types

    GetRdsStorageTypesStorageType

    AzStatus Dictionary<string, string>
    The status details of the AZs to which the specification belongs. Key indicates the AZ ID, and value indicates the specification status in the AZ. The options of value are as follows:

    • normal: The specifications in the AZ are available.
    • unsupported: The specifications are not supported by the AZ.
    • sellout: The specifications in the AZ are sold out.
    Name string
    Indicates the storage type. Its value can be any of the following:

    • COMMON: Indicates the SATA type.
    • ULTRAHIGH: Indicates the SSD type.
    SupportComputeGroupTypes List<string>
    Performance specifications. The options are as follows:

    • normal: General-enhanced.
    • normal2: General-enhanced II.
    • armFlavors: Kunpeng general-enhanced.
    • dedicicatenormal: Exclusive x86.
    • armlocalssd: Standard Kunpeng.
    • normallocalssd: Standard x86.
    • general: General-purpose.
    • dedicated: Dedicated, which is only supported for cloud SSDs.
    • rapid: Dedicated, which is only supported for extreme SSDs.
    • bigmen: Large-memory.
    AzStatus map[string]string
    The status details of the AZs to which the specification belongs. Key indicates the AZ ID, and value indicates the specification status in the AZ. The options of value are as follows:

    • normal: The specifications in the AZ are available.
    • unsupported: The specifications are not supported by the AZ.
    • sellout: The specifications in the AZ are sold out.
    Name string
    Indicates the storage type. Its value can be any of the following:

    • COMMON: Indicates the SATA type.
    • ULTRAHIGH: Indicates the SSD type.
    SupportComputeGroupTypes []string
    Performance specifications. The options are as follows:

    • normal: General-enhanced.
    • normal2: General-enhanced II.
    • armFlavors: Kunpeng general-enhanced.
    • dedicicatenormal: Exclusive x86.
    • armlocalssd: Standard Kunpeng.
    • normallocalssd: Standard x86.
    • general: General-purpose.
    • dedicated: Dedicated, which is only supported for cloud SSDs.
    • rapid: Dedicated, which is only supported for extreme SSDs.
    • bigmen: Large-memory.
    azStatus Map<String,String>
    The status details of the AZs to which the specification belongs. Key indicates the AZ ID, and value indicates the specification status in the AZ. The options of value are as follows:

    • normal: The specifications in the AZ are available.
    • unsupported: The specifications are not supported by the AZ.
    • sellout: The specifications in the AZ are sold out.
    name String
    Indicates the storage type. Its value can be any of the following:

    • COMMON: Indicates the SATA type.
    • ULTRAHIGH: Indicates the SSD type.
    supportComputeGroupTypes List<String>
    Performance specifications. The options are as follows:

    • normal: General-enhanced.
    • normal2: General-enhanced II.
    • armFlavors: Kunpeng general-enhanced.
    • dedicicatenormal: Exclusive x86.
    • armlocalssd: Standard Kunpeng.
    • normallocalssd: Standard x86.
    • general: General-purpose.
    • dedicated: Dedicated, which is only supported for cloud SSDs.
    • rapid: Dedicated, which is only supported for extreme SSDs.
    • bigmen: Large-memory.
    azStatus {[key: string]: string}
    The status details of the AZs to which the specification belongs. Key indicates the AZ ID, and value indicates the specification status in the AZ. The options of value are as follows:

    • normal: The specifications in the AZ are available.
    • unsupported: The specifications are not supported by the AZ.
    • sellout: The specifications in the AZ are sold out.
    name string
    Indicates the storage type. Its value can be any of the following:

    • COMMON: Indicates the SATA type.
    • ULTRAHIGH: Indicates the SSD type.
    supportComputeGroupTypes string[]
    Performance specifications. The options are as follows:

    • normal: General-enhanced.
    • normal2: General-enhanced II.
    • armFlavors: Kunpeng general-enhanced.
    • dedicicatenormal: Exclusive x86.
    • armlocalssd: Standard Kunpeng.
    • normallocalssd: Standard x86.
    • general: General-purpose.
    • dedicated: Dedicated, which is only supported for cloud SSDs.
    • rapid: Dedicated, which is only supported for extreme SSDs.
    • bigmen: Large-memory.
    az_status Mapping[str, str]
    The status details of the AZs to which the specification belongs. Key indicates the AZ ID, and value indicates the specification status in the AZ. The options of value are as follows:

    • normal: The specifications in the AZ are available.
    • unsupported: The specifications are not supported by the AZ.
    • sellout: The specifications in the AZ are sold out.
    name str
    Indicates the storage type. Its value can be any of the following:

    • COMMON: Indicates the SATA type.
    • ULTRAHIGH: Indicates the SSD type.
    support_compute_group_types Sequence[str]
    Performance specifications. The options are as follows:

    • normal: General-enhanced.
    • normal2: General-enhanced II.
    • armFlavors: Kunpeng general-enhanced.
    • dedicicatenormal: Exclusive x86.
    • armlocalssd: Standard Kunpeng.
    • normallocalssd: Standard x86.
    • general: General-purpose.
    • dedicated: Dedicated, which is only supported for cloud SSDs.
    • rapid: Dedicated, which is only supported for extreme SSDs.
    • bigmen: Large-memory.
    azStatus Map<String>
    The status details of the AZs to which the specification belongs. Key indicates the AZ ID, and value indicates the specification status in the AZ. The options of value are as follows:

    • normal: The specifications in the AZ are available.
    • unsupported: The specifications are not supported by the AZ.
    • sellout: The specifications in the AZ are sold out.
    name String
    Indicates the storage type. Its value can be any of the following:

    • COMMON: Indicates the SATA type.
    • ULTRAHIGH: Indicates the SSD type.
    supportComputeGroupTypes List<String>
    Performance specifications. The options are as follows:

    • normal: General-enhanced.
    • normal2: General-enhanced II.
    • armFlavors: Kunpeng general-enhanced.
    • dedicicatenormal: Exclusive x86.
    • armlocalssd: Standard Kunpeng.
    • normallocalssd: Standard x86.
    • general: General-purpose.
    • dedicated: Dedicated, which is only supported for cloud SSDs.
    • rapid: Dedicated, which is only supported for extreme SSDs.
    • bigmen: Large-memory.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud