softlayer-ruby
softlayer-ruby copied to clipboard
Create semantic interface for Storage/Portable Volumes
(close was accidental)
- [ ] Get all portable storage / query with parameters.
- [ ] Attach / Detach portable storage volumes.
- [ ] Wait for disk transactions
The SoftLayer_Virtual_Disk_Image seems to be the key player. Might need to discuss a flow too. If I had two virtual servers vs1 and vs2 and knew that I wanted to detach storage from the first and move it to the second, how should this go?
disk = vs1.get_portable_storage().first
disk.detach!
disk.wait_for_ready
disk.attach!(vs2) # what about vs2.attach!(disk) ?
vs2.wait_for_ready