Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.ess.getScalingConfigurations
Explore with Pulumi AI
This data source provides available scaling configuration resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const scalingconfigurationsDs = alicloud.ess.getScalingConfigurations({
scalingGroupId: "scaling_group_id",
ids: [
"scaling_configuration_id1",
"scaling_configuration_id2",
],
nameRegex: "scaling_configuration_name",
});
export const firstScalingRule = scalingconfigurationsDs.then(scalingconfigurationsDs => scalingconfigurationsDs.configurations?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
scalingconfigurations_ds = alicloud.ess.get_scaling_configurations(scaling_group_id="scaling_group_id",
ids=[
"scaling_configuration_id1",
"scaling_configuration_id2",
],
name_regex="scaling_configuration_name")
pulumi.export("firstScalingRule", scalingconfigurations_ds.configurations[0].id)
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{
ScalingGroupId: pulumi.StringRef("scaling_group_id"),
Ids: []string{
"scaling_configuration_id1",
"scaling_configuration_id2",
},
NameRegex: pulumi.StringRef("scaling_configuration_name"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstScalingRule", scalingconfigurationsDs.Configurations[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var scalingconfigurationsDs = AliCloud.Ess.GetScalingConfigurations.Invoke(new()
{
ScalingGroupId = "scaling_group_id",
Ids = new[]
{
"scaling_configuration_id1",
"scaling_configuration_id2",
},
NameRegex = "scaling_configuration_name",
});
return new Dictionary<string, object?>
{
["firstScalingRule"] = scalingconfigurationsDs.Apply(getScalingConfigurationsResult => getScalingConfigurationsResult.Configurations[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ess.EssFunctions;
import com.pulumi.alicloud.ess.inputs.GetScalingConfigurationsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var scalingconfigurationsDs = EssFunctions.getScalingConfigurations(GetScalingConfigurationsArgs.builder()
.scalingGroupId("scaling_group_id")
.ids(
"scaling_configuration_id1",
"scaling_configuration_id2")
.nameRegex("scaling_configuration_name")
.build());
ctx.export("firstScalingRule", scalingconfigurationsDs.applyValue(getScalingConfigurationsResult -> getScalingConfigurationsResult.configurations()[0].id()));
}
}
variables:
scalingconfigurationsDs:
fn::invoke:
Function: alicloud:ess:getScalingConfigurations
Arguments:
scalingGroupId: scaling_group_id
ids:
- scaling_configuration_id1
- scaling_configuration_id2
nameRegex: scaling_configuration_name
outputs:
firstScalingRule: ${scalingconfigurationsDs.configurations[0].id}
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.
- Name
Regex string - A regex string to filter resulting scaling configurations by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - 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 - File name where to save data source results (after running
pulumi preview
). - Scaling
Group stringId - Scaling group id the scaling configurations belong to.
- 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 - File name where to save data source results (after running
pulumi preview
). - 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 - File name where to save data source results (after running
pulumi preview
). - scaling
Group stringId - 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 - File name where to save data source results (after running
pulumi preview
). - scaling_
group_ strid - Scaling group id the scaling configurations belong to.
- 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 - File name where to save data source results (after running
pulumi preview
). - scaling
Group StringId - 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
List<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
Sequence[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 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_ strid - 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.
- name
Regex String - output
File String - scaling
Group StringId - ID of the scaling group.
Supporting Types
GetScalingConfigurationsConfiguration
- Creation
Time string - Creation time of the scaling configuration.
- Credit
Specification string - Performance mode of the t5 burstable instance.
- Data
Disks List<Pulumi.Ali Cloud. Ess. Inputs. Get Scaling Configurations Configuration Data Disk> - Data disks of the scaling configuration.
- Host
Name string - (Optional,Available in 1.143.0+) Hostname of an ECS instance.
- Id string
- ID of the scaling rule.
- Image
Id string - Image ID of the scaling configuration.
- Instance
Name string - (Optional,Available in 1.143.0+) InstanceName of an ECS instance.
- Instance
Type string - Resource type of an ECS instance.
- 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.
- Spot
Price List<Pulumi.Limits Ali Cloud. Ess. Inputs. Get Scaling Configurations Configuration Spot Price Limit> - (Optional, Available in 1.151.0+) The maximum price hourly for instance types.
- Spot
Strategy string - (Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.
- System
Disk stringCategory - System disk category of the scaling configuration.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- System
Disk intSize - System disk size of the scaling configuration.
- Creation
Time string - Creation time of the scaling configuration.
- Credit
Specification string - Performance mode of the t5 burstable instance.
- Data
Disks []GetScaling Configurations Configuration Data Disk - Data disks of the scaling configuration.
- Host
Name string - (Optional,Available in 1.143.0+) Hostname of an ECS instance.
- Id string
- ID of the scaling rule.
- Image
Id string - Image ID of the scaling configuration.
- Instance
Name string - (Optional,Available in 1.143.0+) InstanceName of an ECS instance.
- Instance
Type string - Resource type of an ECS instance.
- 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.
- Spot
Price []GetLimits Scaling Configurations Configuration Spot Price Limit - (Optional, Available in 1.151.0+) The maximum price hourly for instance types.
- Spot
Strategy string - (Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.
- System
Disk stringCategory - System disk category of the scaling configuration.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- System
Disk intSize - System disk size of the scaling configuration.
- creation
Time String - Creation time of the scaling configuration.
- credit
Specification String - Performance mode of the t5 burstable instance.
- data
Disks List<GetScaling Configurations Configuration Data Disk> - Data disks of the scaling configuration.
- host
Name String - (Optional,Available in 1.143.0+) Hostname of an ECS instance.
- id String
- ID of the scaling rule.
- image
Id String - Image ID of the scaling configuration.
- instance
Name String - (Optional,Available in 1.143.0+) InstanceName of an ECS instance.
- instance
Type String - Resource type of an ECS instance.
- internet
Charge StringType - Internet charge type of the scaling configuration.
- internet
Max IntegerBandwidth In - Internet max bandwidth in of the scaling configuration.
- internet
Max IntegerBandwidth 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.
- spot
Price List<GetLimits Scaling Configurations Configuration Spot Price Limit> - (Optional, Available in 1.151.0+) The maximum price hourly for instance types.
- spot
Strategy String - (Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.
- system
Disk StringCategory - System disk category of the scaling configuration.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk IntegerSize - System disk size of the scaling configuration.
- creation
Time string - Creation time of the scaling configuration.
- credit
Specification string - Performance mode of the t5 burstable instance.
- data
Disks GetScaling Configurations Configuration Data Disk[] - Data disks of the scaling configuration.
- host
Name string - (Optional,Available in 1.143.0+) Hostname of an ECS instance.
- id string
- ID of the scaling rule.
- image
Id string - Image ID of the scaling configuration.
- instance
Name string - (Optional,Available in 1.143.0+) InstanceName of an ECS instance.
- instance
Type string - Resource type of an ECS instance.
- 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.
- spot
Price GetLimits Scaling Configurations Configuration Spot Price Limit[] - (Optional, Available in 1.151.0+) The maximum price hourly for instance types.
- spot
Strategy string - (Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.
- system
Disk stringCategory - System disk category of the scaling configuration.
- system
Disk stringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk numberSize - 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[GetScaling Configurations Configuration Data Disk] - 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_ strtype - 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 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.
- spot_
price_ Sequence[Getlimits Scaling Configurations Configuration Spot Price Limit] - (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_ strcategory - System disk category of the scaling configuration.
- system_
disk_ strperformance_ level - The performance level of the ESSD used as the system disk.
- system_
disk_ intsize - System disk size of the scaling configuration.
- creation
Time String - Creation time of the scaling configuration.
- credit
Specification String - Performance mode of the t5 burstable instance.
- data
Disks List<Property Map> - Data disks of the scaling configuration.
- host
Name String - (Optional,Available in 1.143.0+) Hostname of an ECS instance.
- id String
- ID of the scaling rule.
- image
Id String - Image ID of the scaling configuration.
- instance
Name String - (Optional,Available in 1.143.0+) InstanceName of an ECS instance.
- instance
Type String - Resource type of an ECS instance.
- 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.
- spot
Price List<Property Map>Limits - (Optional, Available in 1.151.0+) The maximum price hourly for instance types.
- spot
Strategy String - (Optional, Available in 1.151.0+) The spot strategy for a Pay-As-You-Go instance.
- system
Disk StringCategory - System disk category of the scaling configuration.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk.
- system
Disk NumberSize - System disk size of the scaling configuration.
GetScalingConfigurationsConfigurationDataDisk
- Category string
- Category of data disk.
- Delete
With boolInstance - Delete_with_instance attribute of data disk.
- Device string
- Device attribute of data disk.
- Performance
Level string - The performance level of the ESSD used as 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.
- Performance
Level string - The performance level of the ESSD used as 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.
- performance
Level String - The performance level of the ESSD used as data disk.
- size Integer
- 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.
- performance
Level string - The performance level of the ESSD used as 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.
- 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.
- delete
With BooleanInstance - Delete_with_instance attribute of data disk.
- device String
- Device attribute of data disk.
- performance
Level String - The performance level of the ESSD used as data disk.
- size Number
- Size of data disk.
- snapshot
Id String - Size of data disk.
GetScalingConfigurationsConfigurationSpotPriceLimit
- Instance
Type string - Resource type of an ECS instance.
- Price
Limit double - Price limit hourly of instance type.
- Instance
Type string - Resource type of an ECS instance.
- Price
Limit float64 - Price limit hourly of instance type.
- instance
Type String - Resource type of an ECS instance.
- price
Limit Double - Price limit hourly of instance type.
- instance
Type string - Resource type of an ECS instance.
- price
Limit 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.
- instance
Type String - Resource type of an ECS instance.
- price
Limit Number - Price limit hourly of instance type.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.