Contains the configuration endpoints for managing SPS.
GET https://<IP-address-of-SPS>/api/configuration/management
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).. |
The following command lists management configuration endpoints.
curl --cookie cookies https://<IP-address-of-SPS>/api/configuration/management
The following is a sample response received when listing management endpoints.
For details of the meta object, see Message format.
{ "items": [ { "key": "certificates", "meta": { "href": "/api/configuration/management/certificates" } }, { "key": "disk_fillup_prevention", "meta": { "href": "/api/configuration/management/disk_fillup_prevention" } }, { "key": "email", "meta": { "href": "/api/configuration/management/email" } }, { "key": "exported_configuration_encryption", "meta": { "href": "/api/configuration/management/exported_configuration_encryption" } }, { "key": "health_monitoring", "meta": { "href": "/api/configuration/management/health_monitoring" } }, { "key": "license", "meta": { "href": "/api/configuration/management/license" } }, { "key": "root_password", "meta": { "href": "/api/configuration/management/root_password" } }, { "key": "snmp", "meta": { "href": "/api/configuration/management/snmp" } }, { "key": "splunk_forwarder", "meta": { "href": "/api/configuration/management/splunk_forwarder" } }, { "key": "support_info", "meta": { "href": "/api/configuration/management/support_info" } }, { "key": "syslog", "meta": { "href": "/api/configuration/management/syslog" } }, { "key": "system_backup", "meta": { "href": "/api/configuration/management/system_backup" } }, { "key": "universal_siem_forwarder", "meta": { "href": "/api/configuration/management/universal_siem_forwarder" } }, { "key": "webinterface", "meta": { "href": "/api/configuration/management/webinterface" } { "key": "web_gateway_authentication", "meta": { "href": /api/configuration/management/web_gateway_authentication" } } ], "meta": { "first": "/api/configuration/aaa", "href": "/api/configuration/management", "last": "/api/configuration/x509", "next": "/api/configuration/network", "parent": "/api/configuration", "previous": "/api/configuration/local_services", "transaction": "/api/transaction" } }
Endpoints | Description |
---|---|
certificates | References the certificates of SPS's internal Certificate Authority, Timestamping Authority, and the SSL certificate of the web interface. |
disk_fillup_prevention | Disk fill-up prevention. |
SMTP server address and authentication, administrator e-mail, and e-mail addresses for alerts and reports. | |
exported_configuration_encryption | SMTP server address and authentication, administrator e-mail, and e-mail addresses for alerts and reports. |
health_monitoring | Configuration settings for monitoring the utilization of SPS. |
snmp | SNMP settings. |
syslog | Syslog server address and authentication. |
webinterface | Configuration settings for the SPS web interface. |
web_gateway_authentication | Configuration of the banner on the login screen before web gateway authentication. |
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 |
---|---|---|
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. |
Use the /web_gateway_authentication endpoint to configure tha banner on the login screen before web gateway authentication in order to make users aware of being audited before logging in, or that they are accessing a government website, and so on.
PUT https://<IP-address-of-SPS>/api/configuration/management/web_gateway_authentication
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).. |
Operations with the /web_gateway_authentication endpoint include:
Operation | HTTP method | URL |
---|---|---|
Configuring the web gateway authentication banner | PUT | /api/configure/management/web_gateway_authentication |
Querying the web gateway authentication banner | GET | /api/configure/management/web_gateway_authentication |
The following command configures the web gateway authentication banner.
curl --cookie cookies https://<IP-address-of-SPS>/api/configuration/management/web_gateway_authentication
The following is a sample response when the configured web gateway authentication banner is queried.
For details of the meta object, see Message format.
{ "key": "web_gateway_authentication", "body": { "auto_assign": false, "banner": { "enabled": true, "text": "Web gateway\nBANNER" } } }
Elements of the response message body include:
Element | Type | Description |
---|---|---|
key | string | Top level element, contains the ID of the endpoint. |
body | object | Top level element. |
body.auto_assign | boolean | Enable auto-assign to permit your users to authenticate on the SPS web interface once, and open sessions without repeating the gateway authentication. |
body.banner | object | Top level element. |
body.banner.enabled | boolean | Shows whether the banner is enabled or not. |
body.banner.text | string | The text of the banner. |
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 |
---|---|---|
400 | InvalidRequestBody | The request body sent by the user has an invalid format. This may be an error with the encoding or the body is not a properly encoded JSON value. |
400 | SemanticError | The configuration contains semantic errors, inconsistencies or other problems that would put the system into an unreliable state if the configuration had been applied. The details section contains the errors that were found in the configuration. |
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. |
SPS can send its system log messages to remote syslog servers, for example, syslog-ng Premium Edition, syslog-ng Store Box, Splunk, or HPE ArcSight Data Platform.
GET https://<IP-address-of-SPS>/api/configuration/management/syslog
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).. |
The following command lists the syslog server settings.
curl --cookie cookies https://<IP-address-of-SPS>/api/configuration/management/syslog
The following is a sample response received when listing syslog server settings.
For details of the meta object, see Message format.
{ "body": { "certificates": { "ca": "<ca-cert>", "client": { "key": "191725ec-b71b-47ab-9e87-561a5d9e2bb7", "meta": { "href": "/api/configuration/x509/191725ec-b71b-47ab-9e87-561a5d9e2bb7" } } }, "include_node_id": true, "receivers": [ { "address": { "selection": "ip", "value": "10.20.30.40" }, "port": 514, "protocol": { "ip_protocol": "tcp", "protocol_type": "legacy-bsd", "tls_enabled": false } } ], "server_key_check": "optional-trusted" }, "key": "syslog", "meta": { "first": "/api/configuration/management/certificates", "href": "/api/configuration/management/syslog", "last": "/api/configuration/management/webinterface", "next": "/api/configuration/management/webinterface", "parent": "/api/configuration/management", "previous": "/api/configuration/management/snmp", "transaction": "/api/transaction" } }
Element | Type | Description | ||
---|---|---|---|---|
key | string | Top level element, contains the ID of the endpoint. | ||
body | Top level element (string) | Contains the syslog server configuration settings. | ||
certificates | Top level item | Contains the certificates of the client (SPS), and the certificate of the CA. | ||
ca | string |
The CA certificate of the Certificate Authority. Configure this option if the value of the tls_enabled element is set to true. | ||
client | string |
Configure this option if the value of the tls_enabled element is set to true, and the syslog server requires mutual authentication. Otherwise, set its value to null. References the identifier of the client's (SPS's) X.509 certificate. You can configure certificates at the /api/configuration/x509/ endpoint. To modify or add an X.509 certificate, use the value of the returned key as the value of the x509_identity element, and remove any child elements (including the key). | ||
include_node_id | boolean |
Set to true to display separate hostnames for syslog messages sent by the nodes of a SPS HA cluster. The node ID included in the hostname filed of the syslog message is the MAC address of the node's HA interface. Messages of the core firmware are always sent by the master node. | ||
receivers | Top level list | Contains the addresses of the syslog servers. | ||
server_key_check | string |
Configures validating the syslog server's certificate with the CA. The following values are possible:
|
Elements of receivers | Type | Description | |
---|---|---|---|
address | Top level item | Contains the address of the syslog server. | |
selection | string |
Defines the address type (IP or domain name). Possible values are:
| |
value | string | The address of the syslog server, corresponding to the format set in the selection field. | |
port | int | The port of the syslog server. | |
protocol | Top level item | Contains the syslog protocol settings. | |
ip_protocol | string |
Configures the IP protocol. The following options are available:
| |
protocol_type | string |
Configures the syslog protocol. The following options are available:
| |
tls_enabled | string |
Set to true to enable TLS encryption. If TLS is enabled, the value of the ca and client elements cannot be null. |
Default settings: no external syslog servers.
{ "certificates": { "ca": null, "client": null }, "include_node_id": true, "receivers": [], "server_key_check": "optional-untrusted" }
SPS uses only the key part of the CA certificate.
You can choose to upload a single certificate or a certificate chain.
To use a certificate with the SPS API, remove all data, and substitute line breaks with \n. The same is true for a certificate chain: copy individual certificates one after the other, and substitute line breaks with \n.
The following is an example certificate, as used on the SPS web interface:
-----BEGIN CERTIFICATE----- MIIDnDCCAoQCCQDc536Ob5tPQTANBgkqhkiG9w0BAQUFADCBjzELMAkGA1UEBhMC Q0ExEDAOBgNVBAgTB09udGFyaW8xEDAOBgNVBAcTB1Rvcm9udG8xEDAOBgNVBAoT B0JhbGFiaXQxFjAUBgNVBAsTDURvY3VtZW50YXRpb24xEDAOBgNVBAMTB2JhbGFi aXQxIDAeBgkqhkiG9w0BCQEWEWNhdGFpbEBiYWxhYml0Lmh1MB4XDTE2MDQyMjE2 MDAyNloXDTE3MDQyMjE2MDAyNlowgY8xCzAJBgNVBAYTAkNBMRAwDgYDVQQIEwdP bnRhcmlvMRAwDgYDVQQHEwdUb3JvbnRvMRAwDgYDVQQKEwdCYWxhYml0MRYwFAYD VQQLEw1Eb2N1bWVudGF0aW9uMRAwDgYDVQQDEwdiYWxhYml0MSAwHgYJKoZIhvcN AQkBFhFjYXRhaWxAYmFsYWJpdC5odTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC AQoCggEBAOGa9I2jmVlVdVWEI/Wy7ahTeyaIjK52FQUXqxG8okOSD+nV74ZFUuiS 59X+2Ow1aDqVGrDMgPNhSVpYXUvDUAUOILJW4rAIoxDY6vDU9/4v9dDiQfEPlauw 0qNRjPS1MLzjSOQDSKqPkdivkS6HKZeX3+TFq3OxO+vIrF9zFfp9T+eDG2oSobPc 3mV2zkvtD61CXzbezAVdArDl6WnysRyzxyH8WEhFwZepWxFD9Y5N1dzKody7Hncs X5kVIv0+Z6bBHfg/7wHWysJdwNuLr0ByTOvPM6WdA83k3Fy2gYNk7Rc0BbRFbQTX hJVfUzSUWHVhFQtAb4diKU5voqepfNMCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEA R5DIwOHsEKoGkiI3cHC2VMnxP2rRhpTneh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KZeX3+TFq3OxO+vIrF9zFfp9T+eDG2oSobPc\n3mV2zkvtD61CXzbezAVdArDl6WnysRyzxyH8WEhFwZepWxFD9Y5N1dzKody7Hncs\nX5kVIv0+Z6bBHfg/7wHWysJdwNuLr0ByTOvPM6WdA83k3Fy2gYNk7Rc0BbRFbQTX\nhJVfUzSUWHVhFQtAb4diKU5voqepfNMCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEA\nR5DIwOHsEKoGkiI3cHC2VMnxP2rRhpTneh6El+DFnQPdjrXa+tnqV4TdnNaD+FvP\nAB1kqbmC4hJAsjMLU2b1ne6m+SLmzhRuMxcA6x+fnYvcQT57IbRdq2E/4oJGeyuy\n0jQE+nmoVD3lDytIOxCfQvZhl1tcbBE5hp5USme4PmNhY6QfUlgjsFjPfoVG7XDB\nuNaUoWS6RvZPmL5IuvF9tqe96ES6DTjC8rBfQYvSoVNjjPnUMx0C8xstRSEG7oJc\nN5+4ImYnFNxSG20hZpFy0OFDf2g7Fx+W50/NtXamUF1Sf8WlPZc03oVl1/Fzo7mt\nqYyyD1ld89OUEYZ+aJQd/A==\n-----END CERTIFICATE-----\n"
To modify the syslog server settings, you have to:
For more information, see Open a transaction.
PUT the modified JSON object to the https://<IP-address-of-SPS>/api/configuration/management/syslog endpoint. You can find a detailed description of the available parameters listed in Element.
For more information, see Commit a transaction.
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. |
© ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center