webserver bind

Bind the REST API service to a network interface and port.

User Privileges

Users with the following privileges can perform this command:

>Admin

Syntax

webserver bind -netdevice <netdevice> [-port <port>] [-force] [-restart]

Argument(s) Shortcut Description
-netdevice <netdevice> -n

Network device that REST API Service is to use for communication.

Valid values: eth0, eth1, eth2, eth3, all, bond0, bond1

-force -f

Force the action without prompting.

-port <port> -p

Network port that REST API Service is to use for communication.   

Range: 80 to 65535

Default: 8443

-restart -r

Restart the REST API service if parameter is specified. Otherwise, the administrator must restart the REST API service by running service start webserver.

Example

Attempting to bind the REST API service when the service is not enabled
webserver bind -netdevice eth0
 
Error: The REST API Service is not enabled.
The REST API Service must be enabled in order to execute this command.
 
Command Result : 65535 (Luna Shell execution)
Binding the REST API service without specifying the -restart option
webserver bind -netdevice eth0 -port 8443
 
WARNING: This operation will modify REST API Server binding information !!!
Type 'proceed' to continue, or 'quit' to quit now.
 
> proceed
Proceeding...
 
You chose not to restart REST API Service now.
The changes will be effective when REST API Service is restarted.
To restart it run: service restart webserver
 
Command Result : 0 (Success)
Binding the REST API service with the -restart option
lunash:>webserver bind -netdevice eth0 -restart
 
WARNING: This operation will modify REST API Server binding information !!!
 
Type 'proceed' to continue, or 'quit' to quit now.
 
> proceed
Proceeding...
 
Restarting REST API service...
 
Command Result : 0 (Success)