Delete Cached Maintenance Data From an Earlier Upgrade

delete

/admin/v1/maintenance/clear

Clears the outdated cached maintenance data from the maintenance table in data store. This deletes the data which was backed up when you ran the transaction coordinator in the maintenance mode during an earlier upgrade. You must clear the outdated maintenance data before starting the maintenance mode. Do not use this option after starting the maintenance mode. In case of any data corruption in the maintenance mode or if the pods become unresponsive, use this option to serve as a recovery point to restart the process.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK

401 Response

Unauthorized

500 Response

InternalServerError
Back to Top

Examples

cURL Command

The following example shows how to clear outdated maintenance data from a previous release that was available in the data store by submitting a DELETE request on the REST resource using cURL. For more information about cURL, see Use cURL.

Enter the command on a single line. Line breaks are used in this example for readability.

curl -X DELETE 
     -H "Authorization:Bearer $OTMM_COOKIE"
     --header 'Accept: application/json'
     https://192.0.2.1:8080/admin/v1/maintenance/clear
  • OTMM_COOKIE is the name of the variable in which you stored the authentication cookie earlier. For information about retrieving the authentication cookie and storing it in a variable, see Authenticate.

  • 192.0.2.1:8080 is an example REST endpoint URL. Change this value to the REST endpoint URL to access the Istio ingress gateway in your environment. For information about finding out REST endpoint URL for your site, see Send Requests.

Example of the Response Body

The following example shows the contents of the response body in JSON format.

{
 "message": "maintenance data deleted successfully"
}
Back to Top