Skip to content

Servers::attachIso

Danny Li edited this page Feb 4, 2018 · 1 revision

Attaches an ISO to a server. The Server will immediately see it as a new disk. An already attached ISO will automatically be detached before the new ISO is attached.

Servers with attached ISOs have a modified boot order: They will try to boot from the ISO first before falling back to hard disk.

Parameters

Parameter Type Description
$id int Floating IP ID
$iso int/string/ISO ISO ID, ISO name or ISO object

Returns

Action object

Example

<?php
use Exploriment\HetznerCloud;

$action = HetznerCloud\Servers::attachIso(1, $iso);

echo $action->getStatus();
Clone this wiki locally