GetInstanceTypeFamilies

This data source provides the ECS instance type families of Alibaba Cloud.

NOTE: Available in 1.54.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.Ecs.GetInstanceTypeFamilies.InvokeAsync(new AliCloud.Ecs.GetInstanceTypeFamiliesArgs
        {
            InstanceChargeType = "PrePaid",
        }));
        this.FirstInstanceTypeFamilyId = @default.Apply(@default => @default.Families[0].Id);
        this.InstanceIds = @default.Apply(@default => @default.Ids);
    }

    [Output("firstInstanceTypeFamilyId")]
    public Output<string> FirstInstanceTypeFamilyId { get; set; }
    [Output("instanceIds")]
    public Output<string> InstanceIds { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ecs.get_instance_type_families(instance_charge_type="PrePaid")
pulumi.export("firstInstanceTypeFamilyId", default.families[0]["id"])
pulumi.export("instanceIds", default.ids)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultInstanceTypeFamilies = pulumi.output(alicloud.ecs.getInstanceTypeFamilies({
    instanceChargeType: "PrePaid",
}, { async: true }));

export const firstInstanceTypeFamilyId = defaultInstanceTypeFamilies.families[0].id;
export const instanceIds = defaultInstanceTypeFamilies.ids;

Using GetInstanceTypeFamilies

function getInstanceTypeFamilies(args: GetInstanceTypeFamiliesArgs, opts?: InvokeOptions): Promise<GetInstanceTypeFamiliesResult>
function  get_instance_type_families(generation=None, instance_charge_type=None, output_file=None, spot_strategy=None, zone_id=None, opts=None)
func GetInstanceTypeFamilies(ctx *Context, args *GetInstanceTypeFamiliesArgs, opts ...InvokeOption) (*GetInstanceTypeFamiliesResult, error)
public static class GetInstanceTypeFamilies {
    public static Task<GetInstanceTypeFamiliesResult> InvokeAsync(GetInstanceTypeFamiliesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Generation string

The generation of the instance type family, Valid values: ecs-1, ecs-2, ecs-3 and ecs-4. For more information, see Instance type families.

InstanceChargeType string

Valid values are PrePaid, PostPaid, Default to PostPaid.

OutputFile string
SpotStrategy string

Filter the results by ECS spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.

ZoneId string

The Zone to launch the instance.

Generation string

The generation of the instance type family, Valid values: ecs-1, ecs-2, ecs-3 and ecs-4. For more information, see Instance type families.

InstanceChargeType string

Valid values are PrePaid, PostPaid, Default to PostPaid.

OutputFile string
SpotStrategy string

Filter the results by ECS spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.

ZoneId string

The Zone to launch the instance.

generation string

The generation of the instance type family, Valid values: ecs-1, ecs-2, ecs-3 and ecs-4. For more information, see Instance type families.

instanceChargeType string

Valid values are PrePaid, PostPaid, Default to PostPaid.

outputFile string
spotStrategy string

Filter the results by ECS spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.

zoneId string

The Zone to launch the instance.

generation str

The generation of the instance type family, Valid values: ecs-1, ecs-2, ecs-3 and ecs-4. For more information, see Instance type families.

instance_charge_type str

Valid values are PrePaid, PostPaid, Default to PostPaid.

output_file str
spot_strategy str

Filter the results by ECS spot type. Valid values: NoSpot, SpotWithPriceLimit and SpotAsPriceGo. Default to NoSpot.

zone_id str

The Zone to launch the instance.

GetInstanceTypeFamilies Result

The following output properties are available:

Families List<Pulumi.AliCloud.Ecs.Outputs.GetInstanceTypeFamiliesFamily>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of instance type family IDs.

Generation string

The generation of the instance type family.

InstanceChargeType string
OutputFile string
SpotStrategy string
ZoneId string
Families []GetInstanceTypeFamiliesFamily
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of instance type family IDs.

Generation string

The generation of the instance type family.

InstanceChargeType string
OutputFile string
SpotStrategy string
ZoneId string
families GetInstanceTypeFamiliesFamily[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of instance type family IDs.

generation string

The generation of the instance type family.

instanceChargeType string
outputFile string
spotStrategy string
zoneId string
families List[GetInstanceTypeFamiliesFamily]
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of instance type family IDs.

generation str

The generation of the instance type family.

instance_charge_type str
output_file str
spot_strategy str
zone_id str

Supporting Types

GetInstanceTypeFamiliesFamily

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Generation string

The generation of the instance type family, Valid values: ecs-1, ecs-2, ecs-3 and ecs-4. For more information, see Instance type families.

Id string

ID of the instance type family.

ZoneIds List<string>

A list of Zone to launch the instance.

Generation string

The generation of the instance type family, Valid values: ecs-1, ecs-2, ecs-3 and ecs-4. For more information, see Instance type families.

Id string

ID of the instance type family.

ZoneIds []string

A list of Zone to launch the instance.

generation string

The generation of the instance type family, Valid values: ecs-1, ecs-2, ecs-3 and ecs-4. For more information, see Instance type families.

id string

ID of the instance type family.

zoneIds string[]

A list of Zone to launch the instance.

generation str

The generation of the instance type family, Valid values: ecs-1, ecs-2, ecs-3 and ecs-4. For more information, see Instance type families.

id str

ID of the instance type family.

zoneIds List[str]

A list of Zone to launch the instance.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.