Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.rds.getClassDetails
Explore with Pulumi AI
This data source provides details of the Rds specifications of current Alibaba Cloud users.
For information on RDS class details and how to use it, please refer to What is RDS class details.
NOTE: Available since v1.209.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.rds.getClassDetails({
commodityCode: "bards",
classCode: "mysql.n4.medium.2c",
engineVersion: "8.0",
engine: "MySQL",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.rds.get_class_details(commodity_code="bards",
class_code="mysql.n4.medium.2c",
engine_version="8.0",
engine="MySQL")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.GetClassDetails(ctx, &rds.GetClassDetailsArgs{
CommodityCode: "bards",
ClassCode: "mysql.n4.medium.2c",
EngineVersion: "8.0",
Engine: "MySQL",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Rds.GetClassDetails.Invoke(new()
{
CommodityCode = "bards",
ClassCode = "mysql.n4.medium.2c",
EngineVersion = "8.0",
Engine = "MySQL",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rds.RdsFunctions;
import com.pulumi.alicloud.rds.inputs.GetClassDetailsArgs;
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 default = RdsFunctions.getClassDetails(GetClassDetailsArgs.builder()
.commodityCode("bards")
.classCode("mysql.n4.medium.2c")
.engineVersion("8.0")
.engine("MySQL")
.build());
}
}
variables:
default:
fn::invoke:
Function: alicloud:rds:getClassDetails
Arguments:
commodityCode: bards
classCode: mysql.n4.medium.2c
engineVersion: '8.0'
engine: MySQL
Using getClassDetails
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 getClassDetails(args: GetClassDetailsArgs, opts?: InvokeOptions): Promise<GetClassDetailsResult>
function getClassDetailsOutput(args: GetClassDetailsOutputArgs, opts?: InvokeOptions): Output<GetClassDetailsResult>
def get_class_details(class_code: Optional[str] = None,
commodity_code: Optional[str] = None,
engine: Optional[str] = None,
engine_version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClassDetailsResult
def get_class_details_output(class_code: Optional[pulumi.Input[str]] = None,
commodity_code: Optional[pulumi.Input[str]] = None,
engine: Optional[pulumi.Input[str]] = None,
engine_version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClassDetailsResult]
func GetClassDetails(ctx *Context, args *GetClassDetailsArgs, opts ...InvokeOption) (*GetClassDetailsResult, error)
func GetClassDetailsOutput(ctx *Context, args *GetClassDetailsOutputArgs, opts ...InvokeOption) GetClassDetailsResultOutput
> Note: This function is named GetClassDetails
in the Go SDK.
public static class GetClassDetails
{
public static Task<GetClassDetailsResult> InvokeAsync(GetClassDetailsArgs args, InvokeOptions? opts = null)
public static Output<GetClassDetailsResult> Invoke(GetClassDetailsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClassDetailsResult> getClassDetails(GetClassDetailsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:rds/getClassDetails:getClassDetails
arguments:
# arguments dictionary
The following arguments are supported:
- Class
Code string - The code of the instance type.
- 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).
- Engine string
- Database type. Value options: MySQL, SQLServer, PostgreSQL, MariaDB.
- Engine
Version string - Database version. Value options:
- MySQL: [ 5.5、5.6、5.7、8.0 ]
- SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
- PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
- MariaDB: [ 10.3 ]
- Class
Code string - The code of the instance type.
- 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).
- Engine string
- Database type. Value options: MySQL, SQLServer, PostgreSQL, MariaDB.
- Engine
Version string - Database version. Value options:
- MySQL: [ 5.5、5.6、5.7、8.0 ]
- SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
- PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
- MariaDB: [ 10.3 ]
- class
Code String - The code of the instance type.
- 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).
- engine String
- Database type. Value options: MySQL, SQLServer, PostgreSQL, MariaDB.
- engine
Version String - Database version. Value options:
- MySQL: [ 5.5、5.6、5.7、8.0 ]
- SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
- PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
- MariaDB: [ 10.3 ]
- class
Code string - The code of the instance type.
- 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).
- engine string
- Database type. Value options: MySQL, SQLServer, PostgreSQL, MariaDB.
- engine
Version string - Database version. Value options:
- MySQL: [ 5.5、5.6、5.7、8.0 ]
- SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
- PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
- MariaDB: [ 10.3 ]
- class_
code str - The code of the instance type.
- 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).
- engine str
- Database type. Value options: MySQL, SQLServer, PostgreSQL, MariaDB.
- engine_
version str - Database version. Value options:
- MySQL: [ 5.5、5.6、5.7、8.0 ]
- SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
- PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
- MariaDB: [ 10.3 ]
- class
Code String - The code of the instance type.
- 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).
- engine String
- Database type. Value options: MySQL, SQLServer, PostgreSQL, MariaDB.
- engine
Version String - Database version. Value options:
- MySQL: [ 5.5、5.6、5.7、8.0 ]
- SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
- PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
- MariaDB: [ 10.3 ]
getClassDetails Result
The following output properties are available:
- Category string
- The RDS edition of the instance. Valid values:
- Basic: Basic Edition.
- HighAvailability: High-availability Edition.
- AlwaysOn: Cluster Edition.
- Finance: Enterprise Edition.
- Class
Code string - Class
Group string - The specification family.
- Commodity
Code string - Cpu string
- The number of CPU cores corresponding to the instance specification. Unit: pieces.
- Db
Instance stringStorage Type - The storage type of the instance. Valid values:
- local_ssd: specifies to use local SSDs.
- cloud_ssd: specifies to use standard SSDs.
- cloud_essd: specifies to use enhanced SSDs (ESSDs).
- cloud_essd2: specifies to use enhanced SSDs (ESSDs).
- cloud_essd3: specifies to use enhanced SSDs (ESSDs).
- Engine string
- Engine
Version string - Id string
- The provider-assigned unique ID for this managed resource.
- Instruction
Set stringArch - The architecture of the instance type.
- Max
Connections string - The maximum number of connections.
- Max
Iombps string - The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
- Max
Iops string - The maximum IOPS of the instance.
- 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 (RMB).
- Category string
- The RDS edition of the instance. Valid values:
- Basic: Basic Edition.
- HighAvailability: High-availability Edition.
- AlwaysOn: Cluster Edition.
- Finance: Enterprise Edition.
- Class
Code string - Class
Group string - The specification family.
- Commodity
Code string - Cpu string
- The number of CPU cores corresponding to the instance specification. Unit: pieces.
- Db
Instance stringStorage Type - The storage type of the instance. Valid values:
- local_ssd: specifies to use local SSDs.
- cloud_ssd: specifies to use standard SSDs.
- cloud_essd: specifies to use enhanced SSDs (ESSDs).
- cloud_essd2: specifies to use enhanced SSDs (ESSDs).
- cloud_essd3: specifies to use enhanced SSDs (ESSDs).
- Engine string
- Engine
Version string - Id string
- The provider-assigned unique ID for this managed resource.
- Instruction
Set stringArch - The architecture of the instance type.
- Max
Connections string - The maximum number of connections.
- Max
Iombps string - The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
- Max
Iops string - The maximum IOPS of the instance.
- 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 (RMB).
- category String
- The RDS edition of the instance. Valid values:
- Basic: Basic Edition.
- HighAvailability: High-availability Edition.
- AlwaysOn: Cluster Edition.
- Finance: Enterprise Edition.
- class
Code String - class
Group String - The specification family.
- commodity
Code String - cpu String
- The number of CPU cores corresponding to the instance specification. Unit: pieces.
- db
Instance StringStorage Type - The storage type of the instance. Valid values:
- local_ssd: specifies to use local SSDs.
- cloud_ssd: specifies to use standard SSDs.
- cloud_essd: specifies to use enhanced SSDs (ESSDs).
- cloud_essd2: specifies to use enhanced SSDs (ESSDs).
- cloud_essd3: specifies to use enhanced SSDs (ESSDs).
- engine String
- engine
Version String - id String
- The provider-assigned unique ID for this managed resource.
- instruction
Set StringArch - The architecture of the instance type.
- max
Connections String - The maximum number of connections.
- max
Iombps String - The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
- max
Iops String - The maximum IOPS of the instance.
- 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 (RMB).
- category string
- The RDS edition of the instance. Valid values:
- Basic: Basic Edition.
- HighAvailability: High-availability Edition.
- AlwaysOn: Cluster Edition.
- Finance: Enterprise Edition.
- class
Code string - class
Group string - The specification family.
- commodity
Code string - cpu string
- The number of CPU cores corresponding to the instance specification. Unit: pieces.
- db
Instance stringStorage Type - The storage type of the instance. Valid values:
- local_ssd: specifies to use local SSDs.
- cloud_ssd: specifies to use standard SSDs.
- cloud_essd: specifies to use enhanced SSDs (ESSDs).
- cloud_essd2: specifies to use enhanced SSDs (ESSDs).
- cloud_essd3: specifies to use enhanced SSDs (ESSDs).
- engine string
- engine
Version string - id string
- The provider-assigned unique ID for this managed resource.
- instruction
Set stringArch - The architecture of the instance type.
- max
Connections string - The maximum number of connections.
- max
Iombps string - The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
- max
Iops string - The maximum IOPS of the instance.
- 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 (RMB).
- category str
- The RDS edition of the instance. Valid values:
- Basic: Basic Edition.
- HighAvailability: High-availability Edition.
- AlwaysOn: Cluster Edition.
- Finance: Enterprise Edition.
- class_
code str - class_
group str - The specification family.
- commodity_
code str - cpu str
- The number of CPU cores corresponding to the instance specification. Unit: pieces.
- db_
instance_ strstorage_ type - The storage type of the instance. Valid values:
- local_ssd: specifies to use local SSDs.
- cloud_ssd: specifies to use standard SSDs.
- cloud_essd: specifies to use enhanced SSDs (ESSDs).
- cloud_essd2: specifies to use enhanced SSDs (ESSDs).
- cloud_essd3: specifies to use enhanced SSDs (ESSDs).
- engine str
- engine_
version str - id str
- The provider-assigned unique ID for this managed resource.
- instruction_
set_ strarch - The architecture of the instance type.
- max_
connections str - The maximum number of connections.
- max_
iombps str - The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
- max_
iops str - The maximum IOPS of the instance.
- 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 (RMB).
- category String
- The RDS edition of the instance. Valid values:
- Basic: Basic Edition.
- HighAvailability: High-availability Edition.
- AlwaysOn: Cluster Edition.
- Finance: Enterprise Edition.
- class
Code String - class
Group String - The specification family.
- commodity
Code String - cpu String
- The number of CPU cores corresponding to the instance specification. Unit: pieces.
- db
Instance StringStorage Type - The storage type of the instance. Valid values:
- local_ssd: specifies to use local SSDs.
- cloud_ssd: specifies to use standard SSDs.
- cloud_essd: specifies to use enhanced SSDs (ESSDs).
- cloud_essd2: specifies to use enhanced SSDs (ESSDs).
- cloud_essd3: specifies to use enhanced SSDs (ESSDs).
- engine String
- engine
Version String - id String
- The provider-assigned unique ID for this managed resource.
- instruction
Set StringArch - The architecture of the instance type.
- max
Connections String - The maximum number of connections.
- max
Iombps String - The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
- max
Iops String - The maximum IOPS of the instance.
- 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 (RMB).
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.