Ask Your Question

REST API to access volumeid

asked 2018-11-30 13:24:37 -0500

anonymous user


updated 2018-12-02 14:48:39 -0500

zaneb gravatar image

I am looking for a openstack API (or) Python API to find the volumeid from the volume name. Can you please give me a sample snip

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2018-11-30 17:28:49 -0500

You list volumes, applying a filter. E.g. if you want the ID of a volume named “v1234”, you use /v3/{project_id}/volumes?name=v1234.

edit flag offensive delete link more

answered 2018-11-30 23:36:16 -0500

Here, the block storage api available

/v3/{project_id}/volumes/detail - (this api Lists all Block Storage volumes, with details, that the project can access, since v3.31 if non-admin users specify invalid filters in the url, API will return bad request.)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-11-30 13:24:37 -0500

Seen: 54 times

Last updated: Nov 30 '18