Device log configuration
Change log rotation and retention settings.
Request
Security
| Any | Super User | System Admin | Security Admin | Operator |
|---|---|---|---|---|
| superUser | systemAdmin |
HTTP method
POST /manager/api/{apiResponseType}/1.0/deviceLogConfiguration.adm' HTTP/1.1
Host:{manager.dsnet}
maximumAccessLogRetentionTime={maximumAccessLogRetentionTime}&accessLogRotationTime={accessLogRotationTime}
Curl method
curl -X POST -u {username}:{password}
'https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/deviceLogConfiguration.adm' -d
'maximumAccessLogRetentionTime={maximumAccessLogRetentionTime}&accessLogRotationTime={accessLogRotationTime}'
Parameters
| Parameter | Type | Usage | Default | Description |
|---|---|---|---|---|
| maximumAccessLogRetentionTime | Long | Optional | The maximum amount of time (in ms) that access logs will be persisted on devices. The retention time for access logs will be applied to notification logs as well. | |
| accessLogRotationTime | Long | Optional | The maximum of time (in ms) before access logs are rotated. Set 0 to unset the current value and rotate logs using a size-based formula only. This value also applies to notification logs. |
Response
Returns success or failure status.
JSON response example
Default JSON success or failure response that is shown in Default JSON success response and Default JSON failure response.
Parameters
None other than the default response parameters shown in Common response parameters.
Note: Errors with the code internal.error can result if not enough time
between calls exists.