In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How to query the execution list and status of cloud helper commands in an ECS instance? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!
DescribeInvocations
Request parameter
Return parameters
Command execution recordset type InvocationSetType
Command execution type InvocationType
Execute the target instance set type InvokeInstanceSetType
Target instance execution status type InvokeInstanceType
Example
Request example
Https://ecs.aliyuncs.com/?Action=DescribeInvocations&RegionId=cn-hangzhou&
Normal return example
XML format
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 format
{"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"}
Exception return example
XML format
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 format
{"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."}
Error code
The following are the error codes specific to this API. For more error codes, please visit the API error Center.
Thank you for reading! After reading the above, do you have a general idea of how to query the execution list and status of cloud helper commands in an ECS instance? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.