Skip to content

Images::update

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

Updates the image description. Only images of type snapshot and backup can be updated.

Parameters

Parameter Type Description
$id int Image ID
$description string New description

Returns

Image object

Example

<?php
use Exploriment\HetznerCloud;

$image = HetznerCloud\Images::update(1, 'My new fancy description');

echo $image->getDescription();
Clone this wiki locally