"SoftLayer_" prefix removed for readability.
Attaches a disk image.
Creates a transaction to attach a guest’s disk image. If the disk image is already attached it will be ignored.
WARNING: SoftLayer_Virtual_Guest::checkHostDiskAvailability should be called before this method. If the SoftLayer_Virtual_Guest::checkHostDiskAvailability method is not called before this method, the guest migration will happen automatically.
Name | Type | Description |
---|---|---|
imageId | int |
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [int]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/{SoftLayer_Virtual_GuestID}/attachDiskImage'