configuration / services / network

CLI REST-API

set-all

set-all [service] [status]
The "set-all" command allows to enable or disable the service on all virtual
interfaces with one command, instead of having to enable/disable it one by one
for each virtual interface.

RESTAPI: The data can be passed in the body like this:
{
    "parameters": {
        "service": "https",
        "status": true
    }
}
NameValueDescriptionExample
servicehttps
statusenabled
See also:
/configuration/services/network: Network

REST-API Support:


This command is supported by the REST API:

Method: PUT
URL: /api/configuration/services/network/set-all
Body:
{
    "parameters": {
        "service": [service],
        "status": [status]
    }
}

Example using curl:
curl -X PUT /api/configuration/services/network/set-all -d 
"{
    \"parameters\": {
        \"service\": \"https\",
        \"status\": true
    }
}"