flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getRdsStorageTypes
Explore with Pulumi AI
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:
- Db
Type string - Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
- Db
Version 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.
- Instance
Mode 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 string - Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
- Db
Version 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.
- Instance
Mode 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 String - Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
- db
Version 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.
- instance
Mode 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 string - Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
- db
Version 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.
- instance
Mode 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.
- db
Type String - Specifies the DB engine type. Its value can be any of the following and is case-insensitive: MySQL, PostgreSQL, SQLServer and MariaDB.
- db
Version 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.
- instance
Mode 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:
- Db
Type string - Db
Version string - Id string
- The resource ID.
- Region string
- Storage
Types List<GetRds Storage Types Storage Type> - 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 string
- Db
Type string - Db
Version string - Id string
- The resource ID.
- Region string
- Storage
Types []GetRds Storage Types Storage Type - 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 string
- db
Type String - db
Version String - id String
- The resource ID.
- region String
- storage
Types List<GetRds Storage Types Storage Type> - 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 String
- db
Type string - db
Version string - id string
- The resource ID.
- region string
- storage
Types GetRds Storage Types Storage Type[] - 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 string
- db_
type str - db_
version str - id str
- The resource ID.
- region str
- storage_
types Sequence[GetRds Storage Types Storage Type] - 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
- db
Type String - db
Version String - id String
- The resource ID.
- region String
- storage
Types 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.
- instance
Mode String
Supporting Types
GetRdsStorageTypesStorageType
- Az
Status 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.
- Support
Compute List<string>Group Types - 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 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.
- Support
Compute []stringGroup Types - 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 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.
- support
Compute List<String>Group Types - 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 {[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.
- support
Compute string[]Group Types - 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_ Sequence[str]group_ types - 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 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.
- support
Compute List<String>Group Types - 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 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud