介绍
小编给大家分享一下怎么使用DescribeCommands查询已经创建的云助手命令,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获、下面让我们一起去了解一下吧!
DescribeCommands
<强>数据集类型CommandSetType 强>
<>强命令类型CommandType 强>
<强>请求示例强>
https://ecs.aliyuncs.com/?Action=DescribeCommands ,RegionId=cn-hangzhou ,& lt;公共请求参数在
<强>正常返回示例强>
<强> XML格式强>
& lt; DescribeCommandsResponse> & lt; TotalCount> 5 & lt;/TotalCount> & lt; Commands> & lt; Command> & lt; Name> Test & lt; WorkingDir> & lt;/WorkingDir> & lt; CommandContent> ZWNobyAxMjM=& lt;/CommandContent> & lt; Timeout> 3600 & lt;/Timeout> & lt; Type> RunShellScript & lt; CommandId> c-7d2a745b412b4601b2d47f6a768d3a14 & lt; Description> test & lt;/Command> & lt; Command> & lt; Name> Test1 & lt; WorkingDir> & lt;/WorkingDir> & lt; CommandContent> Y2QgL3Jvb3Q=& lt;/CommandContent> & lt; Timeout> 3600 & lt;/Timeout> & lt; Type> RunShellScript & lt; CommandId> c-7d2a745b412b4601b2d47f6a768d3a15 & lt; Description> test1 & lt;/Command> & lt; Command> & lt; Name> Test2 & lt; WorkingDir> & lt;/WorkingDir> & lt; CommandContent> eXVtIHVwZGF0ZQ==& lt;/CommandContent> & lt; Timeout> 3600 & lt;/Timeout> & lt; Type> RunShellScript & lt; CommandId> c-7d2a745b412b4601b2d47f6a768d3a16 & lt; Description> test2 & lt;/Command> & lt; Command> & lt; Name> Test3 & lt; WorkingDir> & lt;/WorkingDir> & lt; CommandContent> c2VydmljZSBuZ2lueCByZWxvYWQ=& lt;/CommandContent> & lt; Timeout> 3600 & lt;/Timeout> & lt; Type> RunShellScript & lt; CommandId> c-7d2a745b412b4601b2d47f6a768d3a17 & lt; Description> test3 & lt;/Command> & lt; Command> & lt; Name> Test4 & lt; WorkingDir> & lt;/WorkingDir> & lt; CommandContent>贝克海姆=& lt;/CommandContent> & lt; Timeout> 120 & lt;/Timeout> & lt; Type> RunShellScript & lt; CommandId> c-7d2a745b412b4601b2d47f6a768d3a18 & lt; Description> test4 & lt;/Command> & lt; PageNumber> 1 & lt;/PageNumber> & lt; RequestId> e69ef3cc cd - 94 - 42 - e7 - 8926 - f133b86387c0 & lt; PageSize> 10 & lt;/PageSize> & lt;/DescribeCommandsResponse>
<强> JSON格式强>
{ “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":“c2VydmljZSBuZ2lueCByZWxvYWQ=? “Timeout": 3600, “Type":“RunShellScript" “CommandId":“c-7d2a745b412b4601b2d47f6a768d3a17" “Description":“test3" }, { “Name":“Test4" “WorkingDir":““, “CommandContent":“贝克海姆=? “Timeout": 3600, “Type":“RunShellScript" “CommandId":“c-7d2a745b412b4601b2d47f6a768d3a18" “Description":“test4" }, ] }, “PageNumber": 1、 “RequestId":“e69ef3cc cd - 94 - 42 - e7 - 8926 - f133b86387c0", “PageSize": 10 }怎么使用DescribeCommands查询已经创建的云助手命令