上一主题: list 方法(cat 对象)下一主题: create 方法(cat 对象)


info 方法(cat 对象)
说明

检索本地应用或全局目录的信息

语法
/api/v2/cat/info?cat=catalog&vdc=controller-name 
参数
Cat

目录的名称

vdc

目标虚拟数据中心的名称

事务类型

同步

请求类型

GET

示例

检索目录 test 的信息。

GET http://192.168.123.200/api/v2/cat/info?cat=/test&vdc=mygrid 
样例输出
XML:
<catalog>
   <name>test</name>
   <description></description>
   <total_classes>0</total_classes>
   <total_diskspace>0</total_diskspace>
</catalog>
JSON:

{    "total_classes" : "0",
   "name" : "test",
   "description" : "",
   "total_diskspace" : "0"
} 

HTTP 错误代码
404

未找到实体 vdc mygrid-WS_API 应用中没有配置指定的 VDC 名称。

400.4

缺少必需参数 (cat)。 -请求中缺少参数 cat=catalog

404.1

test 不是有效的目录-请求中指定的目录无效。