Home  >  Article  >  Operation and Maintenance  >  How to modify the relevant parameters and command content of a cloud assistant command

How to modify the relevant parameters and command content of a cloud assistant command

坏嘻嘻
坏嘻嘻Original
2018-09-27 15:16:212286browse

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

How to modify the relevant parameters and command content of a cloud assistant command

##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.

How to modify the relevant parameters and command content of a cloud assistant command



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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn