如何查看云助手命令的执行结果并且在指定ECS实例中的实际执行结果
程序员文章站
2022-06-04 20:12:26
...
本篇文章给大家带来的内容是关于如何查看云助手命令的执行结果并且在指定ECS实例中的实际执行结果,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
DescribeInvocationResults
描述
当您执行命令后,不代表命令一定成功运行,并且一定有预期的命令效果。您需要通过DescribeInvocationResults查看实际的具体执行结果,以实际输出结果为准。
请求参数
返回参数
命令执行结果集InvocationResultSetType
实例执行结果类型InvocationResultType
示例
请求示例
https://ecs.aliyuncs.com/?Action=DescribeInvocationResults &RegionId=cn-hangzhou &InvokeId=t-7d2a745b412b4601b2d47f6a768d3a14 &<公共请求参数>
正常返回示例
XML格式
<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>
JSON格式
{ "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格式
<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>
JSON格式
{ "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." }
错误码
以下为本接口特有的错误码。更多错误码,请访问 API错误中心。
以上就是如何查看云助手命令的执行结果并且在指定ECS实例中的实际执行结果的详细内容,更多请关注其它相关文章!
上一篇: Solaris10上安装64位Oracle9201
下一篇: php过滤中文