查詢(xún)一臺(tái)ECS實(shí)例中云助手命令執(zhí)行列表及狀態(tài)的方法?這個(gè)問(wèn)題可能是我們?nèi)粘W(xué)習(xí)或工作經(jīng)常見(jiàn)到的。希望通過(guò)這個(gè)問(wèn)題能讓你收獲頗深。下面是小編給大家?guī)?lái)的參考內(nèi)容,讓我們一起來(lái)看看吧!
10余年的鐵鋒網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開(kāi)發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。成都全網(wǎng)營(yíng)銷(xiāo)推廣的優(yōu)勢(shì)是能夠根據(jù)用戶(hù)設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整鐵鋒建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無(wú)論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。成都創(chuàng)新互聯(lián)從事“鐵鋒網(wǎng)站設(shè)計(jì)”,“鐵鋒網(wǎng)站推廣”以來(lái),每個(gè)客戶(hù)項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。
DescribeInvocations
請(qǐng)求參數(shù)
返回參數(shù)
命令執(zhí)行記錄集類(lèi)型 InvocationSetType
命令執(zhí)行類(lèi)型 InvocationType
執(zhí)行目標(biāo)實(shí)例集類(lèi)型 InvokeInstanceSetType
目標(biāo)實(shí)例執(zhí)行狀態(tài)類(lèi)型 InvokeInstanceType
示例
請(qǐng)求示例
https://ecs.aliyuncs.com/?Action=DescribeInvocations &RegionId=cn-hangzhou &<公共請(qǐng)求參數(shù)>
正常返回示例
XML 格式
2 1 10 Running t-7d2a745b412b4601b2d47f6a768d3b53 Test1 RunShellScript 0 */20 * * * * i-uf614fhehhzmx Finished i-uf614fhehhzmy Running True c-7d2a745b412b4601b2d47f6a768d3a14 Finished t-7d2a745b412b4601b2d47f6a768d3b55 Test3 RunShellScript i-uf614fhehhzmx Finished i-uf64isakb713x Finished False c-7d2a745b412b4601b2d47f6a768d3a16 E69EF3CC-94CD-42E7-8926-F133B86387C0
JSON 格式
{ "TotalCount": 2, "PageNumber": 1, "PageSize": 10, "Invocations": { "Invocation": [ { "InvokeStatus": "Running", "InvokeId": "t-7d2a745b412b4601b2d47f6a768d3b53", "CommandName": "Test1", "CommandType": "RunShellScript", "Frequency": "0 */20 * * * *", "InvokeInstances": { "InvokeInstance": [ { "InstanceId": "i-uf614fhehhzmx", "InstanceInvokeStatus": "Finished" }, { "InstanceId": "i-uf64isakb713x", "InstanceInvokeStatus": "Running" } ] }, "Timed": true, "CommandId": "c-7d2a745b412b4601b2d47f6a768d3a14" }, { "InvokeStatus": "Finished", "InvokeId": ">t-7d2a745b412b4601b2d47f6a768d3b55", "CommandName": "Test3", "CommandType": "RunShellScript", "InvokeInstances": { "InvokeInstance": [ { "InstanceId": "i-uf614fhehhzmx", "InstanceInvokeStatus": "Finished" }, { "InstanceId": "i-uf64isakb713x", "InstanceInvokeStatus": "Finished" } ] }, "Timed": false, "CommandId": "c-7d2a745b412b4601b2d47f6a768d3a16" } ] }, "RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0" }
異常返回示例
XML 格式
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 格式
{ "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." }
錯(cuò)誤碼
以下為本接口特有的錯(cuò)誤碼。更多錯(cuò)誤碼,請(qǐng)?jiān)L問(wèn) API 錯(cuò)誤中心。
感謝各位的閱讀!看完上述內(nèi)容,你們對(duì)查詢(xún)一臺(tái)ECS實(shí)例中云助手命令執(zhí)行列表及狀態(tài)的方法大概了解了嗎?希望文章內(nèi)容對(duì)大家有所幫助。如果想了解更多相關(guān)文章內(nèi)容,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。