PureStorage-OpenConnect / rest-client

Pure Storage FlashArray Python REST 1.X Client
BSD 2-Clause "Simplified" License
39 stars 23 forks source link

Copy snapshot as a new volume #18

Closed saifulmuhajir closed 4 years ago

saifulmuhajir commented 4 years ago

copy_volume is handy for copying. But it works only with existing volume (in local array). Can you make it capable for copying the snapshot (from protection group) as a new volume, please?

When copy_volume is used to copy snapshot from protection group, it will say that the volume doesn't exist:

[
  {
    "pure_err_key": "err.friendly",
    "code": 6,
    "ctx": "remote_host_logs_volume",
    "pure_err_code": 1,
    "msg": "Volume does not exist."
  }
]

Thanks

saifulmuhajir commented 4 years ago

NVM. The naming with snapshot from protection group is different than the normal one. Solved.