Sets the host name to the specified string. Both the API and lower-level system hostname are changed immediately.

Parameters
name type description
session_id session valid session reference
host host The host whose host name to set
hostname string The new host name
Errors
name arguments description
HOST_NAME_INVALID reason The host name is invalid.