attachDiskImage


SoftLayer_Virtual_Guest::attachDiskImage

Attaches a disk image.

Description

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.


Parameters

Name Type Description
imageId int

Required Headers

Optional Headers

Return Values

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'