All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ESS::DownloadFileAndRunCommand

Last Updated:Jul 31, 2024

Description

Downloads a file to an Elastic Compute Service (ECS) instance and runs a command.

Syntax

Action: ACS::ESS::DownloadFileAndRunCommand
Properties:
 regionId: String
 instanceId: String
 sourceType: String
 sourcePath: 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

sourceType

The type of the file.

String

Yes

sourcePath

The source path of the file.

String

Yes

tokenInfo

GitHubToken

String

No

destinationDir

The directory in which the file is stored.

String

Yes

whetherSaveToFile

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

Boolean

No

True

commandContent

The content of the command.

String

Yes

The command can be up to 16,384 bytes in length.

workingDir

The directory in which the command is run.

String

No

timeout

The timeout period.

Number

No

600

Output

Output item

Description

Type

downloadFileCommandOutput

String

runCommandOutput

String

References

For more information, see ACS::ESS::DownloadFileAndRunCommand.yml at GitHub.