Modifies the parameters and content of a cloud assistant command.


You can modify a command during its invocation. After the modification, the new command content applies to subsequent invocations.

You cannot modify the command type. For example, you cannot change a Shell command (RunShellScript) to a Bat command (RunBatScript).


You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Name Type Required Example Description
CommandId String Yes c-4d34302d02424c5c8e10281e3a315a05

The ID of the command. You can call DescribeCommands to view all available command IDs.

RegionId String Yes cn-hangzhou

The ID of the region. You can call DescribeRegions to view the latest regions of Alibaba Cloud.

Action String No ModifyCommand

The operation that you want to perform. Set the value to ModifyCommand.

CommandContent String No c2VydmljZSB0b21jYXQgc3RhcnQ=

The content of the command.

Description String No UserGuide

The description of the command, which supports all character sets. It can be a maximum of 100 characters in length.

Name String No AlibabaCommand

The name of the command, which supports all character sets. It can be a maximum of 30 characters in length.

Timeout Long No 120

The timeout period.

WorkingDir String No /home/

The directory path for command invocation.

Response parameters

Name Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.


Sample requests
&<Common request parameters>

Successful response examples

XML format

    "RequestId": "0DE9B41E-EF0D-40A0-BB43-37749C5BDA9C"

JSON format


Error codes

HTTP status code Error code Error message Description
404 InvalidCmdType.NotFound The specified command type does not exist. The error message returned when the specified command type does not exist.

View error codes