Description
Downloads an Object Storage Service (OSS) object to an Elastic Compute Service (ECS) instance and runs a command on the instance.
Syntax
Action: ACS::ESS::DownloadOSSFileAndRunCommand
Properties:
regionId: String
instanceId: String
bucketName: String
objectName: String
URLExpirationTime: Number
OSSRegion: String
tokenInfo: String
destinationDir: String
whetherSaveToFile: Boolean
commandContent: String
workingDir: String
timeout: Number
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
regionId |
The region ID. |
String |
No |
{{ ACS::RegionId }} |
|
|
instanceId |
The ID of the ECS instance. |
String |
Yes |
||
|
bucketName |
The name of the OSS bucket. |
String |
Yes |
||
|
objectName |
The name of the OSS object. |
String |
Yes |
||
|
URLExpirationTime |
The validity period of the download URL for the OSS object. Unit: seconds. |
Number |
No |
6000 |
|
|
OSSRegion |
The region in which the OSS bucket resides. |
String |
Yes |
||
|
tokenInfo |
The token used to download the OSS object. Required only when you download files from GitHub. |
String |
No |
||
|
destinationDir |
The destination directory on the ECS instance to which the object is downloaded. |
String |
Yes |
||
|
whetherSaveToFile |
Specifies whether to save the downloaded content to a file. |
Boolean |
No |
True |
|
|
commandContent |
The command to run on the ECS instance. |
String |
Yes |
||
|
workingDir |
The working directory where the command is run on the ECS instance. On Linux instances, the default directory is /root. On Windows instances, the default directory is the Cloud Assistant client process directory, such as C:\Windows\System32. |
String |
No |
||
|
timeout |
The timeout period for the command execution on the ECS instance. Unit: seconds. |
Number |
No |
600 |
Output
|
Output item |
Description |
Type |
|
downloadFileCommandOutput |
String |
|
|
runCommandOutput |
String |
References
For more information, see ACS::ESS::DownloadOSSFileAndRunCommand.yml on GitHub.