alicloud.rds.getInstanceClassInfos
Explore with Pulumi AI
This data source operation to query the instance types that are available to specific instances of Alibaba Cloud.
NOTE: Available in v1.196.0+
Example Usage
data "alicloud_db_instance_class_infos" "resources" {
  commodity_code = "bards"
  order_type     = "BUY"
  output_file    = "./classes.txt"
}
output "first_db_instance_class" {
  value = "${data.alicloud_db_instance_class_infos.resources.infos.0}"
}
Using getInstanceClassInfos
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 getInstanceClassInfos(args: GetInstanceClassInfosArgs, opts?: InvokeOptions): Promise<GetInstanceClassInfosResult>
function getInstanceClassInfosOutput(args: GetInstanceClassInfosOutputArgs, opts?: InvokeOptions): Output<GetInstanceClassInfosResult>def get_instance_class_infos(commodity_code: Optional[str] = None,
                             db_instance_id: Optional[str] = None,
                             infos: Optional[Sequence[GetInstanceClassInfosInfo]] = None,
                             order_type: Optional[str] = None,
                             output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetInstanceClassInfosResult
def get_instance_class_infos_output(commodity_code: Optional[pulumi.Input[str]] = None,
                             db_instance_id: Optional[pulumi.Input[str]] = None,
                             infos: Optional[pulumi.Input[Sequence[pulumi.Input[GetInstanceClassInfosInfoArgs]]]] = None,
                             order_type: Optional[pulumi.Input[str]] = None,
                             output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetInstanceClassInfosResult]func GetInstanceClassInfos(ctx *Context, args *GetInstanceClassInfosArgs, opts ...InvokeOption) (*GetInstanceClassInfosResult, error)
func GetInstanceClassInfosOutput(ctx *Context, args *GetInstanceClassInfosOutputArgs, opts ...InvokeOption) GetInstanceClassInfosResultOutput> Note: This function is named GetInstanceClassInfos in the Go SDK.
public static class GetInstanceClassInfos 
{
    public static Task<GetInstanceClassInfosResult> InvokeAsync(GetInstanceClassInfosArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceClassInfosResult> Invoke(GetInstanceClassInfosInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstanceClassInfosResult> getInstanceClassInfos(GetInstanceClassInfosArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:rds/getInstanceClassInfos:getInstanceClassInfos
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Commodity
Code string - The commodity code of the instance. Valid values:
- bards: The instance is a pay-as-you-go primary instance. This value is available on the China site (aliyun.com).
 - rds: The instance is a subscription primary instance. This value is available on the China site (aliyun.com).
 - rords: The instance is a pay-as-you-go read-only instance. This value is available on the China site (aliyun.com).
 - rds_rordspre_public_cn: The instance is a subscription read-only instance. This value is available on the China site (aliyun.com).
 - bards_intl: The instance is a pay-as-you-go primary instance. This value is available on the International site (alibabacloud.com).
 - rds_intl: The instance is a subscription primary instance. This value is available on the International site (alibabacloud.com).
 - rords_intl: The instance is a pay-as-you-go read-only instance. This value is available on the International site (alibabacloud.com).
 - rds_rordspre_public_intl: The instance is a subscription read-only instance. This value is available on the International site (alibabacloud.com).
 
 - Order
Type string - FThe type of order that you want to query. Valid values:
- BUY: specifies the query orders that are used to purchase instances.
 - UPGRADE: specifies the query orders that are used to change the specifications of instances.
 - RENEW: specifies the query orders that are used to renew instances.
 - CONVERT: specifies the query orders that are used to change the billing methods of instances.
 
 - Db
Instance stringId  - The ID of the primary instance.
 - Infos
List<Pulumi.
Ali Cloud. Rds. Inputs. Get Instance Class Infos Info>  - A list of Rds available resource. Each element contains the following attributes:
 - Output
File string File name where to save data source results (after running
pulumi up).NOTE: If you use the CommodityCode parameter to query the instance types that are available to read-only instances, you must specify the DBInstanceId parameter.
- Commodity
Code string - The commodity code of the instance. Valid values:
- bards: The instance is a pay-as-you-go primary instance. This value is available on the China site (aliyun.com).
 - rds: The instance is a subscription primary instance. This value is available on the China site (aliyun.com).
 - rords: The instance is a pay-as-you-go read-only instance. This value is available on the China site (aliyun.com).
 - rds_rordspre_public_cn: The instance is a subscription read-only instance. This value is available on the China site (aliyun.com).
 - bards_intl: The instance is a pay-as-you-go primary instance. This value is available on the International site (alibabacloud.com).
 - rds_intl: The instance is a subscription primary instance. This value is available on the International site (alibabacloud.com).
 - rords_intl: The instance is a pay-as-you-go read-only instance. This value is available on the International site (alibabacloud.com).
 - rds_rordspre_public_intl: The instance is a subscription read-only instance. This value is available on the International site (alibabacloud.com).
 
 - Order
Type string - FThe type of order that you want to query. Valid values:
- BUY: specifies the query orders that are used to purchase instances.
 - UPGRADE: specifies the query orders that are used to change the specifications of instances.
 - RENEW: specifies the query orders that are used to renew instances.
 - CONVERT: specifies the query orders that are used to change the billing methods of instances.
 
 - Db
Instance stringId  - The ID of the primary instance.
 - Infos
[]Get
Instance Class Infos Info  - A list of Rds available resource. Each element contains the following attributes:
 - Output
File string File name where to save data source results (after running
pulumi up).NOTE: If you use the CommodityCode parameter to query the instance types that are available to read-only instances, you must specify the DBInstanceId parameter.
- commodity
Code String - The commodity code of the instance. Valid values:
- bards: The instance is a pay-as-you-go primary instance. This value is available on the China site (aliyun.com).
 - rds: The instance is a subscription primary instance. This value is available on the China site (aliyun.com).
 - rords: The instance is a pay-as-you-go read-only instance. This value is available on the China site (aliyun.com).
 - rds_rordspre_public_cn: The instance is a subscription read-only instance. This value is available on the China site (aliyun.com).
 - bards_intl: The instance is a pay-as-you-go primary instance. This value is available on the International site (alibabacloud.com).
 - rds_intl: The instance is a subscription primary instance. This value is available on the International site (alibabacloud.com).
 - rords_intl: The instance is a pay-as-you-go read-only instance. This value is available on the International site (alibabacloud.com).
 - rds_rordspre_public_intl: The instance is a subscription read-only instance. This value is available on the International site (alibabacloud.com).
 
 - order
Type String - FThe type of order that you want to query. Valid values:
- BUY: specifies the query orders that are used to purchase instances.
 - UPGRADE: specifies the query orders that are used to change the specifications of instances.
 - RENEW: specifies the query orders that are used to renew instances.
 - CONVERT: specifies the query orders that are used to change the billing methods of instances.
 
 - db
Instance StringId  - The ID of the primary instance.
 - infos
List<Get
Instance Class Infos Info>  - A list of Rds available resource. Each element contains the following attributes:
 - output
File String File name where to save data source results (after running
pulumi up).NOTE: If you use the CommodityCode parameter to query the instance types that are available to read-only instances, you must specify the DBInstanceId parameter.
- commodity
Code string - The commodity code of the instance. Valid values:
- bards: The instance is a pay-as-you-go primary instance. This value is available on the China site (aliyun.com).
 - rds: The instance is a subscription primary instance. This value is available on the China site (aliyun.com).
 - rords: The instance is a pay-as-you-go read-only instance. This value is available on the China site (aliyun.com).
 - rds_rordspre_public_cn: The instance is a subscription read-only instance. This value is available on the China site (aliyun.com).
 - bards_intl: The instance is a pay-as-you-go primary instance. This value is available on the International site (alibabacloud.com).
 - rds_intl: The instance is a subscription primary instance. This value is available on the International site (alibabacloud.com).
 - rords_intl: The instance is a pay-as-you-go read-only instance. This value is available on the International site (alibabacloud.com).
 - rds_rordspre_public_intl: The instance is a subscription read-only instance. This value is available on the International site (alibabacloud.com).
 
 - order
Type string - FThe type of order that you want to query. Valid values:
- BUY: specifies the query orders that are used to purchase instances.
 - UPGRADE: specifies the query orders that are used to change the specifications of instances.
 - RENEW: specifies the query orders that are used to renew instances.
 - CONVERT: specifies the query orders that are used to change the billing methods of instances.
 
 - db
Instance stringId  - The ID of the primary instance.
 - infos
Get
Instance Class Infos Info[]  - A list of Rds available resource. Each element contains the following attributes:
 - output
File string File name where to save data source results (after running
pulumi up).NOTE: If you use the CommodityCode parameter to query the instance types that are available to read-only instances, you must specify the DBInstanceId parameter.
- commodity_
code str - The commodity code of the instance. Valid values:
- bards: The instance is a pay-as-you-go primary instance. This value is available on the China site (aliyun.com).
 - rds: The instance is a subscription primary instance. This value is available on the China site (aliyun.com).
 - rords: The instance is a pay-as-you-go read-only instance. This value is available on the China site (aliyun.com).
 - rds_rordspre_public_cn: The instance is a subscription read-only instance. This value is available on the China site (aliyun.com).
 - bards_intl: The instance is a pay-as-you-go primary instance. This value is available on the International site (alibabacloud.com).
 - rds_intl: The instance is a subscription primary instance. This value is available on the International site (alibabacloud.com).
 - rords_intl: The instance is a pay-as-you-go read-only instance. This value is available on the International site (alibabacloud.com).
 - rds_rordspre_public_intl: The instance is a subscription read-only instance. This value is available on the International site (alibabacloud.com).
 
 - order_
type str - FThe type of order that you want to query. Valid values:
- BUY: specifies the query orders that are used to purchase instances.
 - UPGRADE: specifies the query orders that are used to change the specifications of instances.
 - RENEW: specifies the query orders that are used to renew instances.
 - CONVERT: specifies the query orders that are used to change the billing methods of instances.
 
 - db_
instance_ strid  - The ID of the primary instance.
 - infos
Sequence[Get
Instance Class Infos Info]  - A list of Rds available resource. Each element contains the following attributes:
 - output_
file str File name where to save data source results (after running
pulumi up).NOTE: If you use the CommodityCode parameter to query the instance types that are available to read-only instances, you must specify the DBInstanceId parameter.
- commodity
Code String - The commodity code of the instance. Valid values:
- bards: The instance is a pay-as-you-go primary instance. This value is available on the China site (aliyun.com).
 - rds: The instance is a subscription primary instance. This value is available on the China site (aliyun.com).
 - rords: The instance is a pay-as-you-go read-only instance. This value is available on the China site (aliyun.com).
 - rds_rordspre_public_cn: The instance is a subscription read-only instance. This value is available on the China site (aliyun.com).
 - bards_intl: The instance is a pay-as-you-go primary instance. This value is available on the International site (alibabacloud.com).
 - rds_intl: The instance is a subscription primary instance. This value is available on the International site (alibabacloud.com).
 - rords_intl: The instance is a pay-as-you-go read-only instance. This value is available on the International site (alibabacloud.com).
 - rds_rordspre_public_intl: The instance is a subscription read-only instance. This value is available on the International site (alibabacloud.com).
 
 - order
Type String - FThe type of order that you want to query. Valid values:
- BUY: specifies the query orders that are used to purchase instances.
 - UPGRADE: specifies the query orders that are used to change the specifications of instances.
 - RENEW: specifies the query orders that are used to renew instances.
 - CONVERT: specifies the query orders that are used to change the billing methods of instances.
 
 - db
Instance StringId  - The ID of the primary instance.
 - infos List<Property Map>
 - A list of Rds available resource. Each element contains the following attributes:
 - output
File String File name where to save data source results (after running
pulumi up).NOTE: If you use the CommodityCode parameter to query the instance types that are available to read-only instances, you must specify the DBInstanceId parameter.
getInstanceClassInfos Result
The following output properties are available:
- Commodity
Code string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - A list of Rds instance class codes.
 - Order
Type string - Db
Instance stringId  - Infos
List<Pulumi.
Ali Cloud. Rds. Outputs. Get Instance Class Infos Info>  - A list of Rds available resource. Each element contains the following attributes:
 - Output
File string 
- Commodity
Code string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - A list of Rds instance class codes.
 - Order
Type string - Db
Instance stringId  - Infos
[]Get
Instance Class Infos Info  - A list of Rds available resource. Each element contains the following attributes:
 - Output
File string 
- commodity
Code String - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - A list of Rds instance class codes.
 - order
Type String - db
Instance StringId  - infos
List<Get
Instance Class Infos Info>  - A list of Rds available resource. Each element contains the following attributes:
 - output
File String 
- commodity
Code string - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - A list of Rds instance class codes.
 - order
Type string - db
Instance stringId  - infos
Get
Instance Class Infos Info[]  - A list of Rds available resource. Each element contains the following attributes:
 - output
File string 
- commodity_
code str - id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - A list of Rds instance class codes.
 - order_
type str - db_
instance_ strid  - infos
Sequence[Get
Instance Class Infos Info]  - A list of Rds available resource. Each element contains the following attributes:
 - output_
file str 
- commodity
Code String - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - A list of Rds instance class codes.
 - order
Type String - db
Instance StringId  - infos List<Property Map>
 - A list of Rds available resource. Each element contains the following attributes:
 - output
File String 
Supporting Types
GetInstanceClassInfosInfo    
- Class
Code string - The code of the instance type.
 - Class
Group string - The instance family of the instance.
 - Cpu string
 - The number of cores that are supported by the instance type. Unit: cores.
 - Instruction
Set stringArch  - The architecture of the instance type.
 - Max
Connections string - The maximum number of connections that are supported by the instance type. Unit: connections.
 - Max
Iombps string - The maximum I/O bandwidth that is supported by the instance type. Unit: Mbit/s.
 - Max
Iops string - The maximum input/output operations per second (IOPS) that is supported by the instance type. Unit: operations per second.
 - Memory
Class string - The memory capacity that is supported by the instance type. Unit: GB.
 - Reference
Price string - The fee that you must pay for the instance type. Unit: cent (USD).
 
- Class
Code string - The code of the instance type.
 - Class
Group string - The instance family of the instance.
 - Cpu string
 - The number of cores that are supported by the instance type. Unit: cores.
 - Instruction
Set stringArch  - The architecture of the instance type.
 - Max
Connections string - The maximum number of connections that are supported by the instance type. Unit: connections.
 - Max
Iombps string - The maximum I/O bandwidth that is supported by the instance type. Unit: Mbit/s.
 - Max
Iops string - The maximum input/output operations per second (IOPS) that is supported by the instance type. Unit: operations per second.
 - Memory
Class string - The memory capacity that is supported by the instance type. Unit: GB.
 - Reference
Price string - The fee that you must pay for the instance type. Unit: cent (USD).
 
- class
Code String - The code of the instance type.
 - class
Group String - The instance family of the instance.
 - cpu String
 - The number of cores that are supported by the instance type. Unit: cores.
 - instruction
Set StringArch  - The architecture of the instance type.
 - max
Connections String - The maximum number of connections that are supported by the instance type. Unit: connections.
 - max
Iombps String - The maximum I/O bandwidth that is supported by the instance type. Unit: Mbit/s.
 - max
Iops String - The maximum input/output operations per second (IOPS) that is supported by the instance type. Unit: operations per second.
 - memory
Class String - The memory capacity that is supported by the instance type. Unit: GB.
 - reference
Price String - The fee that you must pay for the instance type. Unit: cent (USD).
 
- class
Code string - The code of the instance type.
 - class
Group string - The instance family of the instance.
 - cpu string
 - The number of cores that are supported by the instance type. Unit: cores.
 - instruction
Set stringArch  - The architecture of the instance type.
 - max
Connections string - The maximum number of connections that are supported by the instance type. Unit: connections.
 - max
Iombps string - The maximum I/O bandwidth that is supported by the instance type. Unit: Mbit/s.
 - max
Iops string - The maximum input/output operations per second (IOPS) that is supported by the instance type. Unit: operations per second.
 - memory
Class string - The memory capacity that is supported by the instance type. Unit: GB.
 - reference
Price string - The fee that you must pay for the instance type. Unit: cent (USD).
 
- class_
code str - The code of the instance type.
 - class_
group str - The instance family of the instance.
 - cpu str
 - The number of cores that are supported by the instance type. Unit: cores.
 - instruction_
set_ strarch  - The architecture of the instance type.
 - max_
connections str - The maximum number of connections that are supported by the instance type. Unit: connections.
 - max_
iombps str - The maximum I/O bandwidth that is supported by the instance type. Unit: Mbit/s.
 - max_
iops str - The maximum input/output operations per second (IOPS) that is supported by the instance type. Unit: operations per second.
 - memory_
class str - The memory capacity that is supported by the instance type. Unit: GB.
 - reference_
price str - The fee that you must pay for the instance type. Unit: cent (USD).
 
- class
Code String - The code of the instance type.
 - class
Group String - The instance family of the instance.
 - cpu String
 - The number of cores that are supported by the instance type. Unit: cores.
 - instruction
Set StringArch  - The architecture of the instance type.
 - max
Connections String - The maximum number of connections that are supported by the instance type. Unit: connections.
 - max
Iombps String - The maximum I/O bandwidth that is supported by the instance type. Unit: Mbit/s.
 - max
Iops String - The maximum input/output operations per second (IOPS) that is supported by the instance type. Unit: operations per second.
 - memory
Class String - The memory capacity that is supported by the instance type. Unit: GB.
 - reference
Price String - The fee that you must pay for the instance type. Unit: cent (USD).
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.