Bulk Delete Heuristically Completed Transactions
/admin/v1/xa-transaction/bulk
Request
- application/json
Response
- application/json
200 Response
400 Response
401 Response
Examples
cURL Command
The following example shows how to delete records of the specified XA transaction in the HeuristicallyCompleted state by submitting a POST 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 --location -X POST \
-H "Authorization:Bearer $OTMM_COOKIE" \
--header "Content-Type: application/json" \
--data-raw '{"deleteTxIds":["18184230-b2d6-4629-85fa-f5d0b9b7a45f", "19183651-b2d6-9454-47hw-g6f0a7v2d3h8y"]}' \
https://192.0.2.1:8080/admin/v1/xa-transaction/bulk-
OTMM_COOKIEis 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:8080is 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. -
18184230-b2d6-4629-85fa-f5d0b9b7a45fand19183651-b2d6-9454-47hw-g6f0a7v2d3h8yare sample values for the global transaction ID (GTRID). Replace these value with the GTRID of an XA transaction which are in theHeuristicallyCompletedstate in your environment.
No response is returned for this request.