pyrax
pyrax copied to clipboard
Expose rename for block storage volumes
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.
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.