Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method to view the execution result of the cloud helper command and actually execute the result in the specified ECS instance

Shulou Source: shulou.com Published: 2022-06-02 04:23:14 10月04日 Update

How to view the results of the cloud helper command and actually execute the results in the specified ECS instance? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

DescribeInvocationResults

Description

When you execute a command, it does not mean that the command must run successfully, and it must have the desired command effect. You need to view the actual execution result through DescribeInvocationResults, based on the actual output result.

Request parameter

Return parameters

Command execution result set InvocationResultSetType

Instance execution result type InvocationResultType

Example

Request example

Https://ecs.aliyuncs.com/?Action=DescribeInvocationResults&RegionId=cn-hangzhou&InvokeId=t-7d2a745b412b4601b2d47f6a768d3a14&

Normal return example

XML format

5 15 2018-01-05 15:45:02 i-uf614fhehhzmxdqw MTU6NDU6MDEK Finished 0 2018-01-05 15:40:02 i-uf614fhehhzmxdqw Finished 0 2018-01-05 15:30:02 I -uf614fhehhzmxdqw MTU6MzA6MDEK 0 2018-01-05 15:20:02 i-uf614fhehhzmxdqw 0 2018-01-05 15:15:02 i-uf614fhehhzmxdqw MTU6MTU6MDEK 0 "E69EF3CC-94CD-42E7-8926-F133B86387C0

JSON format

{"Invocation": {"TotalCount": 5, "PageNumber": 1, "InvocationResults": {"InvocationResult": [{"FinishedTime": "2018-01-05 15:45:02", "InstanceId": "i-uf614fhehhzmxdqw", "Output": "MTU6NDU6MDEK" "InvokeRecordStatus": "Finished", "ExitCode": 0}, {"FinishedTime": "2018-01-05 15:40:02", "InstanceId": "i-uf614fhehhzmxdqw", "InvokeRecordStatus": "Finished", "Output": "" "ExitCode": 0}, {"FinishedTime": "2018-01-05 15:30:02", "InstanceId": "i-uf614fhehhzmxdqw", "Output": "MTU6MzA6MDEK", "ExitCode": 0} {"FinishedTime": "2018-01-05 15:20:02", "InstanceId": "i-uf614fhehhzmd3zj4k74", "Output": "", "ExitCode": 0} {"FinishedTime": "2018-01-05 15:15:02", "InstanceId": "i-uf614fhehhzmd3zj4k74", "InvokeRecordStatus": "Finished", "Output": "MTU6MTU6MDEK", "ExitCode": 0}]} "PageSize": 5}, "RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0"}

Exception return example

XML format

E69EF3CC-94CD-42E7-8926-F133B86387C0 ecs.aliyuncs.com MissingParameter.RegionId The input parameter "RegionId" that is mandatory for processing this request is not supplied.

JSON format

{"RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0", "HostId": "ecs.aliyuncs.com"Code": "MissingParameter.RegionId"Message": "The input parameter" RegionId "that is mandatory for processing this request is not supplied."}

Error code

The following are the error codes specific to this API. For more error codes, please visit the API error Center.

Thank you for reading! After reading the above, do you have a general idea of how to view the execution results of the cloud helper command and actually execute the results in the specified ECS instance? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

Tags: Result command actual content format example error instance assistant method parameter article more question success representative interface effect see type Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Linux MariaDB Shulou Information Apple