Nom du modèle
ACS-ECS-BulkyCreateSnapshot
Description du modèle
Crée des snapshots pour plusieurs disques simultanément.
Type de modèle
Automatisé
Propriétaire
Alibaba Cloud
Paramètres d'entrée
|
Paramètre |
Description |
Type |
Obligatoire |
Valeur par défaut |
Limite |
|
diskIds |
ID des disques |
List |
Oui |
||
|
regionId |
ID de la région. |
String |
Non |
{{ ACS::RegionId }} |
|
|
retentionDays |
Durée de rétention des snapshots. |
Number |
Non |
0 |
|
|
tags |
Tags des snapshots. |
Json |
Non |
[] |
|
|
rateControl |
Taux de concurrence d'exécution des tâches |
Json |
Non |
{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
|
|
OOSAssumeRole |
Rôle Resource Access Management (RAM) assumé par le service CloudOps Orchestration Service (OOS). |
String |
Non |
"" |
Paramètres de sortie
|
Paramètre |
Description |
Type |
|
createdSnapshotIds |
List |
Stratégie d'autorisation requise pour exécuter le modèle
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:CreateSnapshot",
"ecs:DescribeDisks",
"ecs:DescribeInstances",
"ecs:DescribeSnapshots"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Détails
Pour plus d'informations, consultez le fichier ACS-ECS-BulkyCreateSnapshot.yml sur GitHub.
Contenu du modèle
FormatVersion: OOS-2019-06-01
Description:
en: Bulky create snapshot
zh-cn: Creates snapshots for multiple disks.
name-en: ACS-ECS-BulkyCreateSnapshot
name-zh-cn: Create Snapshots for Multiple Disks
categories:
- data_backup
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: Region ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
diskIds:
Label:
en: DiskIds
zh-cn: Disk IDs
Type: List
AssociationProperty: ALIYUN::ECS::Disk::DiskId
AssociationPropertyMetadata:
RegionId: regionId
retentionDays:
Label:
en: RetentionDays
zh-cn: Snapshot Retention Period
Description:
en: The unit is days. Snapshots are automatically released after the retention period expires. The default value is 0, which means the snapshot is never automatically released.
zh-cn: The unit is days. Snapshots are automatically released after the retention period expires. A value of 0 means that the snapshot is never automatically released.
Type: Number
MaxValue: 65536
MinValue: 0
Default: 0
tags:
Label:
en: Tags
zh-cn: Snapshot Tags
Type: Json
AssociationProperty: Tags
AssociationPropertyMetadata:
ShowSystem: false
Default: []
rateControl:
Label:
en: RateControl
zh-cn: Task Execution Concurrency
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: RAM Role Assumed by OOS
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: createSnapshot
Action: 'ACS::ECS::CreateSnapshot'
Description:
en: Create a snapshot for a cloud disk
zh-cn: Creates a snapshot for a disk.
Properties:
regionId: '{{ regionId }}'
diskId: '{{ ACS::TaskLoopItem }}'
tags: '{{ tags }}'
retentionDays:
Fn::If:
- Fn::Equals:
- '{{ retentionDays }}'
- 0
- ''
- '{{ retentionDays }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ diskIds }}'
Outputs:
snapshotIds:
AggregateType: 'Fn::ListJoin'
AggregateField: snapshotId
Outputs:
createdSnapshotIds:
Type: List
Value: '{{ createSnapshot.snapshotIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- diskIds
- retentionDays
- tags
Label:
default:
zh-cn: Configuration Parameters
en: Configure Parameters
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: Advanced Options
en: Control Options