Software AG Products 10.11 | Integrate Software AG Products Using Digital Event Services | webMethods API Gateway Documentation | Upgrading API Gateway | Upgrading | Upgrading Major Versions in Zero Downtime | Clean Data in new API Data Store
 
Clean Data in new API Data Store
You must perform this operation on the new instance of API Gateway. For a cluster setup, you must do this in one of the nodes.
Once you start the new API Gateway instance, you must clean the data in the API Data Store. You can invoke the following REST API to clean data in the API Data Store.
POST /rest/apigateway/migration

{
"action": "clean"
}
Note:
As a measure of caution, by default this action takes a backup, prior to deleting the data. As a prerequisite, you must configure the path.repo property in the elasticsearch.yml file for the API Data Store to take a snapshot in that location. If the administrator deliberately wants to exclude the backup of data then add "backup": false in the payload.
When the clean operation is completed, API Gateway sends out a notification with the result details through registered webhooks. You can also invoke the below REST API to check the current status of the operation.
GET /rest/apigateway/migration/status?action=clean
If the above API returns Success as the Status, the data is cleaned successfully.
If the clean API invocation fails with an error or the status returned with a failure, stop proceeding with the next steps. Contact Software AG support team for help with all the relevant logs for further analysis.