Get/Set the Host Name
- Last Updated: October 14, 2024
- 1 minute read
- LoadMaster
- Multi-Tenant LoadMaster
- Documentation
The host name can be retrieved/configured using the get/set commands.
Example Command
Set (Configure):
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/set?param=hostname&value=<HostNameValue>"Get (Retrieve):
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/get?param=hostname"Available Parameters
|
Parameter |
Parameter Type |
Parameter Description |
Mandatory |
|---|---|---|---|
|
param |
String |
The name of the parameter to be retrieved/configured. In this case, it should be set to hostname. |
Yes |
|
value |
String |
The value to set the parameter to. In this case, enter the desired host name. |
Yes - if setting. No - if getting. |
Example Output
Set (Configure):
<?xml version="1.0" encoding="ISO-8859-1"?><Response stat="200" code="OK"><Success>Command completed ok</Success></Response>Get (Retrieve):
<?xml version="1.0" encoding="ISO-8859-1"?><Response stat="200" code="OK"><Success><Data>hostname</Data></Success></Response>