1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. rds
  5. getClassDetails
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.rds.getClassDetails

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    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:

    ClassCode string
    The code of the instance type.
    CommodityCode 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.
    EngineVersion 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 ]
    ClassCode string
    The code of the instance type.
    CommodityCode 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.
    EngineVersion 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 ]
    classCode String
    The code of the instance type.
    commodityCode 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.
    engineVersion 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 ]
    classCode string
    The code of the instance type.
    commodityCode 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.
    engineVersion 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 ]
    classCode String
    The code of the instance type.
    commodityCode 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.
    engineVersion 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.
    ClassCode string
    ClassGroup string
    The specification family.
    CommodityCode string
    Cpu string
    The number of CPU cores corresponding to the instance specification. Unit: pieces.
    DbInstanceStorageType string
    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
    EngineVersion string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstructionSetArch string
    The architecture of the instance type.
    MaxConnections string
    The maximum number of connections.
    MaxIombps string
    The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
    MaxIops string
    The maximum IOPS of the instance.
    MemoryClass string
    The memory capacity that is supported by the instance type. Unit: GB.
    ReferencePrice 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.
    ClassCode string
    ClassGroup string
    The specification family.
    CommodityCode string
    Cpu string
    The number of CPU cores corresponding to the instance specification. Unit: pieces.
    DbInstanceStorageType string
    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
    EngineVersion string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstructionSetArch string
    The architecture of the instance type.
    MaxConnections string
    The maximum number of connections.
    MaxIombps string
    The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
    MaxIops string
    The maximum IOPS of the instance.
    MemoryClass string
    The memory capacity that is supported by the instance type. Unit: GB.
    ReferencePrice 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.
    classCode String
    classGroup String
    The specification family.
    commodityCode String
    cpu String
    The number of CPU cores corresponding to the instance specification. Unit: pieces.
    dbInstanceStorageType String
    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
    engineVersion String
    id String
    The provider-assigned unique ID for this managed resource.
    instructionSetArch String
    The architecture of the instance type.
    maxConnections String
    The maximum number of connections.
    maxIombps String
    The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
    maxIops String
    The maximum IOPS of the instance.
    memoryClass String
    The memory capacity that is supported by the instance type. Unit: GB.
    referencePrice 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.
    classCode string
    classGroup string
    The specification family.
    commodityCode string
    cpu string
    The number of CPU cores corresponding to the instance specification. Unit: pieces.
    dbInstanceStorageType string
    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
    engineVersion string
    id string
    The provider-assigned unique ID for this managed resource.
    instructionSetArch string
    The architecture of the instance type.
    maxConnections string
    The maximum number of connections.
    maxIombps string
    The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
    maxIops string
    The maximum IOPS of the instance.
    memoryClass string
    The memory capacity that is supported by the instance type. Unit: GB.
    referencePrice 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_storage_type str
    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_arch str
    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.
    classCode String
    classGroup String
    The specification family.
    commodityCode String
    cpu String
    The number of CPU cores corresponding to the instance specification. Unit: pieces.
    dbInstanceStorageType String
    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
    engineVersion String
    id String
    The provider-assigned unique ID for this managed resource.
    instructionSetArch String
    The architecture of the instance type.
    maxConnections String
    The maximum number of connections.
    maxIombps String
    The maximum IO bandwidth corresponding to the instance specification. Unit: Mbps.
    maxIops String
    The maximum IOPS of the instance.
    memoryClass String
    The memory capacity that is supported by the instance type. Unit: GB.
    referencePrice 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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi