Configuration options for the web interface of SPS.
URL
GET https://<IP-address-of-SPS>/api/configuration/management/webinterface
Cookies
Cookie name | Description | Required | Values |
---|---|---|---|
session_id | Contains the authentication token of the user | Required |
The value of the session ID cookie received from the REST server in the authentication response, for example, a1f71d030e657634730b9e887cb59a5e56162860. For details on authentication, see Authenticate to the SPS REST API. NOTE: This session ID refers to the connection between the REST client and the SPS REST API. It is not related to the sessions that SPS records (and which also have a session ID, but in a different format).. |
Sample request
The following command lists the configuration options for the SPS web interface.
curl --cookie cookies https://<IP-address-of-SPS>/api/configuration/management/webinterface
Response
The following is a sample response received when listing the configuration options of the SPS web interface.
For details of the meta object, see Message format.
{ "body": { "timeout": 10 }, "key": "webinterface", "meta": { "first": "/api/configuration/management/certificates", "href": "/api/configuration/management/webinterface", "last": "/api/configuration/management/webinterface", "next": null, "parent": "/api/configuration/management", "previous": "/api/configuration/management/syslog", "transaction": "/api/transaction" } }
Modify the configuration of the web interface
To modify the configuration of the web interface, you have to:
-
Open a transaction.
For more information, see Open a transaction.
-
Modify the JSON object of the endpoint.
PUT the modified JSON object to the https://<IP-address-of-SPS>/api/configuration/management/webinterface endpoint. You can find a detailed description of the available parameters listed in Element .
-
Commit your changes.
For more information, see Commit a transaction.
Status and error codes
Status and error codes
The following table lists the typical status and error codes for this request. For a complete list of error codes, see Application level error codes.
Code | Description | Notes |
---|---|---|
201 | Created | The new resource was successfully created. |
401 | Unauthenticated | The requested resource cannot be retrieved because the client is not authenticated and the resource requires authorization to access it. The details section contains the path that was attempted to be accessed, but could not be retrieved. |
403 | Unauthorized | The requested resource cannot be retrieved because the client is not authorized to access it. The details section contains the path that was attempted to be accessed, but could not be retrieved. |
404 | NotFound | The requested object does not exist. |