Home > Article > Operation and Maintenance > How to modify the relevant parameters and command content of a cloud assistant command
This article introduces how to modify the relevant parameters and command content of a cloud assistant command, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something from it.
ModifyCommand
Description
Modification is also allowed during command execution. After the command is modified, subsequent execution will follow the new command Content execution.
You cannot modify the type of the command. For example, if the command is a Shell command (RunShellScript), it cannot be modified to a Bat command (RunBatScript).
Request parameters
##Return parameters
are all public return parameters. See Public Return Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=ModifyCommand &RegionId=cn-hangzhou &CommandId=c-e996287206324975b5fbe1dxxxxxxxxx &NameId=Test &TimeOut=120 &<公共请求参数>
Normal return example
XML format
<ModifyCommandResponse> <RequestId>E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId> </ModifyCommandResponse>
JSON format
{ "RequestId":"E69EF3CC-94CD-42E7-8926-F133B86387C0", }
Exception return example
XML format
<Error> <RequestId>E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId> <HostId>ecs.aliyuncs.com</HostId> <Code>InvalidCmdId.NotFound</Code> <Message>The specified command ID does not exist.</Message> </Error>
JSON format
{ "RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0", "HostId": "ecs.aliyuncs.com" "Code": "InvalidCmdId.NotFound" "Message": "The specified command ID does not exist." }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to modify the relevant parameters and command content of a cloud assistant command. For more information, please follow other related articles on the PHP Chinese website!