Skip to content

Servers::rename

Danny Li edited this page Feb 4, 2018 · 2 revisions

Rename a server.

Parameters

Parameter Type Description
$id int Server ID
$name string New name

Returns

Server object

Example

<?php
use Exploriment\HetznerCloud;

$server = HetznerCloud\Servers::rename(1, 'My new name');

echo $server->getName();
Clone this wiki locally