テンプレート名
ACS-ECS-BulkyModifyAutoSnapshotPolicyTimePoint
テンプレートの説明
複数の自動スナップショットポリシーのスナップショットが作成される時刻を変更します。
テンプレートの種類
自動化
所有者
Alibaba Cloud
入力パラメータ
パラメータ | 説明 | 種類 | 必須 | デフォルト値 | 制限 |
instanceIds | 自動スナップショットポリシーの ID。 | リスト | はい | ||
timePoints | 自動スナップショットが作成される時刻。 | 文字列 | はい | ||
OOSAssumeRole | CloudOps Orchestration Service (OOS) によって引き受けられる Resource Access Management (RAM) ロール。 | 文字列 | はい | ||
regionId | リージョン ID。 | 文字列 | いいえ | {{ ACS::RegionId }} | |
rateControl | レート制御設定。 | JSON | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
出力パラメータ
なし
テンプレートを実行するために必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:ModifyAutoSnapshotPolicyEx"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
参照
詳細については、GitHub の ACS-ECS-BulkyModifyAutoSnapshotPolicyTimePoint.yml をご参照ください。
テンプレートの内容
FormatVersion: OOS-2019-06-01
Description:
en: Modifies timepoints of AutoSnapshotPolicy
zh-cn: the description in Chinese
name-en: ACS-ECS-BulkyModifyAutoSnapshotPolicyTimePoint
name-zh-cn: the description in Chinese
categories:
- security
Parameters:
regionId:
Label:
en: RegionId
zh-cn: the description in Chinese
Type: String
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
instanceIds:
Label:
en: The ids of AutoSnapshotPolicy
zh-cn: the description in Chinese
Type: List
timePoints:
Description:
en: The time must be in UTC+8. Unit hours. Valid values are 0 to 23, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, a value of 1 indicates 01:00:00.
zh-cn: the description in Chinese
Label:
en: The maintain time of the instance autosnapshot
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: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: the description in Chinese
Type: String
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: ModifyAutoSnapshotPolicyEx
Action: ACS::ExecuteAPI
Description:
en: Modifies timepoints of ecs AutoSnapshotPolicy
zh-cn: the description in Chinese
Properties:
Service: ECS
API: ModifyAutoSnapshotPolicyEx
Parameters:
RegionId: '{{ RegionId }}'
autoSnapshotPolicyId: '{{ ACS::TaskLoopItem }}'
timePoints: '{{ timePoints }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ instanceIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- timePoints
Label:
default:
zh-cn: the description in Chinese
en: Configure timepoints
- Parameters:
- regionId
- instanceIds
Label:
default:
zh-cn: the description in Chinese
en: Select policy
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: the description in Chinese
en: Control Options