Setting the Pruning Config
Set the Pruning Config values
Request
URI
PUT
https://{opsmanager-installation}/api/v0/settings/pruning
COPY
Request Body
PruningConfig
of type(s)
application/json
Optional
{
"enabled": false,
"days_to_keep": 0
}
boolean
enabled
Optional
This determines whether or not pruning will occur.
integer
days_to_keep
Optional
Constraints:
default: 365
This is the number of days to retain installation records for; records older than this number of days will be removed.
Responses
200
OK
Operation doesn't return any data structure
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v0/settings/pruning