Ask Your Question
0

How to retype a volume through RESTful API?

asked 2015-10-23 01:09:36 -0600

SikAck gravatar image

I'm looking for the API for retyping a volume, like command cinder retype. But I didn't find it in the http://developer.openstack.org/api-ref-blockstorage-v2.html (OpenStack API Documentation) .

I tried to use the volume update, not work. I can use volume update to change description, but can't change the type of the volume. And there is no error when I specify another type for a volume.

Any ideas about this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-10-23 01:56:44 -0600

SikAck gravatar image

Found it. https://bugs.launchpad.net/python-cinderclient/+bug/1316939 (Bug #1316939)

/v1/<tenant-id>/volumes/<volume-id>/action '{"os-retype": {"new_type": <new_type>, "migration_policy": <policy>}}

/v2/<tenant-id>/volumes/<volume-id>/action '{"os-retype": {"new_type": <new_type>, "migration_policy": <policy>}}

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-10-23 01:09:36 -0600

Seen: 264 times

Last updated: Oct 23 '15