检索应用中卷的列表
/api/v1/vol/list?app=application&vdc=controller-name
应用的名称
目标虚拟数据中心的名称
同步
GET
检索 test 的卷的列表。
GET http://192.168.123.200/api/v1/vol/list?app=test&vdc=mygrid
<volume> <name>vol1</name> <comment></comment> <filesystem>ext3</filesystem> <mount_state>available</mount_state> <n_mirrors>1</n_mirrors> <scope_name>test</scope_name> <scope_type>application</scope_type> <server>srv1</server> <size>1073741824</size> <state>ok</state> <uuid>cf432100-63fc-450d-8eb7- 2da6deca8627</uuid> </volume>
{
"scope_type" : "application",
"name" : "vol1",
"scope_name" : "test",
"mount_state" : "available",
"uuid" : "cf432100-63fc-450d-8eb7-2da6deca8627",
"size" : "1073741824",
"state" : "ok",
"comment" : "",
"filesystem" : "ext3",
"n_mirrors" : "1",
"server" : "srv1"
}
未找到实体 vdc mygrid-WS_API 应用中没有配置指定的 VDC 名称。
缺少必需参数 (app)。 -请求中缺少参数 app=app。
应用 test 不存在。 -请求中指定的应用无效。
| 版权所有 © 2012 CA。 保留所有权利。 |
|