Downloads files from a specified source to an Elastic Compute Service (ECS) instance.
Description
Downloads files to an Elastic Compute Service (ECS) instance.
Syntax
Action: ACS::ECS::DownloadFile
Properties:
regionId: String
instanceId: String
sourceType: String
sourcePath: String
tokenInfo: String
destinationDir: String
timeout: Number
fileOwner: String
fileGroup: String
fileMode: String
overwrite: Boolean
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 |
||
|
sourceType |
The file storage type. |
String |
Yes |
||
|
sourcePath |
The URL of the file. |
String |
Yes |
||
|
tokenInfo |
The token used to download files. Required only when downloading files from GitHub. |
String |
No |
"" |
|
|
destinationDir |
The destination directory on the ECS instance. |
String |
Yes |
||
|
timeout |
The timeout period. |
Number |
No |
600 |
|
|
fileOwner |
The file owner. |
String |
No |
"" |
|
|
fileGroup |
The file group. |
String |
No |
"" |
|
|
fileMode |
The file permissions. |
String |
No |
"" |
|
|
overwrite |
Whether to overwrite existing files. |
Boolean |
No |
True |
Output
|
Output item |
Description |
Type |
|
commandOutput |
String |
References
For more information, see ACS::ECS::DownloadFile at GitHub.