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

CloudOps Orchestration Service:ACS-TAG-UnTagResources

最終更新日:Jan 17, 2025

テンプレート名

ACS-TAG-UnTagResources

今すぐ実行

テンプレートの説明

リソース管理を使用してリソースからタグを削除します。

テンプレートタイプ

自動化

所有者

Alibaba Cloud

入力パラメータ

パラメータ

説明

タイプ

必須

デフォルト値

制限

tagKey

タグキー。

String

はい

regionId

リージョン ID。

String

いいえ

{{ ACS::RegionId }}

tagValue

タグ値。

String

いいえ

""

resourceType

リソースタイプ。

String

いいえ

""

rateControl

レート制御設定。

Json

いいえ

{'Mode': 'Concurrency', 'MaxErrors': '100%', 'Concurrency': 10}

OOSAssumeRole

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

String

いいえ

""

出力パラメータ

パラメータ

説明

タイプ

resources

List

untagFailedResult

List

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

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "tag:ListTagResources",
                "tag:ListTagValues",
                "tag:UnTagResources"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

参照

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

テンプレートコンテンツ

FormatVersion: OOS-2019-06-01
Description:
  en: Unbind tags through resource management
  zh-cn: the description in Chinese
  name-en: ACS-TAG-UnTagResources
  name-zh-cn: the description in Chinese
Parameters:
  regionId:
    Label:
      en: RegionId
      zh-cn: the description in Chinese
    Type: String
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  tagKey:
    Label:
      en: tagKey
      zh-cn: the description in Chinese
    Type: String
  tagValue:
    Label:
      en: tagValue
      zh-cn: the description in Chinese
    Description:
      en: When the tag value is empty, it will retrieve all resources with the specified tag key and unbind the tag
      zh-cn: タグ値が空の場合、指定されたタグキーを持つすべてのリソースを取得し、タグを解除します
    Type: String
    Default: ''
  resourceType:
    Label:
      en: ResourceType
      zh-cn: the description in Chinese
    Type: String
    AllowedValues:
      - ACS::ACK::Cluster
      - ACS::ADB::DBCluster