Bulk Delete Heuristically Completed Transactions

post

/admin/v1/xa-transaction/bulk

Deletes the records of the specified `HeuristicallyCompleted` transactions. Information about the `HeuristicallyCompleted` transactions are retained in the transaction store. You can delete this information to free up space in the transaction store.

Request

Supported Media Types
Body ()
Specify the transaction ID of the `HeuristicallyCompleted` transactions that you want to delete.
Root Schema : bulkdelete-request
Type: object
Show Source
Nested Schema : deleteTxIds
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK

400 Response

Invalid Arguments

401 Response

Unauthorized
Back to Top

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_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.

  • 18184230-b2d6-4629-85fa-f5d0b9b7a45f and 19183651-b2d6-9454-47hw-g6f0a7v2d3h8y are sample values for the global transaction ID (GTRID). Replace these value with the GTRID of an XA transaction which are in the HeuristicallyCompleted state in your environment.

No response is returned for this request.

Back to Top