大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
小编给大家分享一下怎么使用DescribeCommands查询已经创建的云助手命令,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
专注于为中小企业提供网站设计、成都网站建设服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业塔什库尔干塔吉克免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了千余家企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。
DescribeCommands
请求参数
返回参数
数据集类型 CommandSetType
命令类型 CommandType
示例
请求示例
https://ecs.aliyuncs.com/?Action=DescribeCommands &RegionId=cn-hangzhou &<公共请求参数>
正常返回示例
XML 格式
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 格式
{ "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": "bHM=", "Timeout": 3600, "Type": "RunShellScript", "CommandId": "c-7d2a745b412b4601b2d47f6a768d3a18", "Description": "test4" }, ] }, "PageNumber": 1, "RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0", "PageSize": 10 }
异常返回示例
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." }
错误码
以下为本接口特有的错误码。更多错误码,请访问 API 错误中心。
以上是怎么使用DescribeCommands查询已经创建的云助手命令的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!