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

CloudOps Orchestration Service:共通帯域幅パッケージから複数のEIPを一括削除

最終更新日:Jan 17, 2025

テンプレート名

ACS-ECS-BulkyRemoveEipsFromCommonBandwidthPackage

今すぐ実行

テンプレートの説明

インターネット共有帯域幅インスタンスから複数のエラスティック IP アドレス (EIP) を一度に関連付け解除します。

テンプレートの種類

自動化

所有者

Alibaba Cloud

入力パラメーター

パラメーター

説明

種類

必須

デフォルト値

制限

eipAddresses

インターネット共有帯域幅インスタンスから関連付けを解除する EIP。

リスト

はい

regionId

リージョン ID。

文字列

いいえ

{{ ACS::RegionId }}

rateControl

レート制御設定。

JSON

いいえ

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

OOSAssumeRole

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

文字列

いいえ

""

出力パラメーター

なし

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

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

参照

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

テンプレートの内容

FormatVersion: OOS-2019-06-01
Description:
  en: Bulky remove EIPs from common bandwidth package
  zh-cn: the description in Chinese
  name-en: ACS-ECS-BulkyRemoveEipsFromCommonBandwidthPackage
  name-zh-cn: the description in Chinese
  categories:
    - instance_manage
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
      zh-cn: the description in Chinese
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  eipAddresses:
    Label:
      en: EipAddresses
      zh-cn: the description in Chinese
    Type: List
  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: removeCommonBandwidthPackageEip
    Action: ACS::ECS::RemoveEipFromCommonBandwidthPackage
    Description:
      en: Removes Eip from CommonBandwidthPackage
      zh-cn: the description in Chinese
    Properties:
      regionId: '{{ regionId }}'
      eipAddress: '{{ ACS::TaskLoopItem }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ eipAddresses }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - regionId
          - eipAddresses
        Label:
          default:
            zh-cn: the description in Chinese
            en: Select EIP Instances
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            zh-cn: the description in Chinese
            en: Control Options