Automation of data store garbage collection
Hi All,
I'm trying to automate the data store garbage collection through the curl command given in below link :
https://docs.adobe.com/docs/en/aem/6-0/administer/operations/data-store-garbage-collection.html
Curl command:
1 | curl -u admin:xyz -X POST --data markOnly=false http://localhost:4502/system/console/jmx/org.apache.jackrabbit.oak%3Aid%3D14%2Cname%3D%22repository+manager%22%2Ctype%3D%22RepositoryManagement%22/op/startDataStoreGC/boolean |
But not able to get the correct response. When we hit the URL given in the curl command it is giving us the 404 error message as it is unable to find the operations "runDataStoreGarbageCollection". When I hit the url without the operations (shared below), it is able to find but unable to open the operation as it is opened as a pop-up. Please advise on how to automate data store garbage collection.
curl -u admin:admin -X POST http://localhost:4502/system/console/jmx/com.adobe.granite:type=Repository