Queries scaling groups.
Syntax
{
"Type": "DATASOURCE::ESS::ScalingGroups",
"Properties": {
"ScalingGroupNames": List,
"GroupType": String,
"ScalingGroupIds": List,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
ScalingGroupNames |
List |
No |
Yes |
The names of the scaling groups. |
Names of inactive scaling groups are omitted from the query result without an error. Note
You can query up to 20 scaling group names in a request. |
|
GroupType |
String |
No |
Yes |
The type of instances managed by the scaling group. |
Valid values:
|
|
ScalingGroupIds |
List |
No |
Yes |
The IDs of the scaling groups. |
IDs of inactive scaling groups are omitted from the query result without an error. Note
You can query up to 20 scaling group IDs in a request. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values (Fn::GetAtt)
-
ScalingGroups: details of the scaling groups.
-
ScalingGroupIds: the IDs of the scaling groups.
|
Property |
Type |
Description |
Constraint |
|
ScalingGroupIds |
List |
The IDs of the scaling groups. |
None. |
|
ScalingGroups |
List |
Details of the scaling groups. |
None. |
|
DesiredCapacity |
Number |
The expected number of ECS instances in the scaling group. |
Auto Scaling maintains this number of ECS instances in the scaling group. |
|
LifecycleState |
String |
The status of the scaling group. |
Valid values:
|
|
TotalInstanceCount |
Number |
The total number of ECS instances in the scaling group. |
None. |
|
Weighted |
Boolean |
Indicates whether the weight of an instance type is specified. |
Valid values:
|
|
RemovalPolicies |
List |
The policies for removing ECS instances from the scaling group. |
Valid values:
|
|
PendingWaitCapacity |
Number |
The number of ECS instances pending addition to the scaling group. |
None. |
|
TotalCapacity |
Number |
The total weighted capacity of ECS instances in the scaling group when Weighted is specified, or the total number of ECS instances when Weighted is not specified. |
None. |
|
RemovingWaitCapacity |
Number |
The number of ECS instances pending removal from the scaling group. |
None. |
|
IsElasticStrengthInAlarm |
Boolean |
Indicates whether alerts are triggered. |
None. |
|
ProtectedCapacity |
Number |
The number of protected ECS instances in the scaling group. |
None. |
|
StandbyCapacity |
Number |
The number of instances in standby in the scaling group. |
None. |
|
ScalingPolicy |
String |
The reclaim mode of the scaling group. |
Valid values:
Note
For more information about how to remove instances, see RemoveInstances. |
|
SuspendedProcesses |
List |
The suspended processes. |
Valid values:
|
|
RemovingCapacity |
Number |
The number of ECS instances being removed from the scaling group. |
None. |
|
VSwitchIds |
List |
The vSwitch IDs associated with the scaling group. |
If VSwitchIds is specified, VSwitchId is ignored. |
|
ScalingGroupId |
String |
The ID of the scaling group. |
None. |
|
PendingCapacity |
Number |
The number of ECS instances being added to the scaling group and still being configured. |
None. |
|
VSwitchId |
String |
The vSwitch ID associated with the scaling group. |
None. |
|
LoadBalancerIds |
List |
The IDs of Server Load Balancer (SLB) instances associated with the scaling group. |
None. |
|
GroupDeletionProtection |
Boolean |
Indicates whether deletion protection is enabled for the scaling group. |
Valid values:
|
|
MaxSize |
Number |
The maximum number of ECS instances in the scaling group. |
None. |
|
ScalingGroupName |
String |
The name of the scaling group. |
None. |
|
MinSize |
Number |
The minimum number of ECS instances in the scaling group. |
None. |
|
ActiveCapacity |
Number |
The number of ECS instances added to the scaling group and running as expected. |
None. |
|
DefaultCooldown |
Number |
The default cooldown period of the scaling group. |
During the cooldown period, Auto Scaling executes only scaling activities triggered by CloudMonitor event-triggered tasks. |
|
VpcId |
String |
The ID of the virtual private cloud (VPC) to which the scaling group belongs. |
None. |
|
GroupType |
String |
The type of instances managed by the scaling group. |
Valid values:
|
|
SystemSuspended |
Boolean |
Indicates whether Auto Scaling has stopped scaling activities in the scaling group. |
Valid values:
|
|
CreationTime |
String |
The time when the scaling group was created. |
None. |
|
MultiAZPolicy |
String |
The scaling policy for ECS instances in the multi-zone scaling group. |
Valid values:
|
|
StoppedCapacity |
Number |
The number of instances in economical mode in the scaling group. |
None. |
|
DBInstanceIds |
List |
The IDs of ApsaraDB RDS instances associated with the scaling group. |
Example: |
|
HealthCheckType |
String |
The health check type of the scaling group. |
Valid values:
|
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GroupType": {
"Type": "String",
"Description": "The type of instances that are managed by the scaling group. Valid values:\nECS: the Elastic Compute Service (ECS) instances\nECI: the elastic container instances\nDefault value: ECS.",
"Default": "ECS"
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ESS::ScalingGroups",
"Properties": {
"GroupType": {
"Ref": "GroupType"
}
}
}
},
"Outputs": {
"ScalingGroups": {
"Description": "The list of scaling groups.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScalingGroups"
]
}
},
"ScalingGroupIds": {
"Description": "The list of scaling group IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScalingGroupIds"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GroupType:
Type: String
Description: |-
The type of instances that are managed by the scaling group. Valid values:
ECS: the Elastic Compute Service (ECS) instances
ECI: the elastic container instances
Default value: ECS.
Default: ECS
Resources:
ExtensionDataSource:
Type: DATASOURCE::ESS::ScalingGroups
Properties:
GroupType:
Ref: GroupType
Outputs:
ScalingGroups:
Description: The list of scaling groups.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScalingGroups
ScalingGroupIds:
Description: The list of scaling group IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScalingGroupIds