Ask Your Question

How to retype a volume through RESTful API?

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

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 (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

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

SikAck gravatar image

Found it. (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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-10-23 01:09:36 -0500

Seen: 299 times

Last updated: Oct 23 '15