I want to attach and detach portable storage from Virtual server using Rest API. I didn't find any API references related to attach and detach from portable storage.
Try to use the following examples:
Attach Portable storage
Method POST
https://username:apiKey@api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/[#Virtual_GuestID]/attachDiskImage
Body
{
"parameters":[
[#Image_Id]
]}
Detach Portable storage
Method POST
https://username:apiKey@api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/[#Virtual_GuestID]/detachDiskImage
Body
{
"parameters":[
[#Image_Id]
]}
Note: Keep in mind that you have to change the [#Virtual_GuestId] and [#Image_Id] according to the selected datacenter.