查看云助手命令的执行结果并且在指定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实例中实际执行结果的方法大概了解了吗?希望文章内容对大家有所帮助。如果想了解更多相关文章内容,欢迎关注亿速云行业资讯频道。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。