检索卷的详细信息列表
/api/v1/vol/info?app=application&vol=volume&vdc=controller-name
应用的名称
卷的名称
目标虚拟数据中心的名称
同步
GET
检索 test:vol1 的详细信息列表。
GET http://192.168.123.200/api/v1/vol/info?app=test&vol=vol1&vdc=mygrid
<volume> <name>vol1</name> <comment></comment> <filesystem>ext3</filesystem> <link></link> <mirror srv1.v-f13f4c46-b84a-496b-9288-188be464ab56> <server>srv1</server> <state>ok</state> </mirror srv1.v-f13f4c46-b84a-496b-9288-188be464ab56> <mount_path>none</mount_path> <mount_state>available</mount_state> <n_mirrors>1</n_mirrors> <n_users>0</n_users> <size>1073741824</size> <state>ok</state> <time_accessed>1272052234</time_accessed> <time_created>1272052031</time_created> <time_written>1272052032</time_written> <uuid>cf432100-63fc-450d-8eb7-2da6deca8627</uuid> </volume>
{
"link" : "",
"time_created" : "1272052031",
"time_accessed" : "1272052240",
"name" : "vol1",
"uuid" : "cf432100-63fc-450d-8eb7-2da6deca8627",
"mount_state" : "available",
"mirror srv1.v-f13f4c46-b84a-496b-9288-188be464ab56" : {
"server" : "srv1",
"state" : "ok"
},
"size" : "1073741824",
"state" : "ok",
"n_users" : "0",
"time_written" : "1272052032",
"mount_path" : "none",
"comment" : "",
"filesystem" : "ext3",
"n_mirrors" : "1"
}
未找到实体 vdc mygrid-WS_API 应用中没有配置指定的 VDC 名称。
缺少必需参数 (app)。 -请求中缺少参数 app=app。
缺少必需参数 (vol)。 -请求中缺少参数 vol=vol。
卷 test:data 不存在。 -请求中指定的应用或卷无效。
| 版权所有 © 2012 CA。 保留所有权利。 |
|