The content of this article is about how to view the execution results of cloud assistant commands and the actual execution results in the specified ECS instance. It has certain reference value. Friends in need can refer to it. I hope it will be useful to you. Helps.
DescribeInvocationResults
Description
After you execute the command, it does not mean that the command will run successfully and there will be expected results. command effect. You need to check the actual specific execution results through DescribeInvocationResults, and the actual output results shall prevail.
Request parameters
##Return parameters
Command execution result setInvocationResultSetType
##Instance execution result typeInvocationResultType
Example##Request Example
https://ecs.aliyuncs.com/?Action=DescribeInvocationResults &RegionId=cn-hangzhou &InvokeId=t-7d2a745b412b4601b2d47f6a768d3a14 &<公共请求参数>
XML format
<DescribeInvocationResultsResponse> <TotalCount>5</TotalCount> <PageNumber>1</PageNumber> <PageSize>5</PageSize> <InvocationResults> <InvocationResult> <FinishedTime>2018-01-05 15:45:02</FinishedTime> <InstanceId>i-uf614fhehhzmxdqw</InstanceId> <Output>MTU6NDU6MDEK</Output> <InvokeRecordStatus> Finished<InvokeRecordStatus> <ExitCode>0</ExitCode> </InvocationResult> <InvocationResult> <FinishedTime>2018-01-05 15:40:02</FinishedTime> <InstanceId>i-uf614fhehhzmxdqw</InstanceId> <Output> </Output> <InvokeRecordStatus> Finished<InvokeRecordStatus> <ExitCode>0</ExitCode> </InvocationResult> <InvocationResult> <FinishedTime>2018-01-05 15:30:02</FinishedTime> <InstanceId>i-uf614fhehhzmxdqw</InstanceId> <Output>MTU6MzA6MDEK</Output> <ExitCode>0</ExitCode> </InvocationResult> <InvocationResult> <FinishedTime>2018-01-05 15:20:02</FinishedTime> <InstanceId>i-uf614fhehhzmxdqw</InstanceId> <Output> </Output> <ExitCode>0</ExitCode> </InvocationResult> <InvocationResult> <FinishedTime>2018-01-05 15:15:02</FinishedTime> <InstanceId>i-uf614fhehhzmxdqw</InstanceId> <Output>MTU6MTU6MDEK</Output> <ExitCode>0</ExitCode> </InvocationResult> </InvocationResults> <RequestId>"E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId> </DescribeInvocationResultsResponse>
{ "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" }
XML format
<Error> <RequestId>E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId> <HostId>ecs.aliyuncs.com</HostId> <Code>MissingParameter.RegionId</Code> <Message>The input parameter “RegionId” that is mandatory for processing this request is not supplied.</Message> </Error>
{ "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." }
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 view the execution results of Cloud Assistant commands and the actual execution results in a specified ECS instance. For more information, please follow other related articles on the PHP Chinese website!