All Products
Search
Document Center

CloudOps Orchestration Service:ACS-ECS-BulkyReleasePublicIpAddress

Last Updated:Nov 21, 2024

Template name

ACS-ECS-BulkyReleasePublicIpAddress

Execute Now

Template description

Releases multiple public IP addresses at a time.

Template type

Automated

Owner

Alibaba Cloud

Input parameters

Parameter

Description

Type

Required

Default value

Limit

publicIpAddress

The public IP addresses to be released.

List

Yes

regionId

The region ID.

String

No

{{ ACS::RegionId }}

rateControl

The rate control settings.

Json

No

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

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": [
                "ecs:ReleasePublicIpAddress"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

References

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

Template content

FormatVersion: OOS-2019-06-01
Description:
  name-en: ACS-ECS-BulkyReleasePublicIpAddress
  name-zh-cn: the description in Chinese
  en: Bulky release the public ip address
  zh-cn: the description in Chinese
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
      zh-cn: the description in Chinese
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  publicIpAddress:
    Label:
      en: PublicIpAddress
      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: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: the description in Chinese
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: releasePublicIpAddress
    Action: ACS::ExecuteAPI
    Description:
      en: Release the public ip address
      zh-cn: the description in Chinese
    Properties:
      Service: ECS
      API: ReleasePublicIpAddress
      Parameters:
        RegionId: '{{ regionId }}'
        PublicIpAddress: '{{ ACS::TaskLoopItem }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ publicIpAddress }}'