POST /system/web-server/protocols/http
This resource allows you to enable the standard Webserver on this controller and to set the port number.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
There are multiple possible values according the resource:
If this parameter is not present during the request, and error 415 Unsupported Media Type will be thrown.
The Content-Length entity-header field indicates the size of the entity-body.
Object Name: Protocol
Property Name | Type | Description | Method |
---|---|---|---|
Port | Integer | Set the port numbers that the secure (https) or standard (http) Webservers are to use. | GET POST |
Enabled | Boolean | Set this to enable the secure (https) or standard (http) Webserver on this controller. | GET POST |
Certificate | Object | This object is used only with the HTTPS mode. It will remain empty for HTTP. It represents all the information about the current active certificate. |
GET |
Name | String | This is the name of the protocol. | GET |
NLightChannels | Array<NLightChannel> | This is an array of NLightChannel . It will contains all the existing channels. |
GET |
URL Example: https://0.0.0.0/api/rest/v1/system/web-server/protocols/http
{
"enabled": true,
"port": 80
}
URL Example: https://0.0.0.0/api/rest/v1/system/web-server/protocols/http
<?xml version="1.0" encoding="utf-8"?>
<Protocol>
<Enabled>true</Enabled>
<Port>80</Port>
</Protocol>