Ask Your Question
3

How to list all volumes attached to a particular instance

asked 2015-11-28 11:04:54 -0600

John Zhao gravatar image

Given an instance name/id, is there a API call or filter option to list ALL volumes attached? Thanks, John

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-11-28 23:11:38 -0600

nova --debug show <instance name/id>

Refer os-extended-volumes:volumes_attached attribute in the response to get the list of volumes attached to a instance.

edit flag offensive delete link more

Comments

thanks, I got it. John

John Zhao gravatar imageJohn Zhao ( 2015-12-03 13:29:19 -0600 )edit
0

answered 2015-11-30 08:16:41 -0600

John Zhao gravatar image

Thanks, Jay. Do you know Python API call that will do the same? Thanks, John

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: 2015-11-28 11:04:54 -0600

Seen: 623 times

Last updated: Nov 30 '15