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.

NameRegex string

A regex string to filter resulting scaling configurations by name.

OutputFile string
ScalingGroupId string

Scaling group id the scaling configurations belong to.

Ids []string

A list of scaling configuration IDs.

NameRegex string

A regex string to filter resulting scaling configurations by name.

OutputFile string
ScalingGroupId string

Scaling group id the scaling configurations belong to.

ids string[]

A list of scaling configuration IDs.

nameRegex string

A regex string to filter resulting scaling configurations by name.

outputFile string
scalingGroupId string

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

Scaling group id the scaling configurations belong to.

GetScalingConfigurations Result

The following output properties are available:

Configurations List<Pulumi.AliCloud.Ess.Outputs.GetScalingConfigurationsConfiguration>

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.

NameRegex string
OutputFile string
ScalingGroupId string

ID of the scaling group.

Configurations []GetScalingConfigurationsConfiguration

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.

NameRegex string
OutputFile string
ScalingGroupId string

ID of the scaling group.

configurations GetScalingConfigurationsConfiguration[]

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.

nameRegex string
outputFile string
scalingGroupId string

ID of the scaling group.

configurations List[GetScalingConfigurationsConfiguration]

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

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.

CreationTime string

Creation time of the scaling configuration.

DataDisks List<Pulumi.AliCloud.Ess.Inputs.GetScalingConfigurationsConfigurationDataDiskArgs>

Data disks of the scaling configuration.

Id string

ID of the scaling rule.

ImageId string

Image ID of the scaling configuration.

InstanceType string

Instance type of the scaling configuration.

InternetChargeType string

Internet charge type of the scaling configuration.

InternetMaxBandwidthIn int

Internet max bandwidth in of the scaling configuration.

InternetMaxBandwidthOut int

Internet max bandwidth of the scaling configuration.

LifecycleState string

Lifecycle state of the scaling configuration.

Name string

Name of the scaling configuration.

ScalingGroupId string

Scaling group id the scaling configurations belong to.

SecurityGroupId string

Security group ID of the scaling configuration.

SystemDiskCategory string

System disk category of the scaling configuration.

SystemDiskSize int

System disk size of the scaling configuration.

CreationTime string

Creation time of the scaling configuration.

DataDisks []GetScalingConfigurationsConfigurationDataDisk

Data disks of the scaling configuration.

Id string

ID of the scaling rule.

ImageId string

Image ID of the scaling configuration.

InstanceType string

Instance type of the scaling configuration.

InternetChargeType string

Internet charge type of the scaling configuration.

InternetMaxBandwidthIn int

Internet max bandwidth in of the scaling configuration.

InternetMaxBandwidthOut int

Internet max bandwidth of the scaling configuration.

LifecycleState string

Lifecycle state of the scaling configuration.

Name string

Name of the scaling configuration.

ScalingGroupId string

Scaling group id the scaling configurations belong to.

SecurityGroupId string

Security group ID of the scaling configuration.

SystemDiskCategory string

System disk category of the scaling configuration.

SystemDiskSize int

System disk size of the scaling configuration.

creationTime string

Creation time of the scaling configuration.

dataDisks GetScalingConfigurationsConfigurationDataDisk[]

Data disks of the scaling configuration.

id string

ID of the scaling rule.

imageId string

Image ID of the scaling configuration.

instanceType string

Instance type of the scaling configuration.

internetChargeType string

Internet charge type of the scaling configuration.

internetMaxBandwidthIn number

Internet max bandwidth in of the scaling configuration.

internetMaxBandwidthOut number

Internet max bandwidth of the scaling configuration.

lifecycleState string

Lifecycle state of the scaling configuration.

name string

Name of the scaling configuration.

scalingGroupId string

Scaling group id the scaling configurations belong to.

securityGroupId string

Security group ID of the scaling configuration.

systemDiskCategory string

System disk category of the scaling configuration.

systemDiskSize number

System disk size of the scaling configuration.

creation_time str

Creation time of the scaling configuration.

data_disks List[GetScalingConfigurationsConfigurationDataDisk]

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

Internet charge type of the scaling configuration.

internet_max_bandwidth_in float

Internet max bandwidth in of the scaling configuration.

internet_max_bandwidth_out float

Internet max bandwidth of the scaling configuration.

lifecycleState str

Lifecycle state of the scaling configuration.

name str

Name of the scaling configuration.

scaling_group_id str

Scaling group id the scaling configurations belong to.

security_group_id str

Security group ID of the scaling configuration.

system_disk_category str

System disk category of the scaling configuration.

system_disk_size float

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.

DeleteWithInstance bool

Delete_with_instance attribute of data disk.

Device string

Device attribute of data disk.

Size int

Size of data disk.

SnapshotId string

Size of data disk.

Category string

Category of data disk.

DeleteWithInstance bool

Delete_with_instance attribute of data disk.

Device string

Device attribute of data disk.

Size int

Size of data disk.

SnapshotId string

Size of data disk.

category string

Category of data disk.

deleteWithInstance boolean

Delete_with_instance attribute of data disk.

device string

Device attribute of data disk.

size number

Size of data disk.

snapshotId string

Size of data disk.

category str

Category of data disk.

delete_with_instance bool

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