All Products
Search
Document Center

CloudOps Orchestration Service:ACS-ECS-BulkyAddEipsToCommonBandwidthPackage

Last Updated:Sep 20, 2024

Template name

ACS-ECS-BulkyAddEipsToCommonBandwidthPackage

Execute Now

Template description

Associates multiple elastic IP addresses (EIPs) with an Internet Shared Bandwidth instance at a time.

Template type

Automated

Owner

Alibaba Cloud

Input parameters

Parameter

Description

Type

Required

Default value

Limit

eipAddresses

The EIPs that you want to associate with an Internet Shared Bandwidth instance.

List

Yes

bandwidthPackageId

The ID of the Internet Shared Bandwidth instance.

String

Yes

rateControl

The rate control settings.

Json

No

{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 15}

OOSAssumeRole

The Resource Access Management (RAM) role that is assumed by CloudOps Orchestration Service (OOS).

String

No

""

Output parameters

None

Permission policy that is required to execute the template

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "vpc:AddCommonBandwidthPackageIp",
                "vpc:DescribeEipAddresses",
                "vpc:RemoveCommonBandwidthPackageIp"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

References

For more information, see ACS-ECS-BulkyAddEipsToCommonBandwidthPackage.yml at GitHub.

Template content

FormatVersion: OOS-2019-06-01
Description:
  en: Bulky add EIPs to common bandwidth package
  zh-cn: the description in Chinese
  name-en: ACS-ECS-BulkyAddEipsToCommonBandwidthPackage
  name-zh-cn: the description in Chinese
  categories:
    - instance_manage
Parameters:
  eipAddresses:
    Label:
      en: EipAddresses
      zh-cn: the description in Chinese
    Type: List
  bandwidthPackageId:
    Label:
      en: BandwidthPackageId
      zh-cn: the description in Chinese
    Type: String
  rateControl:
    Label:
      en: RateControl
      zh-cn: the description in Chinese
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 15
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: the description in Chinese
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: addCommonBandwidthPackageIp
    Action: ACS::ECS::AddEipToCommonBandwidthPackage
    Description:
      en: Add Eip from CommonBandwidthPackage
      zh-cn: the description in Chinese
    Properties:
      bandwidthPackageId: '{{ bandwidthPackageId }}'
      eipAddress: '{{ ACS::TaskLoopItem }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ eipAddresses }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - eipAddresses
          - bandwidthPackageId
        Label:
          default:
            zh-cn: the description in Chinese
            en: Configure Parameters
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            zh-cn: the description in Chinese
            en: Control Options