All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::DownloadOSSFileAndRunCommand

Last Updated:Jul 31, 2024

Description

Downloads an Object Storage Service (OSS) object to an Elastic Compute Service (ECS) instance and runs commands.

Syntax

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

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

parameters

The parameters in the command.

Json

No

{}

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 of the OSS object.

Number

No

6000

OSSRegion

The region in which the OSS bucket resides.

String

Yes

tokenInfo

The token that is used to download files. This attribute is required only if you download files from GitHub.

String

No

""

destinationDir

The directory to which the object is downloaded on the ECS instance.

String

Yes

whetherSaveToFile

Specifies whether to save the file content to a specific file.

Boolean

No

True

commandContent

The command content.

String

Yes

workingDir

The working directory in which the commands are run on the ECS instance. For Linux-based ECS instances, the working directory is the /root home directory of the root user. For Windows-based instances, the working directory is the directory in which the Cloud Assistant client process resides. Example: C:\Windows\System32.

String

No

""

timeout

The timeout period for running commands on the ECS instance.

Number

No

600

Output

Output item

Description

Type

downloadFileCommandOutput

String

runCommandOutput

String

References

For more information, see ACS::ECS::DownloadOSSFileAndRunCommand at GitHub.