上一主题: cat 对象

下一主题: info 方法(cat 对象)


list 方法(cat 对象)
说明

检索全局目录的列表

语法
/api/v1/cat/list?vdc=controller-name 
参数
vdc

目标虚拟数据中心的名称

事务类型

同步

请求类型

GET

示例

检索目录的列表。

GET http://192.168.123.200/api/v1/cat/list?vdc=mygrid 
样例输出
XML:
<opt>
   <catalog dynamic>
      <description></description>
   </catalog dynamic>
   <catalog filer>
      <description></description>
   </catalog filer>
   <catalog system>
      <description></description>
   </catalog system>
   <catalog user>
      <description></description>
   </catalog user>
</opt> 
JSON:

{   "catalog user" : {
      "description" : ""
   },
   "catalog filer" : {
      "description" : ""
   },
   "catalog system" : {
       "description" : ""
   },
   "catalog dynamic" : {
      "description" : ""
   }
} 

HTTP 错误代码
404

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