pyrax icon indicating copy to clipboard operation
pyrax copied to clipboard

Expose rename for block storage volumes

Open lcannon opened this issue 11 years ago • 1 comments

As part of our deploy process, a server will be deployed to test, tested, then switched to production. As part of this, we want to rename volumes, as the instance name is part of the volume name we set. This is easily managed by using pyrax.cloud_blockstorage._manager.rename, but this is an undocumented API. It would be great if this method could be directly exposed on a volume.

lcannon avatar Nov 21 '14 03:11 lcannon

You could use:

pyrax.cloud_blockstorage.update(vol, display_name="new_name")

but I do agree that it would be nice to have a rename() method for convenience. I'll add that, along with one for snapshots, too.

EdLeafe avatar Nov 21 '14 14:11 EdLeafe