您好,登錄后才能下訂單哦!
查看云助手命令的執(zhí)行結(jié)果并且在指定ECS實例中實際執(zhí)行結(jié)果的方法?這個問題可能是我們?nèi)粘W(xué)習(xí)或工作經(jīng)常見到的。希望通過這個問題能讓你收獲頗深。下面是小編給大家?guī)淼膮⒖純?nèi)容,讓我們一起來看看吧!
DescribeInvocationResults
描述
當(dāng)您執(zhí)行命令后,不代表命令一定成功運行,并且一定有預(yù)期的命令效果。您需要通過DescribeInvocationResults查看實際的具體執(zhí)行結(jié)果,以實際輸出結(jié)果為準(zhǔn)。
請求參數(shù)
返回參數(shù)
命令執(zhí)行結(jié)果集InvocationResultSetType
實例執(zhí)行結(jié)果類型InvocationResultType
示例
請求示例
https://ecs.aliyuncs.com/?Action=DescribeInvocationResults &RegionId=cn-hangzhou &InvokeId=t-7d2a745b412b4601b2d47f6a768d3a14 &<公共請求參數(shù)>
正常返回示例
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錯誤中心。
感謝各位的閱讀!看完上述內(nèi)容,你們對查看云助手命令的執(zhí)行結(jié)果并且在指定ECS實例中實際執(zhí)行結(jié)果的方法大概了解了嗎?希望文章內(nèi)容對大家有所幫助。如果想了解更多相關(guān)文章內(nèi)容,歡迎關(guān)注億速云行業(yè)資訊頻道。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。