すべてのプロダクト
Search
ドキュメントセンター

CloudOps Orchestration Service:共通帯域幅パッケージへの複数 EIP の一括関連付け

最終更新日:Jan 17, 2025

テンプレート名

ACS-ECS-BulkyAddEipsToCommonBandwidthPackage

今すぐ実行

テンプレートの説明

複数の Elastic IP アドレス (EIP) を一度にインターネット共有帯域幅インスタンスに関連付けます。

テンプレートの種類

自動化

所有者

Alibaba Cloud

入力パラメーター

パラメーター

説明

種類

必須

デフォルト値

制限

eipAddresses

インターネット共有帯域幅インスタンスに関連付ける EIP。

リスト

はい

bandwidthPackageId

インターネット共有帯域幅インスタンスの ID。

文字列

はい

rateControl

レート制御設定。

JSON

いいえ

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

OOSAssumeRole

CloudOps Orchestration Service (OOS) によって引き受けられる Resource Access Management (RAM) ロール。

文字列

いいえ

""

出力パラメーター

なし

テンプレートを実行するために必要な権限ポリシー

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

参照

詳細については、GitHub の ACS-ECS-BulkyAddEipsToCommonBandwidthPackage.yml をご参照ください。

テンプレートの内容

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