GET /system/web-server/protocols/http
This resource allows you to enable the standard Webserver on this controller and to set the port number.
Used when you are operating a browser without access to the header parameter. This allows you to choose which encoding you want to use for the response:
All these resources can be used according what the resource allows.
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.
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
{
"port": 80,
"enabled": true,
"certificate": "",
"name": "http"
}
URL Example: https://0.0.0.0/api/rest/v1/system/web-server/protocols/http
<?xml version="1.0" encoding="utf-8"?>
<Protocol>
<Name>http</Name>
<Enabled>true</Enabled>
<Port>80</Port>
<Certificate />
</Protocol>