日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

ACS-ECS-BulkyReplaceSystemDiskInSLBVServerGroup

模板名稱

ACS-ECS-BulkyReplaceSystemDiskInSLBVServerGroup 批量替換SLB虛擬服務(wù)組內(nèi)ECS實(shí)例的系統(tǒng)盤

立即執(zhí)行

模板描述

批量替換SLB虛擬服務(wù)組內(nèi)ECS實(shí)例的系統(tǒng)盤

模板類型

自動(dòng)化

所有者

Alibaba Cloud

輸入?yún)?shù)

參數(shù)名稱

描述

類型

是否必填

默認(rèn)值

約束

imageId

源鏡像ID

String

VServerGroupId

服務(wù)器組ID

String

rateControl

任務(wù)執(zhí)行的并發(fā)比率

Json

{‘Mode’: ‘Concurrency’, ‘MaxErrors’: 0, ‘Concurrency’: 1}

OOSAssumeRole

OOS扮演的RAM角色

String

“”

輸出參數(shù)

參數(shù)名稱

描述

類型

newSystemDiskIds

List

執(zhí)行此模板需要的權(quán)限策略

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "slb:DescribeVServerGroupAttribute",
                "slb:SetVServerGroupAttribute"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": [
                "ecs:DescribeDisks",
                "ecs:DescribeInstances",
                "ecs:ReplaceSystemDisk",
                "ecs:StartInstance",
                "ecs:StopInstance"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

詳情

ACS-ECS-BulkyReplaceSystemDiskInSLBVServerGroup詳情

模板內(nèi)容

FormatVersion: OOS-2019-06-01
Description:
  en: Bulky replaces system disk of ECS instances in Vserver group
  zh-cn: 批量替換SLB虛擬服務(wù)組內(nèi)ECS實(shí)例的系統(tǒng)盤
  name-en: ACS-ECS-BulkyReplaceSystemDiskWithSLBVServerGroup
  name-zh-cn: 批量替換SLB虛擬服務(wù)組內(nèi)ECS實(shí)例的系統(tǒng)盤
  categories:
    - slb_management
Parameters:
  imageId:
    Label:
      en: ImageId
      zh-cn: 源鏡像ID
    Type: String
    AssociationProperty: 'ALIYUN::ECS::Image::ImageId'
  VServerGroupId:
    Label:
      en: VServerGroupId
      zh-cn: 服務(wù)器組ID
    Type: String
  rateControl:
    Label:
      en: RateControl
      zh-cn: 任務(wù)執(zhí)行的并發(fā)比率
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 1
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: OOS扮演的RAM角色
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: describeVServerGroupAttribute
    Action: ACS::ExecuteApi
    Description:
      en: Views vserver group attribute
      zh-cn: 獲取服務(wù)組屬性
    Properties:
      Service: SLB
      API: DescribeVServerGroupAttribute
      Parameters:
        VServerGroupId: '{{ VServerGroupId }}'
    Outputs:
      BackendServers:
        Type: List
        ValueSelector: BackendServers.BackendServer[]
  - Name: replaceSystemDisk
    Action: ACS::ECS::ElegantReplaceSystemDiskInSLBVServerGroup
    Description:
      en: Replaces the system disk of ECS instances
      zh-cn: 更換系統(tǒng)盤
    Properties:
      VServerGroupId: '{{ vServerGroupId }}'
      imageId: '{{ imageId }}'
      serverId:
        'Fn::Select':
          - ServerId
          - '{{ ACS::TaskLoopItem }}'
      weight:
        'Fn::Select':
          - Weight
          - '{{ ACS::TaskLoopItem }}'
      type:
        'Fn::Select':
          - Type
          - '{{ ACS::TaskLoopItem }}'
      port:
        'Fn::Select':
          - Port
          - '{{ ACS::TaskLoopItem }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ describeVServerGroupAttribute.BackendServers }}'
      Outputs:
        newSystemDiskIds:
          AggregateType: Fn::ListJoin
          AggregateField: newSystemDiskId
    Outputs:
      newSystemDiskId:
        Type: String
        ValueSelector: newSystemDiskId
Outputs:
  newSystemDiskIds:
    Type: List
    Value: '{{ replaceSystemDisk.newSystemDiskIds }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - imageId
          - VServerGroupId
        Label:
          default:
            zh-cn: 設(shè)置參數(shù)
            en: Configure Parameters
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            zh-cn: 高級(jí)選項(xiàng)
            en: Control