Nome do modelo
ACS-ECS-BulkyCreateSnapshot
Descrição do modelo
Crie snapshots de vários discos simultaneamente.
Tipo de modelo
Automatizado
Proprietário
Alibaba Cloud
Parâmetros de entrada
|
Parâmetro |
Descrição |
Tipo |
Obrigatório |
Valor padrão |
Limite |
|
diskIds |
ID do disco |
List |
Sim |
||
|
regionId |
ID da região |
String |
Não |
{{ ACS::RegionId }} |
|
|
retentionDays |
Período de retenção dos snapshots |
Number |
Não |
0 |
|
|
tags |
Tags dos snapshots |
Json |
Não |
[] |
|
|
rateControl |
Proporção de concorrência na execução da tarefa |
Json |
Não |
{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
|
|
OOSAssumeRole |
Função do Resource Access Management (RAM) assumida pelo CloudOps Orchestration Service (OOS) |
String |
Não |
"" |
Parâmetros de saída
|
Parâmetro |
Descrição |
Tipo |
|
createdSnapshotIds |
List |
Política de permissões necessária para executar o modelo
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:CreateSnapshot",
"ecs:DescribeDisks",
"ecs:DescribeInstances",
"ecs:DescribeSnapshots"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Detalhes
Para obter mais informações, consulte ACS-ECS-BulkyCreateSnapshot.yml no GitHub.
Conteúdo do modelo
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