server.hostname
Using this method you can update the hostname for a server.
Examples
Setting a Hostname
Similarly to retrieving a server's hostname, but include the optional parameter hostname
to set it.
Try it Out
{ "cuid": "S1", "hostname": "example.foobar.com" }
{ "code": 6000, "message": "Server \"S1\" was not found." }
Parameters
Name | Type | Default |
---|---|---|
cuid |
cuid[Server]
|
Required |
hostname |
string
|
Required |
Errors
Code | Name |
---|---|
6000 | ServerNotFound |
6001 | ServerMustBeActive |
0 | ServerInvalidHostname |