GetInstanceClasses
This data source provides the RDS instance classes resource available info of Alibaba Cloud.
NOTE: Available in v1.46.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var resources = Output.Create(AliCloud.Rds.GetInstanceClasses.InvokeAsync(new AliCloud.Rds.GetInstanceClassesArgs
{
Engine = "MySQL",
EngineVersion = "5.6",
InstanceChargeType = "PostPaid",
OutputFile = "./classes.txt",
}));
this.FirstDbInstanceClass = resources.Apply(resources => resources.InstanceClasses[0].InstanceClass);
}
[Output("firstDbInstanceClass")]
public Output<string> FirstDbInstanceClass { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
resources = alicloud.rds.get_instance_classes(engine="MySQL",
engine_version="5.6",
instance_charge_type="PostPaid",
output_file="./classes.txt")
pulumi.export("firstDbInstanceClass", resources.instance_classes[0]["instance_class"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const resources = pulumi.output(alicloud.rds.getInstanceClasses({
engine: "MySQL",
engineVersion: "5.6",
instanceChargeType: "PostPaid",
outputFile: "./classes.txt",
}, { async: true }));
export const firstDbInstanceClass = resources.instanceClasses[0].instanceClass;Using GetInstanceClasses
function getInstanceClasses(args: GetInstanceClassesArgs, opts?: InvokeOptions): Promise<GetInstanceClassesResult>function get_instance_classes(category=None, db_instance_class=None, engine=None, engine_version=None, instance_charge_type=None, multi_zone=None, output_file=None, sorted_by=None, storage_type=None, zone_id=None, opts=None)func GetInstanceClasses(ctx *Context, args *GetInstanceClassesArgs, opts ...InvokeOption) (*GetInstanceClassesResult, error)public static class GetInstanceClasses {
public static Task<GetInstanceClassesResult> InvokeAsync(GetInstanceClassesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Category string
DB Instance category. the value like [
Basic,HighAvailability,Finance], detail info.- Db
Instance stringClass The DB instance class type by the user.
- Engine string
Database type. Options are
MySQL,SQLServer,PostgreSQLandPPAS. If no value is specified, all types are returned.- Engine
Version string Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion.- Instance
Charge stringType Filter the results by charge type. Valid values:
PrePaidandPostPaid. Default toPostPaid.- Multi
Zone bool Whether to show multi available zone. Default false to not show multi availability zone.
- Output
File string - Sorted
By string - Storage
Type string The DB instance storage space required by the user. Valid values:
cloud_ssdandlocal_ssd.- Zone
Id string The Zone to launch the DB instance.
- Category string
DB Instance category. the value like [
Basic,HighAvailability,Finance], detail info.- Db
Instance stringClass The DB instance class type by the user.
- Engine string
Database type. Options are
MySQL,SQLServer,PostgreSQLandPPAS. If no value is specified, all types are returned.- Engine
Version string Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion.- Instance
Charge stringType Filter the results by charge type. Valid values:
PrePaidandPostPaid. Default toPostPaid.- Multi
Zone bool Whether to show multi available zone. Default false to not show multi availability zone.
- Output
File string - Sorted
By string - Storage
Type string The DB instance storage space required by the user. Valid values:
cloud_ssdandlocal_ssd.- Zone
Id string The Zone to launch the DB instance.
- category string
DB Instance category. the value like [
Basic,HighAvailability,Finance], detail info.- db
Instance stringClass The DB instance class type by the user.
- engine string
Database type. Options are
MySQL,SQLServer,PostgreSQLandPPAS. If no value is specified, all types are returned.- engine
Version string Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion.- instance
Charge stringType Filter the results by charge type. Valid values:
PrePaidandPostPaid. Default toPostPaid.- multi
Zone boolean Whether to show multi available zone. Default false to not show multi availability zone.
- output
File string - sorted
By string - storage
Type string The DB instance storage space required by the user. Valid values:
cloud_ssdandlocal_ssd.- zone
Id string The Zone to launch the DB instance.
- category str
DB Instance category. the value like [
Basic,HighAvailability,Finance], detail info.- db_
instance_ strclass The DB instance class type by the user.
- engine str
Database type. Options are
MySQL,SQLServer,PostgreSQLandPPAS. If no value is specified, all types are returned.- engine_
version str Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion.- instance_
charge_ strtype Filter the results by charge type. Valid values:
PrePaidandPostPaid. Default toPostPaid.- multi_
zone bool Whether to show multi available zone. Default false to not show multi availability zone.
- output_
file str - sorted_
by str - storage_
type str The DB instance storage space required by the user. Valid values:
cloud_ssdandlocal_ssd.- zone_
id str The Zone to launch the DB instance.
GetInstanceClasses Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
(Available in 1.60.0+) A list of Rds instance class codes.
- Instance
Classes List<Pulumi.Ali Cloud. Rds. Outputs. Get Instance Classes Instance Class> A list of Rds available resource. Each element contains the following attributes:
- Category string
- Db
Instance stringClass - Engine string
- Engine
Version string - Instance
Charge stringType - Multi
Zone bool - Output
File string - Sorted
By string - Storage
Type string - Zone
Id string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
(Available in 1.60.0+) A list of Rds instance class codes.
- Instance
Classes []GetInstance Classes Instance Class A list of Rds available resource. Each element contains the following attributes:
- Category string
- Db
Instance stringClass - Engine string
- Engine
Version string - Instance
Charge stringType - Multi
Zone bool - Output
File string - Sorted
By string - Storage
Type string - Zone
Id string
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
(Available in 1.60.0+) A list of Rds instance class codes.
- instance
Classes GetInstance Classes Instance Class[] A list of Rds available resource. Each element contains the following attributes:
- category string
- db
Instance stringClass - engine string
- engine
Version string - instance
Charge stringType - multi
Zone boolean - output
File string - sorted
By string - storage
Type string - zone
Id string
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
(Available in 1.60.0+) A list of Rds instance class codes.
- instance_
classes List[GetInstance Classes Instance Class] A list of Rds available resource. Each element contains the following attributes:
- category str
- db_
instance_ strclass - engine str
- engine_
version str - instance_
charge_ strtype - multi_
zone bool - output_
file str - sorted_
by str - storage_
type str - zone_
id str
Supporting Types
GetInstanceClassesInstanceClass
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Instance
Class string DB Instance available class.
- Price string
- Storage
Range Pulumi.Ali Cloud. Rds. Inputs. Get Instance Classes Instance Class Storage Range Args DB Instance available storage range.
- Zone
Ids List<Pulumi.Ali Cloud. Rds. Inputs. Get Instance Classes Instance Class Zone Id Args> A list of Zone to launch the DB instance.
- Instance
Class string DB Instance available class.
- Price string
- Storage
Range GetInstance Classes Instance Class Storage Range DB Instance available storage range.
- Zone
Ids []GetInstance Classes Instance Class Zone Id A list of Zone to launch the DB instance.
- instance
Class string DB Instance available class.
- price string
- storage
Range GetInstance Classes Instance Class Storage Range DB Instance available storage range.
- zone
Ids GetInstance Classes Instance Class Zone Id[] A list of Zone to launch the DB instance.
- instance_
class str DB Instance available class.
- price str
- storage
Range Dict[GetInstance Classes Instance Class Storage Range] DB Instance available storage range.
- zone
Ids List[GetInstance Classes Instance Class Zone Id] A list of Zone to launch the DB instance.
GetInstanceClassesInstanceClassStorageRange
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetInstanceClassesInstanceClassZoneId
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Id string
The Zone to launch the DB instance
- Sub
Zone List<string>Ids A list of sub zone ids which in the id - e.g If
idiscn-beijing-MAZ5(a,b),sub_zone_idswill be["cn-beijing-a", "cn-beijing-b"].
- Id string
The Zone to launch the DB instance
- Sub
Zone []stringIds A list of sub zone ids which in the id - e.g If
idiscn-beijing-MAZ5(a,b),sub_zone_idswill be["cn-beijing-a", "cn-beijing-b"].
- id string
The Zone to launch the DB instance
- sub
Zone string[]Ids A list of sub zone ids which in the id - e.g If
idiscn-beijing-MAZ5(a,b),sub_zone_idswill be["cn-beijing-a", "cn-beijing-b"].
- id str
The Zone to launch the DB instance
- sub
Zone List[str]Ids A list of sub zone ids which in the id - e.g If
idiscn-beijing-MAZ5(a,b),sub_zone_idswill be["cn-beijing-a", "cn-beijing-b"].
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.