← Back to team overview

openstack team mailing list archive

list all volumes attached to a vm

 

hi community

i am trying to list all volumes which attached to  a vm, with a vm id
specified
.
i am not sure whether there is any command line filter to achieve this
,i use api instead

here is the ref
http://api.openstack.org/api-ref.html

invoked api is

v2/{tenant_id}/servers/{server_id}/os-volume_attachments

but  , this api seems not work properly , it returns a 404 error

openstack response: '404 Not Found#012#012The resource could not be
found.#012#012   '

in cinder's log file '/var/log/cinder/cinder-api.log'

2013-04-26 11:18:11    DEBUG [routes.middleware] No route matched for GET
/82da519b676d400ab24e9ee38d138c3c/servers/cb75bb55-e9ef-4d05-af9f-3ad346fa3eb4/os-volume_attachments

any help is welcomed , thanks for advance

Daniels Cai
http://dnscai.com