Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.21.0 published on Tuesday, Jun 14, 2022 by Pulumi

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; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ess"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		scalingconfigurationsDs, err := ess.GetScalingConfigurations(ctx, &ess.GetScalingConfigurationsArgs{
			Ids: []string{
				"scaling_configuration_id1",
				"scaling_configuration_id2",
			},
			NameRegex:      pulumi.StringRef("scaling_configuration_name"),
			ScalingGroupId: pulumi.StringRef("scaling_group_id"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstScalingRule", scalingconfigurationsDs.Configurations[0].Id)
		return nil
	})
}

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",
}));

export const firstScalingRule = scalingconfigurationsDs.configurations[0].id;

Coming soon!

Using getScalingConfigurations

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getScalingConfigurations(args: GetScalingConfigurationsArgs, opts?: InvokeOptions): Promise<GetScalingConfigurationsResult>
function getScalingConfigurationsOutput(args: GetScalingConfigurationsOutputArgs, opts?: InvokeOptions): Output<GetScalingConfigurationsResult>
def get_scaling_configurations(ids: Optional[Sequence[str]] = None,
                               name_regex: Optional[str] = None,
                               output_file: Optional[str] = None,
                               scaling_group_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetScalingConfigurationsResult
def get_scaling_configurations_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                               name_regex: Optional[pulumi.Input[str]] = None,
                               output_file: Optional[pulumi.Input[str]] = None,
                               scaling_group_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetScalingConfigurationsResult]
func GetScalingConfigurations(ctx *Context, args *GetScalingConfigurationsArgs, opts ...InvokeOption) (*GetScalingConfigurationsResult, error)
func GetScalingConfigurationsOutput(ctx *Context, args *GetScalingConfigurationsOutputArgs, opts ...InvokeOption) GetScalingConfigurationsResultOutput

> Note: This function is named GetScalingConfigurations in the Go SDK.

public static class GetScalingConfigurations 
{
    public static Task<GetScalingConfigurationsResult> InvokeAsync(GetScalingConfigurationsArgs args, InvokeOptions? opts = null)
    public static Output<GetScalingConfigurationsResult> Invoke(GetScalingConfigurationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetScalingConfigurationsResult> getScalingConfigurations(GetScalingConfigurationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:ess/getScalingConfigurations:getScalingConfigurations
  Arguments:
    # Arguments dictionary

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 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 Sequence[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.

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.

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 List<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 Sequence[GetScalingConfigurationsConfiguration]

A list of scaling rules. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

A list of scaling configuration ids.

names Sequence[str]

A list of scaling configuration names.

name_regex str
output_file str
scaling_group_id str

ID of the scaling group.

configurations List<Property Map>

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.

Supporting Types

GetScalingConfigurationsConfiguration

CreationTime string

Creation time of the scaling configuration.

CreditSpecification string

Performance mode of the t5 burstable instance.

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

Data disks of the scaling configuration.

HostName string

(Optional,Available in 1.143.0+) Hostname of an ECS instance.

Id string

ID of the scaling rule.

ImageId string

Image ID of the scaling configuration.

InstanceName string

(Optional,Available in 1.143.0+) InstanceName of an ECS instance.

InstanceType string

Resource type of an ECS instance.

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.

SpotPriceLimits List<Pulumi.AliCloud.Ess.Inputs.GetScalingConfigurationsConfigurationSpotPriceLimit>

(Optional, Available in 1.151.0+) The maximum price hourly for instance types.

SpotStrategy string

(Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.

SystemDiskCategory string

System disk category of the scaling configuration.

SystemDiskPerformanceLevel string

The performance level of the ESSD used as the system disk.

SystemDiskSize int

System disk size of the scaling configuration.

CreationTime string

Creation time of the scaling configuration.

CreditSpecification string

Performance mode of the t5 burstable instance.

DataDisks []GetScalingConfigurationsConfigurationDataDisk

Data disks of the scaling configuration.

HostName string

(Optional,Available in 1.143.0+) Hostname of an ECS instance.

Id string

ID of the scaling rule.

ImageId string

Image ID of the scaling configuration.

InstanceName string

(Optional,Available in 1.143.0+) InstanceName of an ECS instance.

InstanceType string

Resource type of an ECS instance.

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.

SpotPriceLimits []GetScalingConfigurationsConfigurationSpotPriceLimit

(Optional, Available in 1.151.0+) The maximum price hourly for instance types.

SpotStrategy string

(Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.

SystemDiskCategory string

System disk category of the scaling configuration.

SystemDiskPerformanceLevel string

The performance level of the ESSD used as the system disk.

SystemDiskSize int

System disk size of the scaling configuration.

creationTime String

Creation time of the scaling configuration.

creditSpecification String

Performance mode of the t5 burstable instance.

dataDisks List<GetScalingConfigurationsConfigurationDataDisk>

Data disks of the scaling configuration.

hostName String

(Optional,Available in 1.143.0+) Hostname of an ECS instance.

id String

ID of the scaling rule.

imageId String

Image ID of the scaling configuration.

instanceName String

(Optional,Available in 1.143.0+) InstanceName of an ECS instance.

instanceType String

Resource type of an ECS instance.

internetChargeType String

Internet charge type of the scaling configuration.

internetMaxBandwidthIn Integer

Internet max bandwidth in of the scaling configuration.

internetMaxBandwidthOut Integer

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.

spotPriceLimits List<GetScalingConfigurationsConfigurationSpotPriceLimit>

(Optional, Available in 1.151.0+) The maximum price hourly for instance types.

spotStrategy String

(Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.

systemDiskCategory String

System disk category of the scaling configuration.

systemDiskPerformanceLevel String

The performance level of the ESSD used as the system disk.

systemDiskSize Integer

System disk size of the scaling configuration.

creationTime string

Creation time of the scaling configuration.

creditSpecification string

Performance mode of the t5 burstable instance.

dataDisks GetScalingConfigurationsConfigurationDataDisk[]

Data disks of the scaling configuration.

hostName string

(Optional,Available in 1.143.0+) Hostname of an ECS instance.

id string

ID of the scaling rule.

imageId string

Image ID of the scaling configuration.

instanceName string

(Optional,Available in 1.143.0+) InstanceName of an ECS instance.

instanceType string

Resource type of an ECS instance.

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.

spotPriceLimits GetScalingConfigurationsConfigurationSpotPriceLimit[]

(Optional, Available in 1.151.0+) The maximum price hourly for instance types.

spotStrategy string

(Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.

systemDiskCategory string

System disk category of the scaling configuration.

systemDiskPerformanceLevel string

The performance level of the ESSD used as the system disk.

systemDiskSize number

System disk size of the scaling configuration.

creation_time str

Creation time of the scaling configuration.

credit_specification str

Performance mode of the t5 burstable instance.

data_disks Sequence[GetScalingConfigurationsConfigurationDataDisk]

Data disks of the scaling configuration.

host_name str

(Optional,Available in 1.143.0+) Hostname of an ECS instance.

id str

ID of the scaling rule.

image_id str

Image ID of the scaling configuration.

instance_name str

(Optional,Available in 1.143.0+) InstanceName of an ECS instance.

instance_type str

Resource type of an ECS instance.

internet_charge_type str

Internet charge type of the scaling configuration.

internet_max_bandwidth_in int

Internet max bandwidth in of the scaling configuration.

internet_max_bandwidth_out int

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

Scaling group id the scaling configurations belong to.

security_group_id str

Security group ID of the scaling configuration.

spot_price_limits Sequence[GetScalingConfigurationsConfigurationSpotPriceLimit]

(Optional, Available in 1.151.0+) The maximum price hourly for instance types.

spot_strategy str

(Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.

system_disk_category str

System disk category of the scaling configuration.

system_disk_performance_level str

The performance level of the ESSD used as the system disk.

system_disk_size int

System disk size of the scaling configuration.

creationTime String

Creation time of the scaling configuration.

creditSpecification String

Performance mode of the t5 burstable instance.

dataDisks List<Property Map>

Data disks of the scaling configuration.

hostName String

(Optional,Available in 1.143.0+) Hostname of an ECS instance.

id String

ID of the scaling rule.

imageId String

Image ID of the scaling configuration.

instanceName String

(Optional,Available in 1.143.0+) InstanceName of an ECS instance.

instanceType String

Resource type of an ECS instance.

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.

spotPriceLimits List<Property Map>

(Optional, Available in 1.151.0+) The maximum price hourly for instance types.

spotStrategy String

(Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.

systemDiskCategory String

System disk category of the scaling configuration.

systemDiskPerformanceLevel String

The performance level of the ESSD used as the system disk.

systemDiskSize Number

System disk size of the scaling configuration.

GetScalingConfigurationsConfigurationDataDisk

Category string

Category of data disk.

DeleteWithInstance bool

Delete_with_instance attribute of data disk.

Device string

Device attribute of data disk.

PerformanceLevel string

The performance level of the ESSD used as 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.

PerformanceLevel string

The performance level of the ESSD used as 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.

performanceLevel String

The performance level of the ESSD used as data disk.

size Integer

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.

performanceLevel string

The performance level of the ESSD used as 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.

performance_level str

The performance level of the ESSD used as data disk.

size int

Size of data disk.

snapshot_id str

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.

performanceLevel String

The performance level of the ESSD used as data disk.

size Number

Size of data disk.

snapshotId String

Size of data disk.

GetScalingConfigurationsConfigurationSpotPriceLimit

InstanceType string

Resource type of an ECS instance.

PriceLimit double

Price limit hourly of instance type.

InstanceType string

Resource type of an ECS instance.

PriceLimit float64

Price limit hourly of instance type.

instanceType String

Resource type of an ECS instance.

priceLimit Double

Price limit hourly of instance type.

instanceType string

Resource type of an ECS instance.

priceLimit number

Price limit hourly of instance type.

instance_type str

Resource type of an ECS instance.

price_limit float

Price limit hourly of instance type.

instanceType String

Resource type of an ECS instance.

priceLimit Number

Price limit hourly of instance type.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.