Nama template
ACS-ECS-ResetDiskWithSnapshot
Deskripsi template
Mereset disk menggunakan snapshot.
Tipe template
Otomatis
Pemilik
Alibaba Cloud
Parameter input
Parameter | Deskripsi | Tipe | Diperlukan | Nilai default | Batasan |
regionId | ID wilayah. | String | Ya | ||
instanceId | ID instance Elastic Compute Service (ECS). | String | Ya | ||
diskId | ID disk. | String | Ya | ||
snapshotId | ID snapshot. | String | Ya | ||
OOSAssumeRole | Peran Resource Access Management (RAM) yang diasumsikan oleh CloudOps Orchestration Service (OOS). | String | Tidak | "" |
Parameter output
Tidak ada
Kebijakan izin yang diperlukan untuk mengeksekusi template
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:DescribeDisks",
"ecs:DescribeInstances",
"ecs:ResetDisk",
"ecs:StartInstance",
"ecs:StopInstance"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Referensi
Untuk informasi lebih lanjut, lihat ACS-ECS-ResetDiskWithSnapshot.yml di GitHub.
Konten Template
FormatVersion: OOS-2019-06-01
Description:
en: Use snapshot to create a temporary cloud disk to restore data
zh-cn: the description in Chinese
name-en: ACS-ECS-ResetDiskWithSnapshot
name-zh-cn: the description in Chinese
categories:
- instance_manage
- computenest
- application_manage
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: the description in Chinese
AssociationProperty: RegionId
instanceId:
Type: String
Label:
en: InstanceId
zh-cn: the description in Chinese
AssociationProperty: ALIYUN::ECS::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: regionId
Status: Running
diskId:
Type: String
Label:
en: Disk id
zh-cn: the description in Chinese
AssociationProperty: ALIYUN::ECS::Disk::DiskId
AssociationPropertyMetadata:
RegionId: regionId
InstanceId: instanceId
snapshotId:
Type: String
Label:
en: Snapshot id
zh-cn: the description in Chinese
AssociationProperty: ALIYUN::ECS::Snapshot::SnapshotId
AssociationPropertyMetadata:
DiskId: diskId
OOSAssumeRole:
Type: String
Label:
en: OOSAssumeRole
zh-cn: the description in Chinese
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: resetDisk
Action: 'ACS::ECS::ResetDisk'
Description:
en: Resets the ECS disk
zh-cn: the description in Chinese
Properties:
regionId: '{{ regionId }}'
diskId: '{{ diskId }}'
snapshotId: '{{ snapshotId }}'
instanceId: '{{ instanceId }}'