Alibaba Cloud

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

getApplicationScalingRules

This data source provides the Sae Application Scaling Rules of the current Alibaba Cloud user.

NOTE: Available in v1.159.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Sae.GetApplicationScalingRules.InvokeAsync(new AliCloud.Sae.GetApplicationScalingRulesArgs
        {
            AppId = "example_value",
            Ids = 
            {
                "example_value-1",
                "example_value-2",
            },
        }));
        this.SaeApplicationScalingRuleId1 = ids.Apply(ids => ids.Rules?[0]?.Id);
    }

    [Output("saeApplicationScalingRuleId1")]
    public Output<string> SaeApplicationScalingRuleId1 { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := sae.GetApplicationScalingRules(ctx, &sae.GetApplicationScalingRulesArgs{
			AppId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("saeApplicationScalingRuleId1", ids.Rules[0].Id)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.sae.get_application_scaling_rules(app_id="example_value",
    ids=[
        "example_value-1",
        "example_value-2",
    ])
pulumi.export("saeApplicationScalingRuleId1", ids.rules[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.sae.getApplicationScalingRules({
    appId: "example_value",
    ids: [
        "example_value-1",
        "example_value-2",
    ],
});
export const saeApplicationScalingRuleId1 = ids.then(ids => ids.rules?[0]?.id);

Coming soon!

Using getApplicationScalingRules

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 getApplicationScalingRules(args: GetApplicationScalingRulesArgs, opts?: InvokeOptions): Promise<GetApplicationScalingRulesResult>
function getApplicationScalingRulesOutput(args: GetApplicationScalingRulesOutputArgs, opts?: InvokeOptions): Output<GetApplicationScalingRulesResult>
def get_application_scaling_rules(app_id: Optional[str] = None,
                                  ids: Optional[Sequence[str]] = None,
                                  output_file: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetApplicationScalingRulesResult
def get_application_scaling_rules_output(app_id: Optional[pulumi.Input[str]] = None,
                                  ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  output_file: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetApplicationScalingRulesResult]
func GetApplicationScalingRules(ctx *Context, args *GetApplicationScalingRulesArgs, opts ...InvokeOption) (*GetApplicationScalingRulesResult, error)
func GetApplicationScalingRulesOutput(ctx *Context, args *GetApplicationScalingRulesOutputArgs, opts ...InvokeOption) GetApplicationScalingRulesResultOutput

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

public static class GetApplicationScalingRules 
{
    public static Task<GetApplicationScalingRulesResult> InvokeAsync(GetApplicationScalingRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetApplicationScalingRulesResult> Invoke(GetApplicationScalingRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApplicationScalingRulesResult> getApplicationScalingRules(GetApplicationScalingRulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:sae/getApplicationScalingRules:getApplicationScalingRules
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AppId string

The ID of the Application.

Ids List<string>

A list of Application Scaling Rule IDs.

OutputFile string
AppId string

The ID of the Application.

Ids []string

A list of Application Scaling Rule IDs.

OutputFile string
appId String

The ID of the Application.

ids List<String>

A list of Application Scaling Rule IDs.

outputFile String
appId string

The ID of the Application.

ids string[]

A list of Application Scaling Rule IDs.

outputFile string
app_id str

The ID of the Application.

ids Sequence[str]

A list of Application Scaling Rule IDs.

output_file str
appId String

The ID of the Application.

ids List<String>

A list of Application Scaling Rule IDs.

outputFile String

getApplicationScalingRules Result

The following output properties are available:

AppId string
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Rules List<Pulumi.AliCloud.Sae.Outputs.GetApplicationScalingRulesRule>
OutputFile string
AppId string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Rules []GetApplicationScalingRulesRule
OutputFile string
appId String
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
rules List<GetApplicationScalingRulesRule>
outputFile String
appId string
id string

The provider-assigned unique ID for this managed resource.

ids string[]
rules GetApplicationScalingRulesRule[]
outputFile string
app_id str
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
rules Sequence[GetApplicationScalingRulesRule]
output_file str
appId String
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
rules List<Property Map>
outputFile String

Supporting Types

GetApplicationScalingRulesRule

AppId string

The ID of the Application.

CreateTime string

The CreateTime of the Application Scaling Rule.

Id string

The ID of the Application Scaling Rule.

ScalingRuleEnable bool

Whether to enable the auto scaling policy.

ScalingRuleMetrics List<Pulumi.AliCloud.Sae.Inputs.GetApplicationScalingRulesRuleScalingRuleMetric>

Monitoring indicators for elastic scaling.

ScalingRuleName string

The name of the scaling rule.

ScalingRuleTimers List<Pulumi.AliCloud.Sae.Inputs.GetApplicationScalingRulesRuleScalingRuleTimer>

Timing elastic expansion.

ScalingRuleType string

Flexible strategy type.

AppId string

The ID of the Application.

CreateTime string

The CreateTime of the Application Scaling Rule.

Id string

The ID of the Application Scaling Rule.

ScalingRuleEnable bool

Whether to enable the auto scaling policy.

ScalingRuleMetrics []GetApplicationScalingRulesRuleScalingRuleMetric

Monitoring indicators for elastic scaling.

ScalingRuleName string

The name of the scaling rule.

ScalingRuleTimers []GetApplicationScalingRulesRuleScalingRuleTimer

Timing elastic expansion.

ScalingRuleType string

Flexible strategy type.

appId String

The ID of the Application.

createTime String

The CreateTime of the Application Scaling Rule.

id String

The ID of the Application Scaling Rule.

scalingRuleEnable Boolean

Whether to enable the auto scaling policy.

scalingRuleMetrics List<GetApplicationScalingRulesRuleScalingRuleMetric>

Monitoring indicators for elastic scaling.

scalingRuleName String

The name of the scaling rule.

scalingRuleTimers List<GetApplicationScalingRulesRuleScalingRuleTimer>

Timing elastic expansion.

scalingRuleType String

Flexible strategy type.

appId string

The ID of the Application.

createTime string

The CreateTime of the Application Scaling Rule.

id string

The ID of the Application Scaling Rule.

scalingRuleEnable boolean

Whether to enable the auto scaling policy.

scalingRuleMetrics GetApplicationScalingRulesRuleScalingRuleMetric[]

Monitoring indicators for elastic scaling.

scalingRuleName string

The name of the scaling rule.

scalingRuleTimers GetApplicationScalingRulesRuleScalingRuleTimer[]

Timing elastic expansion.

scalingRuleType string

Flexible strategy type.

app_id str

The ID of the Application.

create_time str

The CreateTime of the Application Scaling Rule.

id str

The ID of the Application Scaling Rule.

scaling_rule_enable bool

Whether to enable the auto scaling policy.

scaling_rule_metrics Sequence[GetApplicationScalingRulesRuleScalingRuleMetric]

Monitoring indicators for elastic scaling.

scaling_rule_name str

The name of the scaling rule.

scaling_rule_timers Sequence[GetApplicationScalingRulesRuleScalingRuleTimer]

Timing elastic expansion.

scaling_rule_type str

Flexible strategy type.

appId String

The ID of the Application.

createTime String

The CreateTime of the Application Scaling Rule.

id String

The ID of the Application Scaling Rule.

scalingRuleEnable Boolean

Whether to enable the auto scaling policy.

scalingRuleMetrics List<Property Map>

Monitoring indicators for elastic scaling.

scalingRuleName String

The name of the scaling rule.

scalingRuleTimers List<Property Map>

Timing elastic expansion.

scalingRuleType String

Flexible strategy type.

GetApplicationScalingRulesRuleScalingRuleMetric

maxReplicas Number

The maximum number of instances.

metrics List<Property Map>

The auto scaling list of monitoring indicators.

metricsStatuses List<Property Map>

Monitor indicator elasticity status.

minReplicas Number

The minimum number of instances.

scaleDownRules List<Property Map>

The shrink rule.

scaleUpRules List<Property Map>

The expansion rules.

GetApplicationScalingRulesRuleScalingRuleMetricMetric

MetricTargetAverageUtilization int

The target value of the monitoring indicator.

MetricType string

The metric type of the Application Scaling Rule.

MetricTargetAverageUtilization int

The target value of the monitoring indicator.

MetricType string

The metric type of the Application Scaling Rule.

metricTargetAverageUtilization Integer

The target value of the monitoring indicator.

metricType String

The metric type of the Application Scaling Rule.

metricTargetAverageUtilization number

The target value of the monitoring indicator.

metricType string

The metric type of the Application Scaling Rule.

metric_target_average_utilization int

The target value of the monitoring indicator.

metric_type str

The metric type of the Application Scaling Rule.

metricTargetAverageUtilization Number

The target value of the monitoring indicator.

metricType String

The metric type of the Application Scaling Rule.

GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatus

CurrentMetrics List<Pulumi.AliCloud.Sae.Inputs.GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusCurrentMetric>

The current monitoring indicator elasticity list.

CurrentReplicas int

The number of current instances.

DesiredReplicas int

The number of target instances.

LastScaleTime string

The time of the last elastic expansion.

MaxReplicas int

The maximum number of instances.

MinReplicas int

The minimum number of instances.

NextScaleMetrics List<Pulumi.AliCloud.Sae.Inputs.GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusNextScaleMetric>

Next monitoring indicator elasticity list

NextScaleTimePeriod int

The next cycle of monitoring indicator elasticity.

CurrentMetrics []GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusCurrentMetric

The current monitoring indicator elasticity list.

CurrentReplicas int

The number of current instances.

DesiredReplicas int

The number of target instances.

LastScaleTime string

The time of the last elastic expansion.

MaxReplicas int

The maximum number of instances.

MinReplicas int

The minimum number of instances.

NextScaleMetrics []GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusNextScaleMetric

Next monitoring indicator elasticity list

NextScaleTimePeriod int

The next cycle of monitoring indicator elasticity.

currentMetrics List<GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusCurrentMetric>

The current monitoring indicator elasticity list.

currentReplicas Integer

The number of current instances.

desiredReplicas Integer

The number of target instances.

lastScaleTime String

The time of the last elastic expansion.

maxReplicas Integer

The maximum number of instances.

minReplicas Integer

The minimum number of instances.

nextScaleMetrics List<GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusNextScaleMetric>

Next monitoring indicator elasticity list

nextScaleTimePeriod Integer

The next cycle of monitoring indicator elasticity.

currentMetrics GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusCurrentMetric[]

The current monitoring indicator elasticity list.

currentReplicas number

The number of current instances.

desiredReplicas number

The number of target instances.

lastScaleTime string

The time of the last elastic expansion.

maxReplicas number

The maximum number of instances.

minReplicas number

The minimum number of instances.

nextScaleMetrics GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusNextScaleMetric[]

Next monitoring indicator elasticity list

nextScaleTimePeriod number

The next cycle of monitoring indicator elasticity.

current_metrics Sequence[GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusCurrentMetric]

The current monitoring indicator elasticity list.

current_replicas int

The number of current instances.

desired_replicas int

The number of target instances.

last_scale_time str

The time of the last elastic expansion.

max_replicas int

The maximum number of instances.

min_replicas int

The minimum number of instances.

next_scale_metrics Sequence[GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusNextScaleMetric]

Next monitoring indicator elasticity list

next_scale_time_period int

The next cycle of monitoring indicator elasticity.

currentMetrics List<Property Map>

The current monitoring indicator elasticity list.

currentReplicas Number

The number of current instances.

desiredReplicas Number

The number of target instances.

lastScaleTime String

The time of the last elastic expansion.

maxReplicas Number

The maximum number of instances.

minReplicas Number

The minimum number of instances.

nextScaleMetrics List<Property Map>

Next monitoring indicator elasticity list

nextScaleTimePeriod Number

The next cycle of monitoring indicator elasticity.

GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusCurrentMetric

CurrentValue int

The current value.

Name string

The name of the trigger condition.

Type string

The metric type. Associated with monitoring indicators.

CurrentValue int

The current value.

Name string

The name of the trigger condition.

Type string

The metric type. Associated with monitoring indicators.

currentValue Integer

The current value.

name String

The name of the trigger condition.

type String

The metric type. Associated with monitoring indicators.

currentValue number

The current value.

name string

The name of the trigger condition.

type string

The metric type. Associated with monitoring indicators.

current_value int

The current value.

name str

The name of the trigger condition.

type str

The metric type. Associated with monitoring indicators.

currentValue Number

The current value.

name String

The name of the trigger condition.

type String

The metric type. Associated with monitoring indicators.

GetApplicationScalingRulesRuleScalingRuleMetricMetricsStatusNextScaleMetric

Name string

The name of the trigger condition.

NextScaleInAverageUtilization int

The percentage value of the monitoring indicator elasticity that triggers the shrinkage condition next time.

NextScaleOutAverageUtilization int

The percentage value of the monitoring indicator elasticity that triggers the expansion condition next time.

Name string

The name of the trigger condition.

NextScaleInAverageUtilization int

The percentage value of the monitoring indicator elasticity that triggers the shrinkage condition next time.

NextScaleOutAverageUtilization int

The percentage value of the monitoring indicator elasticity that triggers the expansion condition next time.

name String

The name of the trigger condition.

nextScaleInAverageUtilization Integer

The percentage value of the monitoring indicator elasticity that triggers the shrinkage condition next time.

nextScaleOutAverageUtilization Integer

The percentage value of the monitoring indicator elasticity that triggers the expansion condition next time.

name string

The name of the trigger condition.

nextScaleInAverageUtilization number

The percentage value of the monitoring indicator elasticity that triggers the shrinkage condition next time.

nextScaleOutAverageUtilization number

The percentage value of the monitoring indicator elasticity that triggers the expansion condition next time.

name str

The name of the trigger condition.

next_scale_in_average_utilization int

The percentage value of the monitoring indicator elasticity that triggers the shrinkage condition next time.

next_scale_out_average_utilization int

The percentage value of the monitoring indicator elasticity that triggers the expansion condition next time.

name String

The name of the trigger condition.

nextScaleInAverageUtilization Number

The percentage value of the monitoring indicator elasticity that triggers the shrinkage condition next time.

nextScaleOutAverageUtilization Number

The percentage value of the monitoring indicator elasticity that triggers the expansion condition next time.

GetApplicationScalingRulesRuleScalingRuleMetricScaleDownRule

Disabled bool

Whether shrinkage is prohibited. The values are described as follows:

StabilizationWindowSeconds int

Expansion cooling time.

Step int

Flexible expansion step. The maximum number of instances per unit time.

Disabled bool

Whether shrinkage is prohibited. The values are described as follows:

StabilizationWindowSeconds int

Expansion cooling time.

Step int

Flexible expansion step. The maximum number of instances per unit time.

disabled Boolean

Whether shrinkage is prohibited. The values are described as follows:

stabilizationWindowSeconds Integer

Expansion cooling time.

step Integer

Flexible expansion step. The maximum number of instances per unit time.

disabled boolean

Whether shrinkage is prohibited. The values are described as follows:

stabilizationWindowSeconds number

Expansion cooling time.

step number

Flexible expansion step. The maximum number of instances per unit time.

disabled bool

Whether shrinkage is prohibited. The values are described as follows:

stabilization_window_seconds int

Expansion cooling time.

step int

Flexible expansion step. The maximum number of instances per unit time.

disabled Boolean

Whether shrinkage is prohibited. The values are described as follows:

stabilizationWindowSeconds Number

Expansion cooling time.

step Number

Flexible expansion step. The maximum number of instances per unit time.

GetApplicationScalingRulesRuleScalingRuleMetricScaleUpRule

Disabled bool

Whether shrinkage is prohibited. The values are described as follows:

StabilizationWindowSeconds int

Expansion cooling time.

Step int

Flexible expansion step. The maximum number of instances per unit time.

Disabled bool

Whether shrinkage is prohibited. The values are described as follows:

StabilizationWindowSeconds int

Expansion cooling time.

Step int

Flexible expansion step. The maximum number of instances per unit time.

disabled Boolean

Whether shrinkage is prohibited. The values are described as follows:

stabilizationWindowSeconds Integer

Expansion cooling time.

step Integer

Flexible expansion step. The maximum number of instances per unit time.

disabled boolean

Whether shrinkage is prohibited. The values are described as follows:

stabilizationWindowSeconds number

Expansion cooling time.

step number

Flexible expansion step. The maximum number of instances per unit time.

disabled bool

Whether shrinkage is prohibited. The values are described as follows:

stabilization_window_seconds int

Expansion cooling time.

step int

Flexible expansion step. The maximum number of instances per unit time.

disabled Boolean

Whether shrinkage is prohibited. The values are described as follows:

stabilizationWindowSeconds Number

Expansion cooling time.

step Number

Flexible expansion step. The maximum number of instances per unit time.

GetApplicationScalingRulesRuleScalingRuleTimer

BeginDate string

The short-term start date of the timed elastic scaling strategy.

EndDate string

The short-term end date of the timed elastic scaling strategy.

Period string

The period in which a timed elastic scaling strategy is executed.

Schedules List<Pulumi.AliCloud.Sae.Inputs.GetApplicationScalingRulesRuleScalingRuleTimerSchedule>

Trigger point in time within a single day.

BeginDate string

The short-term start date of the timed elastic scaling strategy.

EndDate string

The short-term end date of the timed elastic scaling strategy.

Period string

The period in which a timed elastic scaling strategy is executed.

Schedules []GetApplicationScalingRulesRuleScalingRuleTimerSchedule

Trigger point in time within a single day.

beginDate String

The short-term start date of the timed elastic scaling strategy.

endDate String

The short-term end date of the timed elastic scaling strategy.

period String

The period in which a timed elastic scaling strategy is executed.

schedules List<GetApplicationScalingRulesRuleScalingRuleTimerSchedule>

Trigger point in time within a single day.

beginDate string

The short-term start date of the timed elastic scaling strategy.

endDate string

The short-term end date of the timed elastic scaling strategy.

period string

The period in which a timed elastic scaling strategy is executed.

schedules GetApplicationScalingRulesRuleScalingRuleTimerSchedule[]

Trigger point in time within a single day.

begin_date str

The short-term start date of the timed elastic scaling strategy.

end_date str

The short-term end date of the timed elastic scaling strategy.

period str

The period in which a timed elastic scaling strategy is executed.

schedules Sequence[GetApplicationScalingRulesRuleScalingRuleTimerSchedule]

Trigger point in time within a single day.

beginDate String

The short-term start date of the timed elastic scaling strategy.

endDate String

The short-term end date of the timed elastic scaling strategy.

period String

The period in which a timed elastic scaling strategy is executed.

schedules List<Property Map>

Trigger point in time within a single day.

GetApplicationScalingRulesRuleScalingRuleTimerSchedule

AtTime string

Time point. Format: hours:minutes.

MaxReplicas int

The maximum number of instances.

MinReplicas int

The minimum number of instances.

TargetReplicas int

The number of target instances.

AtTime string

Time point. Format: hours:minutes.

MaxReplicas int

The maximum number of instances.

MinReplicas int

The minimum number of instances.

TargetReplicas int

The number of target instances.

atTime String

Time point. Format: hours:minutes.

maxReplicas Integer

The maximum number of instances.

minReplicas Integer

The minimum number of instances.

targetReplicas Integer

The number of target instances.

atTime string

Time point. Format: hours:minutes.

maxReplicas number

The maximum number of instances.

minReplicas number

The minimum number of instances.

targetReplicas number

The number of target instances.

at_time str

Time point. Format: hours:minutes.

max_replicas int

The maximum number of instances.

min_replicas int

The minimum number of instances.

target_replicas int

The number of target instances.

atTime String

Time point. Format: hours:minutes.

maxReplicas Number

The maximum number of instances.

minReplicas Number

The minimum number of instances.

targetReplicas Number

The number of target instances.

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.