全部產品
Search
文件中心

CloudOps Orchestration Service:ACS::ECS::DownloadOSSFileAndRunCommand

更新時間:Jul 01, 2024

動作描述

下載OSS檔案到ECS執行個體並執行命令

文法

Action: ACS::ECS::DownloadOSSFileAndRunCommand
Properties:
 regionId: String
 parameters: Json
 instanceId: String
 bucketName: String
 objectName: String
 URLExpirationTime: Number
 OSSRegion: String
 tokenInfo: String
 destinationDir: String
 whetherSaveToFile: Boolean
 commandContent: String
 workingDir: String
 timeout: Number

屬性

屬性名稱

描述

類型

是否必填

預設值

約束

regionId

地區ID

String

{{ ACS::RegionId }}

parameters

命令中的參數

Json

{}

instanceId

ECS執行個體ID

String

bucketName

OSS bucket名稱

String

objectName

OSS對象名稱

String

URLExpirationTime

OSS檔案下載連結的到期時間

Number

6000

OSSRegion

OSS所在地區

String

tokenInfo

指定一個token來下載檔案,只有從GitHub下載檔案時會用到

String

""

destinationDir

檔案在ECS執行個體中的下載目錄

String

whetherSaveToFile

是否將內容下載到特定檔案

Boolean

True

commandContent

命令內容

String

workingDir

指令碼在ECS執行個體中的運行目錄。Linux系統執行個體預設在管理員(root使用者)的home目錄下,即/root。Windows系統執行個體預設在雲助手用戶端進程所在目錄,例如C:\Windows\System32

String

""

timeout

ECS執行個體中執行命令的逾時時間

Number

600

傳回值

傳回值名稱

描述

類型

downloadFileCommandOutput

String

runCommandOutput

String

詳情

ACS::ECS::DownloadOSSFileAndRunCommand詳情