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:

PayType string

Filter the results by charge type. Valid values: PrePaid and PostPaid.

DbNodeClass string

The PolarDB node class type by the user.

DbType string

Database type. Options are MySQL, PostgreSQL, Oracle. If db_type is set, db_version also needs to be set.

DbVersion 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.

OutputFile string
RegionId string

The Region to launch the PolarDB cluster.

ZoneId string

The Zone to launch the PolarDB cluster.

PayType string

Filter the results by charge type. Valid values: PrePaid and PostPaid.

DbNodeClass string

The PolarDB node class type by the user.

DbType string

Database type. Options are MySQL, PostgreSQL, Oracle. If db_type is set, db_version also needs to be set.

DbVersion 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.

OutputFile string
RegionId string

The Region to launch the PolarDB cluster.

ZoneId string

The Zone to launch the PolarDB cluster.

payType string

Filter the results by charge type. Valid values: PrePaid and PostPaid.

dbNodeClass string

The PolarDB node class type by the user.

dbType string

Database type. Options are MySQL, PostgreSQL, Oracle. If db_type is set, db_version also needs to be set.

dbVersion 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.

outputFile string
regionId string

The Region to launch the PolarDB cluster.

zoneId string

The Zone to launch the PolarDB cluster.

pay_type str

Filter the results by charge type. Valid values: PrePaid and PostPaid.

db_node_class str

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.AliCloud.PolarDB.Outputs.GetNodeClassesClass>

A list of PolarDB node classes. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

PayType string
DbNodeClass string

PolarDB node available class.

DbType string
DbVersion string
OutputFile string
RegionId string
ZoneId string

The Zone to launch the PolarDB cluster.

Classes []GetNodeClassesClass

A list of PolarDB node classes. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

PayType string
DbNodeClass string

PolarDB node available class.

DbType string
DbVersion string
OutputFile string
RegionId string
ZoneId string

The Zone to launch the PolarDB cluster.

classes GetNodeClassesClass[]

A list of PolarDB node classes. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

payType string
dbNodeClass string

PolarDB node available class.

dbType string
dbVersion string
outputFile string
regionId string
zoneId string

The Zone to launch the PolarDB cluster.

classes List[GetNodeClassesClass]

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_class str

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.

SupportedEngines List<Pulumi.AliCloud.PolarDB.Inputs.GetNodeClassesClassSupportedEngineArgs>

A list of PolarDB node classes in the zone.

ZoneId string

The Zone to launch the PolarDB cluster.

SupportedEngines []GetNodeClassesClassSupportedEngine

A list of PolarDB node classes in the zone.

ZoneId string

The Zone to launch the PolarDB cluster.

supportedEngines GetNodeClassesClassSupportedEngine[]

A list of PolarDB node classes in the zone.

zoneId string

The Zone to launch the PolarDB cluster.

supportedEngines List[GetNodeClassesClassSupportedEngine]

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.

AvailableResources List<Pulumi.AliCloud.PolarDB.Inputs.GetNodeClassesClassSupportedEngineAvailableResourceArgs>

A list of PolarDB node available classes.

Engine string

In the zone, the database type supports classes in the following available_resources.

AvailableResources []GetNodeClassesClassSupportedEngineAvailableResource

A list of PolarDB node available classes.

Engine string

In the zone, the database type supports classes in the following available_resources.

availableResources GetNodeClassesClassSupportedEngineAvailableResource[]

A list of PolarDB node available classes.

engine string

In the zone, the database type supports classes in the following available_resources.

availableResources List[GetNodeClassesClassSupportedEngineAvailableResource]

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.

DbNodeClass string

The PolarDB node class type by the user.

DbNodeClass string

The PolarDB node class type by the user.

dbNodeClass string

The PolarDB node class type by the user.

db_node_class str

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 alicloud Terraform Provider.