GetScalingConfigurations
This data source provides available scaling configuration resources.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var scalingconfigurationsDs = Output.Create(AliCloud.Ess.GetScalingConfigurations.InvokeAsync(new AliCloud.Ess.GetScalingConfigurationsArgs
{
Ids =
{
"scaling_configuration_id1",
"scaling_configuration_id2",
},
NameRegex = "scaling_configuration_name",
ScalingGroupId = "scaling_group_id",
}));
this.FirstScalingRule = scalingconfigurationsDs.Apply(scalingconfigurationsDs => scalingconfigurationsDs.Configurations[0].Id);
}
[Output("firstScalingRule")]
public Output<string> FirstScalingRule { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
scalingconfigurations_ds = alicloud.ess.get_scaling_configurations(ids=[
"scaling_configuration_id1",
"scaling_configuration_id2",
],
name_regex="scaling_configuration_name",
scaling_group_id="scaling_group_id")
pulumi.export("firstScalingRule", scalingconfigurations_ds.configurations[0]["id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const scalingconfigurationsDs = pulumi.output(alicloud.ess.getScalingConfigurations({
ids: [
"scaling_configuration_id1",
"scaling_configuration_id2",
],
nameRegex: "scaling_configuration_name",
scalingGroupId: "scaling_group_id",
}, { async: true }));
export const firstScalingRule = scalingconfigurationsDs.configurations[0].id;Using GetScalingConfigurations
function getScalingConfigurations(args: GetScalingConfigurationsArgs, opts?: InvokeOptions): Promise<GetScalingConfigurationsResult>function get_scaling_configurations(ids=None, name_regex=None, output_file=None, scaling_group_id=None, opts=None)func GetScalingConfigurations(ctx *Context, args *GetScalingConfigurationsArgs, opts ...InvokeOption) (*GetScalingConfigurationsResult, error)public static class GetScalingConfigurations {
public static Task<GetScalingConfigurationsResult> InvokeAsync(GetScalingConfigurationsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ids List<string>
A list of scaling configuration IDs.
- Name
Regex string A regex string to filter resulting scaling configurations by name.
- Output
File string - Scaling
Group stringId Scaling group id the scaling configurations belong to.
- Ids []string
A list of scaling configuration IDs.
- Name
Regex string A regex string to filter resulting scaling configurations by name.
- Output
File string - Scaling
Group stringId Scaling group id the scaling configurations belong to.
- ids string[]
A list of scaling configuration IDs.
- name
Regex string A regex string to filter resulting scaling configurations by name.
- output
File string - scaling
Group stringId Scaling group id the scaling configurations belong to.
- ids List[str]
A list of scaling configuration IDs.
- name_
regex str A regex string to filter resulting scaling configurations by name.
- output_
file str - scaling_
group_ strid Scaling group id the scaling configurations belong to.
GetScalingConfigurations Result
The following output properties are available:
- Configurations
List<Pulumi.
Ali Cloud. Ess. Outputs. Get Scaling Configurations Configuration> A list of scaling rules. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of scaling configuration ids.
- Names List<string>
A list of scaling configuration names.
- Name
Regex string - Output
File string - Scaling
Group stringId ID of the scaling group.
- Configurations
[]Get
Scaling Configurations Configuration A list of scaling rules. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of scaling configuration ids.
- Names []string
A list of scaling configuration names.
- Name
Regex string - Output
File string - Scaling
Group stringId ID of the scaling group.
- configurations
Get
Scaling Configurations Configuration[] A list of scaling rules. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of scaling configuration ids.
- names string[]
A list of scaling configuration names.
- name
Regex string - output
File string - scaling
Group stringId ID of the scaling group.
- configurations
List[Get
Scaling Configurations Configuration] A list of scaling rules. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of scaling configuration ids.
- names List[str]
A list of scaling configuration names.
- name_
regex str - output_
file str - scaling_
group_ strid ID of the scaling group.
Supporting Types
GetScalingConfigurationsConfiguration
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Creation
Time string Creation time of the scaling configuration.
- Data
Disks List<Pulumi.Ali Cloud. Ess. Inputs. Get Scaling Configurations Configuration Data Disk Args> Data disks of the scaling configuration.
- Id string
ID of the scaling rule.
- Image
Id string Image ID of the scaling configuration.
- Instance
Type string Instance type of the scaling configuration.
- Internet
Charge stringType Internet charge type of the scaling configuration.
- Internet
Max intBandwidth In Internet max bandwidth in of the scaling configuration.
- Internet
Max intBandwidth Out Internet max bandwidth of the scaling configuration.
- Lifecycle
State string Lifecycle state of the scaling configuration.
- Name string
Name of the scaling configuration.
- Scaling
Group stringId Scaling group id the scaling configurations belong to.
- Security
Group stringId Security group ID of the scaling configuration.
- System
Disk stringCategory System disk category of the scaling configuration.
- System
Disk intSize System disk size of the scaling configuration.
- Creation
Time string Creation time of the scaling configuration.
- Data
Disks []GetScaling Configurations Configuration Data Disk Data disks of the scaling configuration.
- Id string
ID of the scaling rule.
- Image
Id string Image ID of the scaling configuration.
- Instance
Type string Instance type of the scaling configuration.
- Internet
Charge stringType Internet charge type of the scaling configuration.
- Internet
Max intBandwidth In Internet max bandwidth in of the scaling configuration.
- Internet
Max intBandwidth Out Internet max bandwidth of the scaling configuration.
- Lifecycle
State string Lifecycle state of the scaling configuration.
- Name string
Name of the scaling configuration.
- Scaling
Group stringId Scaling group id the scaling configurations belong to.
- Security
Group stringId Security group ID of the scaling configuration.
- System
Disk stringCategory System disk category of the scaling configuration.
- System
Disk intSize System disk size of the scaling configuration.
- creation
Time string Creation time of the scaling configuration.
- data
Disks GetScaling Configurations Configuration Data Disk[] Data disks of the scaling configuration.
- id string
ID of the scaling rule.
- image
Id string Image ID of the scaling configuration.
- instance
Type string Instance type of the scaling configuration.
- internet
Charge stringType Internet charge type of the scaling configuration.
- internet
Max numberBandwidth In Internet max bandwidth in of the scaling configuration.
- internet
Max numberBandwidth Out Internet max bandwidth of the scaling configuration.
- lifecycle
State string Lifecycle state of the scaling configuration.
- name string
Name of the scaling configuration.
- scaling
Group stringId Scaling group id the scaling configurations belong to.
- security
Group stringId Security group ID of the scaling configuration.
- system
Disk stringCategory System disk category of the scaling configuration.
- system
Disk numberSize System disk size of the scaling configuration.
- creation_
time str Creation time of the scaling configuration.
- data_
disks List[GetScaling Configurations Configuration Data Disk] Data disks of the scaling configuration.
- id str
ID of the scaling rule.
- image_
id str Image ID of the scaling configuration.
- instance_
type str Instance type of the scaling configuration.
- internet_
charge_ strtype Internet charge type of the scaling configuration.
- internet_
max_ floatbandwidth_ in Internet max bandwidth in of the scaling configuration.
- internet_
max_ floatbandwidth_ out Internet max bandwidth of the scaling configuration.
- lifecycle
State str Lifecycle state of the scaling configuration.
- name str
Name of the scaling configuration.
- scaling_
group_ strid Scaling group id the scaling configurations belong to.
- security_
group_ strid Security group ID of the scaling configuration.
- system_
disk_ strcategory System disk category of the scaling configuration.
- system_
disk_ floatsize System disk size of the scaling configuration.
GetScalingConfigurationsConfigurationDataDisk
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Category string
Category of data disk.
- Delete
With boolInstance Delete_with_instance attribute of data disk.
- Device string
Device attribute of data disk.
- Size int
Size of data disk.
- Snapshot
Id string Size of data disk.
- Category string
Category of data disk.
- Delete
With boolInstance Delete_with_instance attribute of data disk.
- Device string
Device attribute of data disk.
- Size int
Size of data disk.
- Snapshot
Id string Size of data disk.
- category string
Category of data disk.
- delete
With booleanInstance Delete_with_instance attribute of data disk.
- device string
Device attribute of data disk.
- size number
Size of data disk.
- snapshot
Id string Size of data disk.
- category str
Category of data disk.
- delete_
with_ boolinstance Delete_with_instance attribute of data disk.
- device str
Device attribute of data disk.
- size float
Size of data disk.
- snapshot_
id str Size of data disk.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.