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-3andecs-4. For more information, see Instance type families.- Instance
Charge stringType Valid values are
PrePaid,PostPaid, Default toPostPaid.- Output
File string - Spot
Strategy string Filter the results by ECS spot type. Valid values:
NoSpot,SpotWithPriceLimitandSpotAsPriceGo. Default toNoSpot.- Zone
Id string The Zone to launch the instance.
- Generation string
The generation of the instance type family, Valid values:
ecs-1,ecs-2,ecs-3andecs-4. For more information, see Instance type families.- Instance
Charge stringType Valid values are
PrePaid,PostPaid, Default toPostPaid.- Output
File string - Spot
Strategy string Filter the results by ECS spot type. Valid values:
NoSpot,SpotWithPriceLimitandSpotAsPriceGo. Default toNoSpot.- Zone
Id string The Zone to launch the instance.
- generation string
The generation of the instance type family, Valid values:
ecs-1,ecs-2,ecs-3andecs-4. For more information, see Instance type families.- instance
Charge stringType Valid values are
PrePaid,PostPaid, Default toPostPaid.- output
File string - spot
Strategy string Filter the results by ECS spot type. Valid values:
NoSpot,SpotWithPriceLimitandSpotAsPriceGo. Default toNoSpot.- zone
Id string The Zone to launch the instance.
- generation str
The generation of the instance type family, Valid values:
ecs-1,ecs-2,ecs-3andecs-4. For more information, see Instance type families.- instance_
charge_ strtype Valid values are
PrePaid,PostPaid, Default toPostPaid.- output_
file str - spot_
strategy str Filter the results by ECS spot type. Valid values:
NoSpot,SpotWithPriceLimitandSpotAsPriceGo. Default toNoSpot.- zone_
id str The Zone to launch the instance.
GetInstanceTypeFamilies Result
The following output properties are available:
- Families
List<Pulumi.
Ali Cloud. Ecs. Outputs. Get Instance Type Families Family> - 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.
- Instance
Charge stringType - Output
File string - Spot
Strategy string - Zone
Id string
- Families
[]Get
Instance Type Families Family - 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.
- Instance
Charge stringType - Output
File string - Spot
Strategy string - Zone
Id string
- families
Get
Instance Type Families Family[] - 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.
- instance
Charge stringType - output
File string - spot
Strategy string - zone
Id string
- families
List[Get
Instance Type Families Family] - 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_ strtype - 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-3andecs-4. For more information, see Instance type families.- Id string
ID of the instance type family.
- Zone
Ids 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-3andecs-4. For more information, see Instance type families.- Id string
ID of the instance type family.
- Zone
Ids []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-3andecs-4. For more information, see Instance type families.- id string
ID of the instance type family.
- zone
Ids 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-3andecs-4. For more information, see Instance type families.- id str
ID of the instance type family.
- zone
Ids 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
alicloudTerraform Provider.