動作描述
在ECS執行個體上跨多個地區運行命令或重啟執行個體
文法
Action: ACS::ECS::RunImageTemplateCommand
Properties:
regionId: String
instanceId: String
parameters: Json屬性
屬性名稱 | 描述 | 類型 | 是否必填 | 預設值 | 約束 |
regionId | 地區ID | String | 是 | ||
instanceId | ECS執行個體ID | String | 是 | ||
parameters | 模板任務參數:{"type": "RESTART"}或{" commandType": "RunShellScript", "commandContent": "pwd", "workingDir": "/root", "type": "RunCommand", "timeout": 600} | Json | 是 |
傳回值
傳回值名稱 | 描述 | 類型 |
commandOutput | String |