Ask Your Question
0

REST API to access volumeid

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

anonymous user

Anonymous

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

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
1

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

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
0

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

Here https://developer.openstack.org/api-r..., 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 23 times

Last updated: Nov 30 '18