Search code examples
apiibm-cloud-infrastructure

snapshot of softlayer block device(Endurance volume)


I created snapshot by using below api of Block Storage (Endurance) on SoftLayer.

res = client['Network_Storage_Iscsi'].createSnapshot('', id=12686459)

I got result in which it is showing volume id as 'volumeId': 13348463.

When I try to get list of snapshots for my volume I get empty list:

res = client['Network_Storage_Iscsi'].getSnapshotsForVolume(id=12686459)

Have I missed anything?


Solution

  • Nop you did not miss anything, the command is the correct and it works, likely you got an empty list because the snapshot was in "creating proccess" once it is completed you should get the snapshot. So try again.

    Regards