POST /system/web-server/protocols/https
This resource allows you to enable the secure Webserver on this controller. Connections to this server are encrypted which helps to prevent eavesdropping thereby keeping passwords secure.
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/https
{
"enabled": true,
"port": 443
}
URL Example: https://0.0.0.0/api/rest/v1/system/web-server/protocols/https
<?xml version="1.0" encoding="utf-8"?>
<Protocol>
<Enabled>true</Enabled>
<Port>443</Port>
</Protocol>