Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use DescribeCommands to query cloud helper commands that have been created

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to use DescribeCommands query has created cloud assistant commands, I believe that most people do not understand, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!

DescribeCommands

Request parameter

Return parameters

Dataset type CommandSetType

Command type CommandType

Example

Request example

Https://ecs.aliyuncs.com/?Action=DescribeCommands&RegionId=cn-hangzhou&

Normal return example

XML format

5 Test ZWNobyAxMjM= 3600 RunShellScript c-7d2a745b412b4601b2d47f6a768d3a14 test Test1 Y2QgL3Jvb3Q = 3600 RunShellScript C-7d2a745b412b4601b2d47f6a768d3a15 test1 Test2 eXVtIHVwZGF0ZQ== 3600 RunShellScript c-7d2a745b412b4601b2d47f6a768d3a16 test2 Test3 c2VydmljZSBuZ2lueCByZWxvYWQ = 3600 RunShellScript c-7d2a745b412b4601b2d47f6a768d3a17 test3 Test4 bHM= 120 RunShellScript c-7d2a745b412b4601b2d47f6a768d3a18 test4 1 E69EF3CC-94CD-42E7-8926-F133B86387C0 10

JSON format

{"TotalCount": 5, "Commands": {"Command": [{"Name": "Test", "WorkingDir": "", "CommandContent": "ZWNobyAxMjM=", "Timeout": 3600, "Type": "RunShellScript" "CommandId": "c-7d2a745b412b4601b2d47f6a768d3a14", "Description": "test"}, {"Name": "Test1", "WorkingDir": "", "CommandContent": "Y2QgL3Jvb3Q =", "Timeout": 3600, "Type": "RunShellScript" "CommandId": "c-7d2a745b412b4601b2d47f6a768d3a15", "Description": "test1"}, {"Name": "Test2", "WorkingDir": "", "CommandContent": "eXVtIHVwZGF0ZQ==", "Timeout": 3600, "Type": "RunShellScript" "CommandId": "c-7d2a745b412b4601b2d47f6a768d3a16", "Description": "test2"}, {"Name": "Test3", "WorkingDir": "", "CommandContent": "c2VydmljSBuZ2lueCByZWxvYWQ =", "Timeout": 3600, "Type": "RunShellScript" "CommandId": "c-7d2a745b412b4601b2d47f6a768d3a17", "Description": "test3"}, {"Name": "Test4", "WorkingDir": "", "CommandContent": "bHM=", "Timeout": 3600, "Type": "RunShellScript" "CommandId": "c-7d2a745b412b4601b2d47f6a768d3a18", "Description": "test4"},]}, "PageNumber": 1, "RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0", "PageSize": 10}

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.

The above is how to use DescribeCommands to query all the contents of the created cloud assistant command, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report