全部产品
Search
文档中心

系统运维管理:ACS::CN::UpgradeServiceInstanceByRunCommand

更新时间:Jun 12, 2024

动作描述

通过下载OSS文件与运行命令执行服务实例升级

语法

Action: ACS::CN::UpgradeServiceInstanceByRunCommand
Properties:
 regionId: String
 serviceInstanceId: String
 resourceName: String
 applicationGroupName: String
 artifactsUrl: String
 artifactsDownloadDirectory: String
 commandType: String
 commandContent: String
 workingDir: String
 timeout: Number
 enableParameter: Boolean
 parameters: Json
 OOSAssumeRole: String

属性

属性名称

描述

类型

是否必填

默认值

约束

regionId

地域

String

否

{{ ACS::RegionId }}

serviceInstanceId

计算巢服务实例ID

String

是

resourceName

运行命令的ECS实例资源名称

String

否

applicationGroupName

运行命令的ECS实例应用分组名称

String

否

artifactsUrl

The URL of file artifacts

String

否

artifactsDownloadDirectory

The artifacts download to directory

String

否

commandType

命令类型

String

否

RunShellScript

commandContent

命令内容

String

是

最大长度 : 16384

workingDir

运行目录

String

否

timeout

超时时间

Number

否

600

enableParameter

命令中是否包含加密参数或自定义参数

Boolean

否

False

parameters

命令参数

Json

否

{}

返回值

返回值名称

描述

类型

commandOutput

List

详情

ACS::CN::UpgradeServiceInstanceByRunCommand详情