向导 API参考
向导 API参考 github 空头开发人员社区 登录

ShowCommand API

在本节中,我们将看到如何使用ShowCommandAPI。这种类型的API用于使用API​​获取常规CLI显示命令的输出。大多数节目命令都提出了结构良好的JSON响应。

使用curl使用curl使用api的show命令的语法:

curl  -  Insecure -b“ aruba-cookie” -x get -i'https:// :4343/v1/configuration/showcommand?command = &uidaruba = '

笔记

- 不确保或者-k如果无法验证移动性导体的证书,则可以将选项与curl命令一起使用
-b用于从“ Aruba-Cookie”文件中读取cookie
-一世用于在输出中包括协议标题

卷曲示例中使用的用户特定值的描述

卷曲值 -  showcommand卷曲值 -  showcommand

卷曲值 - showcommand

ShowCommand API请求

请求URL:
https://:4343/v1/configuration/showcommand

请求查询参数:
命令=
uidaruba =

请求方法:
得到

请求标题:
内容类型:应用程序/JSON
接受:应用程序/JSON
cookie:session =

请求有效载荷:
没有任何

ShowCommand API请求的示例响应:

{“ VLAN状态”:[{“ aaa profile”:“ n/a”,“ adminstate”:“ enabled”,“ ipaddress”:“ 111.1.1.1/255.0.0.0.0.0.0”,“模式”,“ Mode”:“常规”,“,”,“内部“:“禁用”,“ Operstate”:“ UP”,“ Option-82”:“禁用”,“ PORTCOUNT”:“ 1”,“ ports”:“ GE0/0/0/0”,“ Vlanid”:“ 198”}],“ _Meta”:[“ vlanid”,“ ipaddress”,“ adminstate”,“ operstate”,“ portcount”,“ nat ins in oferes”,“ ness”,“模式”,“ ports”,“ aaa profile”,“ aaa profile”,“”,“option-82“]}}

笔记

最多ShowCommand API响应的结构化响应将提供结构化的响应。


这个页面对你有帮助吗?
Baidu