GetNodeClasses
This data source provides the PolarDB node classes resource available info of Alibaba Cloud.
NOTE: Available in v1.81.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var resourcesZones = Output.Create(AliCloud.GetZones.InvokeAsync(new AliCloud.GetZonesArgs
{
AvailableResourceCreation = "PolarDB",
}));
var resourcesNodeClasses = resourcesZones.Apply(resourcesZones => Output.Create(AliCloud.PolarDB.GetNodeClasses.InvokeAsync(new AliCloud.PolarDB.GetNodeClassesArgs
{
DbType = "MySQL",
DbVersion = "5.6",
PayType = "Postpaid",
ZoneId = resourcesZones.Zones[0].Id,
})));
this.FirstPolardbNodeClass = resourcesNodeClasses.Apply(resourcesNodeClasses => resourcesNodeClasses.Classes);
}
[Output("firstPolardbNodeClass")]
public Output<string> FirstPolardbNodeClass { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
resources_zones = alicloud.get_zones(available_resource_creation="PolarDB")
resources_node_classes = alicloud.polardb.get_node_classes(db_type="MySQL",
db_version="5.6",
pay_type="Postpaid",
zone_id=resources_zones.zones[0]["id"])
pulumi.export("firstPolardbNodeClass", resources_node_classes.classes)import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const resourcesZones = pulumi.output(alicloud.getZones({
availableResourceCreation: "PolarDB",
}, { async: true }));
const resourcesNodeClasses = resourcesZones.apply(resourcesZones => alicloud.polardb.getNodeClasses({
dbType: "MySQL",
dbVersion: "5.6",
payType: "Postpaid",
zoneId: resourcesZones.zones[0].id,
}, { async: true }));
export const firstPolardbNodeClass = resourcesNodeClasses.classes;Using GetNodeClasses
function getNodeClasses(args: GetNodeClassesArgs, opts?: InvokeOptions): Promise<GetNodeClassesResult>function get_node_classes(db_node_class=None, db_type=None, db_version=None, output_file=None, pay_type=None, region_id=None, zone_id=None, opts=None)func GetNodeClasses(ctx *Context, args *GetNodeClassesArgs, opts ...InvokeOption) (*GetNodeClassesResult, error)public static class GetNodeClasses {
public static Task<GetNodeClassesResult> InvokeAsync(GetNodeClassesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Pay
Type string Filter the results by charge type. Valid values:
PrePaidandPostPaid.- Db
Node stringClass The PolarDB node class type by the user.
- Db
Type string Database type. Options are
MySQL,PostgreSQL,Oracle. If db_type is set, db_version also needs to be set.- Db
Version string Database version required by the user. Value options can refer to the latest docs detail info
DBVersion. If db_version is set, db_type also needs to be set.- Output
File string - Region
Id string The Region to launch the PolarDB cluster.
- Zone
Id string The Zone to launch the PolarDB cluster.
- Pay
Type string Filter the results by charge type. Valid values:
PrePaidandPostPaid.- Db
Node stringClass The PolarDB node class type by the user.
- Db
Type string Database type. Options are
MySQL,PostgreSQL,Oracle. If db_type is set, db_version also needs to be set.- Db
Version string Database version required by the user. Value options can refer to the latest docs detail info
DBVersion. If db_version is set, db_type also needs to be set.- Output
File string - Region
Id string The Region to launch the PolarDB cluster.
- Zone
Id string The Zone to launch the PolarDB cluster.
- pay
Type string Filter the results by charge type. Valid values:
PrePaidandPostPaid.- db
Node stringClass The PolarDB node class type by the user.
- db
Type string Database type. Options are
MySQL,PostgreSQL,Oracle. If db_type is set, db_version also needs to be set.- db
Version string Database version required by the user. Value options can refer to the latest docs detail info
DBVersion. If db_version is set, db_type also needs to be set.- output
File string - region
Id string The Region to launch the PolarDB cluster.
- zone
Id string The Zone to launch the PolarDB cluster.
- pay_
type str Filter the results by charge type. Valid values:
PrePaidandPostPaid.- db_
node_ strclass The PolarDB node class type by the user.
- db_
type str Database type. Options are
MySQL,PostgreSQL,Oracle. If db_type is set, db_version also needs to be set.- db_
version str Database version required by the user. Value options can refer to the latest docs detail info
DBVersion. If db_version is set, db_type also needs to be set.- output_
file str - region_
id str The Region to launch the PolarDB cluster.
- zone_
id str The Zone to launch the PolarDB cluster.
GetNodeClasses Result
The following output properties are available:
- Classes
List<Pulumi.
Ali Cloud. Polar DB. Outputs. Get Node Classes Class> A list of PolarDB node classes. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Pay
Type string - Db
Node stringClass PolarDB node available class.
- Db
Type string - Db
Version string - Output
File string - Region
Id string - Zone
Id string The Zone to launch the PolarDB cluster.
- Classes
[]Get
Node Classes Class A list of PolarDB node classes. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Pay
Type string - Db
Node stringClass PolarDB node available class.
- Db
Type string - Db
Version string - Output
File string - Region
Id string - Zone
Id string The Zone to launch the PolarDB cluster.
- classes
Get
Node Classes Class[] A list of PolarDB node classes. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- pay
Type string - db
Node stringClass PolarDB node available class.
- db
Type string - db
Version string - output
File string - region
Id string - zone
Id string The Zone to launch the PolarDB cluster.
- classes
List[Get
Node Classes Class] A list of PolarDB node classes. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- pay_
type str - db_
node_ strclass PolarDB node available class.
- db_
type str - db_
version str - output_
file str - region_
id str - zone_
id str The Zone to launch the PolarDB cluster.
Supporting Types
GetNodeClassesClass
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Supported
Engines List<Pulumi.Ali Cloud. Polar DB. Inputs. Get Node Classes Class Supported Engine Args> A list of PolarDB node classes in the zone.
- Zone
Id string The Zone to launch the PolarDB cluster.
- Supported
Engines []GetNode Classes Class Supported Engine A list of PolarDB node classes in the zone.
- Zone
Id string The Zone to launch the PolarDB cluster.
- supported
Engines GetNode Classes Class Supported Engine[] A list of PolarDB node classes in the zone.
- zone
Id string The Zone to launch the PolarDB cluster.
- supported
Engines List[GetNode Classes Class Supported Engine] A list of PolarDB node classes in the zone.
- zone_
id str The Zone to launch the PolarDB cluster.
GetNodeClassesClassSupportedEngine
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Available
Resources List<Pulumi.Ali Cloud. Polar DB. Inputs. Get Node Classes Class Supported Engine Available Resource Args> A list of PolarDB node available classes.
- Engine string
In the zone, the database type supports classes in the following available_resources.
- Available
Resources []GetNode Classes Class Supported Engine Available Resource A list of PolarDB node available classes.
- Engine string
In the zone, the database type supports classes in the following available_resources.
- available
Resources GetNode Classes Class Supported Engine Available Resource[] A list of PolarDB node available classes.
- engine string
In the zone, the database type supports classes in the following available_resources.
- available
Resources List[GetNode Classes Class Supported Engine Available Resource] A list of PolarDB node available classes.
- engine str
In the zone, the database type supports classes in the following available_resources.
GetNodeClassesClassSupportedEngineAvailableResource
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Db
Node stringClass The PolarDB node class type by the user.
- Db
Node stringClass The PolarDB node class type by the user.
- db
Node stringClass The PolarDB node class type by the user.
- db_
node_ strclass The PolarDB node class type by the user.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.