Modify the bandwidth of multiple Internet-facing SLB instances in bulk using this OOS template.
Template name
ACS-SLB-BulkyModifyLoadBalancerInternetSpec
Template description
Modifies the bandwidth of multiple Internet-facing Server Load Balancer (SLB) instances at a time.
Template type
Automated
Owner
Alibaba Cloud
Input parameters
|
Parameter |
Description |
Type |
Required |
Default value |
Limit |
|
loadBalancerIds |
The IDs of the SLB instances. |
List |
Yes |
||
|
bandwidth |
The peak bandwidth of the SLB instances. |
Number |
Yes |
||
|
regionId |
The region ID. |
String |
No |
{{ ACS::RegionId }} |
|
|
rateControl |
The rate control settings. |
Json |
No |
{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
|
|
OOSAssumeRole |
The RAM role assumed by CloudOps Orchestration Service (OOS). |
String |
No |
"" |
Output parameters
None
Required permission policy
{
"Version": "1",
"Statement": [
{
"Action": [
"slb:ModifyLoadBalancerInternetSpec"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
References
For more information, see ACS-SLB-BulkyModifyLoadBalancerInternetSpec at GitHub.
Template content
FormatVersion: OOS-2019-06-01
Description:
en: Bulky modify load balancer internet spec
name-en: ACS-SLB-BulkyModifyLoadBalancerInternetSpec
categories:
- computenest
Parameters:
regionId:
Type: String
Label:
en: RegionId
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
loadBalancerIds:
Label:
en: LoadBalancerIds
AssociationProperty: ALIYUN::SLB::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
bandwidth:
Label:
en: Bandwidth
Type: Number
MinValue: 1
MaxValue: 5000
rateControl:
Label:
en: RateControl
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: modifyLoadBalancerInternetSpec
Action: ACS::ExecuteApi
Description:
en: Modify load balancer internet spec
Properties:
Service: SLB
API: ModifyLoadBalancerInternetSpec
Parameters:
RegionId: '{{ regionId }}'
LoadBalancerId: '{{ ACS::TaskLoopItem }}'
Bandwidth: '{{ bandwidth }}'
AutoPay: true
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ loadBalancerIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- loadBalancerIds
- bandwidth
Label:
default:
en: Configure Parameters
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
en: Control Options