Softlayer snapshot creation failure (curl-windows)

Issuing rest call via cURL fails with "generic error"

curl --user "user:API_Key" "https://api.softlayer.com/rest/v3/SoftLayer_Network_Storage_Iscsi/IBM02SEL155527/createSnapshot"

Value returned: {"error":"Internal Error","code":"SoftLayer_Exception_Public"}

-v options doesn't provide any additional information.

Your assistance is greatly appreciated. Regards, John

1 answer

  • answered 2018-03-14 10:37 Fernando Iquiza

    The issue you are getting is due that you need to send the id value of the blockstorage instead of the lun name.

    For example:

    curl -v --user "user:API_Key" "https://api.softlayer.com/rest/v3/SoftLayer_Network_Storage_Iscsi/111111111/createSnapshot"