dcloud ec2 instances get-commandA command’s status, exit code and output
IAM ec2:DescribeCommandsRead
`ec2:RunCommand` on the instance is enough for a command you started; anyone else’s needs `ec2:DescribeCommands`, and an explicit Deny of `ec2:DescribeCommands` also stops reads of your own. `lost`: the connection to the machine broke before the command ended (its outcome on the machine is unknown). To follow output across reads, print from your last byte offset: the tail starts at `stdoutBytes` minus its own UTF-8 length. Output is cleared 7 days after the command ended (`outputPurged`).
Synopsis
dcloud ec2 instances get-command id commandIdArguments
<id>Requiredstring
Also accepted as
--id. Constraints: /^i-[0-9a-f]{6,32}$/<commandId>Requiredstring
Also accepted as
--command-id. Constraints: /^cmd-[0-9a-f]{16}$/
Example
dcloud ec2 instances get-command id commandIdGenerated from the API description, the same one the API checks requests against and the CLI is built from.