ibm.ComputeAutoscalePolicy
Explore with Pulumi AI
Create, update, or delete a policy for an auto scaling policy. For more information, about compute auto scale policy, see auto scale.
Note For more information, see IBM Cloud Classic Infrastructure (SoftLayer) API docs.
Example Usage
In the following example, you can create an auto scaling policy:
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const testScalePolicy = new ibm.ComputeAutoscalePolicy("testScalePolicy", {
cooldown: 30,
scaleAmount: 1,
scaleGroupId: ibm_compute_autoscale_group["sample-http-cluster"].id,
scaleType: "RELATIVE",
triggers: [
{
type: "RESOURCE_USE",
watches: [{
metric: "host.cpu.percent",
operator: ">",
period: 120,
value: "80",
}],
},
{
date: "2016-07-30T23:55:00-00:00",
type: "ONE_TIME",
},
{
schedule: "0 1 ? * MON,WED *",
type: "REPEATING",
},
],
});
import pulumi
import pulumi_ibm as ibm
test_scale_policy = ibm.ComputeAutoscalePolicy("testScalePolicy",
cooldown=30,
scale_amount=1,
scale_group_id=ibm_compute_autoscale_group["sample-http-cluster"]["id"],
scale_type="RELATIVE",
triggers=[
{
"type": "RESOURCE_USE",
"watches": [{
"metric": "host.cpu.percent",
"operator": ">",
"period": 120,
"value": "80",
}],
},
{
"date": "2016-07-30T23:55:00-00:00",
"type": "ONE_TIME",
},
{
"schedule": "0 1 ? * MON,WED *",
"type": "REPEATING",
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewComputeAutoscalePolicy(ctx, "testScalePolicy", &ibm.ComputeAutoscalePolicyArgs{
Cooldown: pulumi.Float64(30),
ScaleAmount: pulumi.Float64(1),
ScaleGroupId: pulumi.Any(ibm_compute_autoscale_group.SampleHttpCluster.Id),
ScaleType: pulumi.String("RELATIVE"),
Triggers: ibm.ComputeAutoscalePolicyTriggerArray{
&ibm.ComputeAutoscalePolicyTriggerArgs{
Type: pulumi.String("RESOURCE_USE"),
Watches: ibm.ComputeAutoscalePolicyTriggerWatchArray{
&ibm.ComputeAutoscalePolicyTriggerWatchArgs{
Metric: pulumi.String("host.cpu.percent"),
Operator: pulumi.String(">"),
Period: pulumi.Float64(120),
Value: pulumi.String("80"),
},
},
},
&ibm.ComputeAutoscalePolicyTriggerArgs{
Date: pulumi.String("2016-07-30T23:55:00-00:00"),
Type: pulumi.String("ONE_TIME"),
},
&ibm.ComputeAutoscalePolicyTriggerArgs{
Schedule: pulumi.String("0 1 ? * MON,WED *"),
Type: pulumi.String("REPEATING"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var testScalePolicy = new Ibm.ComputeAutoscalePolicy("testScalePolicy", new()
{
Cooldown = 30,
ScaleAmount = 1,
ScaleGroupId = ibm_compute_autoscale_group.Sample_http_cluster.Id,
ScaleType = "RELATIVE",
Triggers = new[]
{
new Ibm.Inputs.ComputeAutoscalePolicyTriggerArgs
{
Type = "RESOURCE_USE",
Watches = new[]
{
new Ibm.Inputs.ComputeAutoscalePolicyTriggerWatchArgs
{
Metric = "host.cpu.percent",
Operator = ">",
Period = 120,
Value = "80",
},
},
},
new Ibm.Inputs.ComputeAutoscalePolicyTriggerArgs
{
Date = "2016-07-30T23:55:00-00:00",
Type = "ONE_TIME",
},
new Ibm.Inputs.ComputeAutoscalePolicyTriggerArgs
{
Schedule = "0 1 ? * MON,WED *",
Type = "REPEATING",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.ComputeAutoscalePolicy;
import com.pulumi.ibm.ComputeAutoscalePolicyArgs;
import com.pulumi.ibm.inputs.ComputeAutoscalePolicyTriggerArgs;
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) {
var testScalePolicy = new ComputeAutoscalePolicy("testScalePolicy", ComputeAutoscalePolicyArgs.builder()
.cooldown(30)
.scaleAmount(1)
.scaleGroupId(ibm_compute_autoscale_group.sample-http-cluster().id())
.scaleType("RELATIVE")
.triggers(
ComputeAutoscalePolicyTriggerArgs.builder()
.type("RESOURCE_USE")
.watches(ComputeAutoscalePolicyTriggerWatchArgs.builder()
.metric("host.cpu.percent")
.operator(">")
.period(120)
.value("80")
.build())
.build(),
ComputeAutoscalePolicyTriggerArgs.builder()
.date("2016-07-30T23:55:00-00:00")
.type("ONE_TIME")
.build(),
ComputeAutoscalePolicyTriggerArgs.builder()
.schedule("0 1 ? * MON,WED *")
.type("REPEATING")
.build())
.build());
}
}
resources:
testScalePolicy:
type: ibm:ComputeAutoscalePolicy
properties:
cooldown: 30
scaleAmount: 1
scaleGroupId: ${ibm_compute_autoscale_group"sample-http-cluster"[%!s(MISSING)].id}
scaleType: RELATIVE
triggers:
- type: RESOURCE_USE
watches:
- metric: host.cpu.percent
operator: '>'
period: 120
value: '80'
- date: 2016-07-30T23:55:00-00:00
type: ONE_TIME
- schedule: 0 1 ? * MON,WED *
type: REPEATING
Create ComputeAutoscalePolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputeAutoscalePolicy(name: string, args: ComputeAutoscalePolicyArgs, opts?: CustomResourceOptions);
@overload
def ComputeAutoscalePolicy(resource_name: str,
args: ComputeAutoscalePolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeAutoscalePolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
scale_amount: Optional[float] = None,
scale_group_id: Optional[float] = None,
scale_type: Optional[str] = None,
compute_autoscale_policy_id: Optional[str] = None,
cooldown: Optional[float] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
triggers: Optional[Sequence[ComputeAutoscalePolicyTriggerArgs]] = None)
func NewComputeAutoscalePolicy(ctx *Context, name string, args ComputeAutoscalePolicyArgs, opts ...ResourceOption) (*ComputeAutoscalePolicy, error)
public ComputeAutoscalePolicy(string name, ComputeAutoscalePolicyArgs args, CustomResourceOptions? opts = null)
public ComputeAutoscalePolicy(String name, ComputeAutoscalePolicyArgs args)
public ComputeAutoscalePolicy(String name, ComputeAutoscalePolicyArgs args, CustomResourceOptions options)
type: ibm:ComputeAutoscalePolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ComputeAutoscalePolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ComputeAutoscalePolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ComputeAutoscalePolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeAutoscalePolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeAutoscalePolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var computeAutoscalePolicyResource = new Ibm.ComputeAutoscalePolicy("computeAutoscalePolicyResource", new()
{
ScaleAmount = 0,
ScaleGroupId = 0,
ScaleType = "string",
ComputeAutoscalePolicyId = "string",
Cooldown = 0,
Name = "string",
Tags = new[]
{
"string",
},
Triggers = new[]
{
new Ibm.Inputs.ComputeAutoscalePolicyTriggerArgs
{
Type = "string",
Date = "string",
Id = 0,
Schedule = "string",
Watches = new[]
{
new Ibm.Inputs.ComputeAutoscalePolicyTriggerWatchArgs
{
Metric = "string",
Operator = "string",
Period = 0,
Value = "string",
Id = 0,
},
},
},
},
});
example, err := ibm.NewComputeAutoscalePolicy(ctx, "computeAutoscalePolicyResource", &ibm.ComputeAutoscalePolicyArgs{
ScaleAmount: pulumi.Float64(0),
ScaleGroupId: pulumi.Float64(0),
ScaleType: pulumi.String("string"),
ComputeAutoscalePolicyId: pulumi.String("string"),
Cooldown: pulumi.Float64(0),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Triggers: ibm.ComputeAutoscalePolicyTriggerArray{
&ibm.ComputeAutoscalePolicyTriggerArgs{
Type: pulumi.String("string"),
Date: pulumi.String("string"),
Id: pulumi.Float64(0),
Schedule: pulumi.String("string"),
Watches: ibm.ComputeAutoscalePolicyTriggerWatchArray{
&ibm.ComputeAutoscalePolicyTriggerWatchArgs{
Metric: pulumi.String("string"),
Operator: pulumi.String("string"),
Period: pulumi.Float64(0),
Value: pulumi.String("string"),
Id: pulumi.Float64(0),
},
},
},
},
})
var computeAutoscalePolicyResource = new ComputeAutoscalePolicy("computeAutoscalePolicyResource", ComputeAutoscalePolicyArgs.builder()
.scaleAmount(0)
.scaleGroupId(0)
.scaleType("string")
.computeAutoscalePolicyId("string")
.cooldown(0)
.name("string")
.tags("string")
.triggers(ComputeAutoscalePolicyTriggerArgs.builder()
.type("string")
.date("string")
.id(0)
.schedule("string")
.watches(ComputeAutoscalePolicyTriggerWatchArgs.builder()
.metric("string")
.operator("string")
.period(0)
.value("string")
.id(0)
.build())
.build())
.build());
compute_autoscale_policy_resource = ibm.ComputeAutoscalePolicy("computeAutoscalePolicyResource",
scale_amount=0,
scale_group_id=0,
scale_type="string",
compute_autoscale_policy_id="string",
cooldown=0,
name="string",
tags=["string"],
triggers=[{
"type": "string",
"date": "string",
"id": 0,
"schedule": "string",
"watches": [{
"metric": "string",
"operator": "string",
"period": 0,
"value": "string",
"id": 0,
}],
}])
const computeAutoscalePolicyResource = new ibm.ComputeAutoscalePolicy("computeAutoscalePolicyResource", {
scaleAmount: 0,
scaleGroupId: 0,
scaleType: "string",
computeAutoscalePolicyId: "string",
cooldown: 0,
name: "string",
tags: ["string"],
triggers: [{
type: "string",
date: "string",
id: 0,
schedule: "string",
watches: [{
metric: "string",
operator: "string",
period: 0,
value: "string",
id: 0,
}],
}],
});
type: ibm:ComputeAutoscalePolicy
properties:
computeAutoscalePolicyId: string
cooldown: 0
name: string
scaleAmount: 0
scaleGroupId: 0
scaleType: string
tags:
- string
triggers:
- date: string
id: 0
schedule: string
type: string
watches:
- id: 0
metric: string
operator: string
period: 0
value: string
ComputeAutoscalePolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ComputeAutoscalePolicy resource accepts the following input properties:
- Scale
Amount double - A count of the scaling actions to perform upon any trigger hit.
- Scale
Group doubleId - The ID of the autoscaling group that is associated with the policy.Yes.
- Scale
Type string - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - Compute
Autoscale stringPolicy Id - (String) The unique identifier of the autoscaling policy.
- Cooldown double
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - Name string
- The name of the autoscaling policy.
- List<string>
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- Triggers
List<Compute
Autoscale Policy Trigger> - The triggers to check for this group.
- Scale
Amount float64 - A count of the scaling actions to perform upon any trigger hit.
- Scale
Group float64Id - The ID of the autoscaling group that is associated with the policy.Yes.
- Scale
Type string - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - Compute
Autoscale stringPolicy Id - (String) The unique identifier of the autoscaling policy.
- Cooldown float64
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - Name string
- The name of the autoscaling policy.
- []string
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- Triggers
[]Compute
Autoscale Policy Trigger Args - The triggers to check for this group.
- scale
Amount Double - A count of the scaling actions to perform upon any trigger hit.
- scale
Group DoubleId - The ID of the autoscaling group that is associated with the policy.Yes.
- scale
Type String - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - compute
Autoscale StringPolicy Id - (String) The unique identifier of the autoscaling policy.
- cooldown Double
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - name String
- The name of the autoscaling policy.
- List<String>
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- triggers
List<Compute
Autoscale Policy Trigger> - The triggers to check for this group.
- scale
Amount number - A count of the scaling actions to perform upon any trigger hit.
- scale
Group numberId - The ID of the autoscaling group that is associated with the policy.Yes.
- scale
Type string - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - compute
Autoscale stringPolicy Id - (String) The unique identifier of the autoscaling policy.
- cooldown number
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - name string
- The name of the autoscaling policy.
- string[]
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- triggers
Compute
Autoscale Policy Trigger[] - The triggers to check for this group.
- scale_
amount float - A count of the scaling actions to perform upon any trigger hit.
- scale_
group_ floatid - The ID of the autoscaling group that is associated with the policy.Yes.
- scale_
type str - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - compute_
autoscale_ strpolicy_ id - (String) The unique identifier of the autoscaling policy.
- cooldown float
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - name str
- The name of the autoscaling policy.
- Sequence[str]
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- triggers
Sequence[Compute
Autoscale Policy Trigger Args] - The triggers to check for this group.
- scale
Amount Number - A count of the scaling actions to perform upon any trigger hit.
- scale
Group NumberId - The ID of the autoscaling group that is associated with the policy.Yes.
- scale
Type String - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - compute
Autoscale StringPolicy Id - (String) The unique identifier of the autoscaling policy.
- cooldown Number
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - name String
- The name of the autoscaling policy.
- List<String>
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- triggers List<Property Map>
- The triggers to check for this group.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeAutoscalePolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ComputeAutoscalePolicy Resource
Get an existing ComputeAutoscalePolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ComputeAutoscalePolicyState, opts?: CustomResourceOptions): ComputeAutoscalePolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compute_autoscale_policy_id: Optional[str] = None,
cooldown: Optional[float] = None,
name: Optional[str] = None,
scale_amount: Optional[float] = None,
scale_group_id: Optional[float] = None,
scale_type: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
triggers: Optional[Sequence[ComputeAutoscalePolicyTriggerArgs]] = None) -> ComputeAutoscalePolicy
func GetComputeAutoscalePolicy(ctx *Context, name string, id IDInput, state *ComputeAutoscalePolicyState, opts ...ResourceOption) (*ComputeAutoscalePolicy, error)
public static ComputeAutoscalePolicy Get(string name, Input<string> id, ComputeAutoscalePolicyState? state, CustomResourceOptions? opts = null)
public static ComputeAutoscalePolicy get(String name, Output<String> id, ComputeAutoscalePolicyState state, CustomResourceOptions options)
resources: _: type: ibm:ComputeAutoscalePolicy get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compute
Autoscale stringPolicy Id - (String) The unique identifier of the autoscaling policy.
- Cooldown double
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - Name string
- The name of the autoscaling policy.
- Scale
Amount double - A count of the scaling actions to perform upon any trigger hit.
- Scale
Group doubleId - The ID of the autoscaling group that is associated with the policy.Yes.
- Scale
Type string - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - List<string>
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- Triggers
List<Compute
Autoscale Policy Trigger> - The triggers to check for this group.
- Compute
Autoscale stringPolicy Id - (String) The unique identifier of the autoscaling policy.
- Cooldown float64
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - Name string
- The name of the autoscaling policy.
- Scale
Amount float64 - A count of the scaling actions to perform upon any trigger hit.
- Scale
Group float64Id - The ID of the autoscaling group that is associated with the policy.Yes.
- Scale
Type string - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - []string
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- Triggers
[]Compute
Autoscale Policy Trigger Args - The triggers to check for this group.
- compute
Autoscale StringPolicy Id - (String) The unique identifier of the autoscaling policy.
- cooldown Double
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - name String
- The name of the autoscaling policy.
- scale
Amount Double - A count of the scaling actions to perform upon any trigger hit.
- scale
Group DoubleId - The ID of the autoscaling group that is associated with the policy.Yes.
- scale
Type String - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - List<String>
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- triggers
List<Compute
Autoscale Policy Trigger> - The triggers to check for this group.
- compute
Autoscale stringPolicy Id - (String) The unique identifier of the autoscaling policy.
- cooldown number
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - name string
- The name of the autoscaling policy.
- scale
Amount number - A count of the scaling actions to perform upon any trigger hit.
- scale
Group numberId - The ID of the autoscaling group that is associated with the policy.Yes.
- scale
Type string - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - string[]
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- triggers
Compute
Autoscale Policy Trigger[] - The triggers to check for this group.
- compute_
autoscale_ strpolicy_ id - (String) The unique identifier of the autoscaling policy.
- cooldown float
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - name str
- The name of the autoscaling policy.
- scale_
amount float - A count of the scaling actions to perform upon any trigger hit.
- scale_
group_ floatid - The ID of the autoscaling group that is associated with the policy.Yes.
- scale_
type str - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - Sequence[str]
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- triggers
Sequence[Compute
Autoscale Policy Trigger Args] - The triggers to check for this group.
- compute
Autoscale StringPolicy Id - (String) The unique identifier of the autoscaling policy.
- cooldown Number
- The duration, expressed in seconds, that the policy waits after the last action date before performing another scaling action. If you do not provide a value, the
scale_group
cool down applies. - name String
- The name of the autoscaling policy.
- scale
Amount Number - A count of the scaling actions to perform upon any trigger hit.
- scale
Group NumberId - The ID of the autoscaling group that is associated with the policy.Yes.
- scale
Type String - The scale type for the autoscaling policy. Accepted values are
ABSOLUTE
,RELATIVE
, andPERCENT
. - List<String>
- The tags that you want to add to the autoscaling policy. Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
- triggers List<Property Map>
- The triggers to check for this group.
Supporting Types
ComputeAutoscalePolicyTrigger, ComputeAutoscalePolicyTriggerArgs
ComputeAutoscalePolicyTriggerWatch, ComputeAutoscalePolicyTriggerWatchArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.