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

坏嘻嘻
Release: 2018-09-27 15:16:20
Original
2289 people have browsed it

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
&<公共请求参数>
Copy after login

Normal return example

XML format

<ModifyCommandResponse>
    <RequestId>E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId>
</ModifyCommandResponse>
Copy after login

JSON format

{
    "RequestId":"E69EF3CC-94CD-42E7-8926-F133B86387C0",
}
Copy after login

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>
Copy after login

JSON format

{
    "RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0",
    "HostId": "ecs.aliyuncs.com"
    "Code": "InvalidCmdId.NotFound"
    "Message": "The specified command ID does not exist."
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template