Retrieve list of volumes in the application
/api/v1/vol/list?app=application&vdc=controller-name
Name of the application
Name of the target virtual data center
synchronous
GET
Retrieve list of volumes for 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"
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Application 'test' does not exist. - Invalid application specified in the request.
|
Copyright © 2012 CA.
All rights reserved.
|
|