Cancel a TCC Transaction
/admin/v1/tcc-transaction/{id}
Request
- application/json
-
id(required): string
Unique ID which you can use to track the transaction.
Response
- application/json
200 Response
string
[
"InProcess",
"Confirming",
"Confirmed",
"FailedToConfirm",
"Canceling",
"Canceled",
"FailedToCancel"
]
400 Response
401 Response
409 Response
412 Response
429 Response
500 Response
Examples
cURL Command
The following example shows how to roll back a TCC transaction by submitting a DELETE
request on the TCC transaction ID 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 PUT -H "Authorization:Bearer $OTMM_COOKIE" https://192.0.2.1:8080/admin/v1/tcc-transaction/3885402b-1aa0-439a-af2c-63a3ea581ed5
-
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. -
3885402b-1aa0-439a-af2c-63a3ea581ed5
is an example value for a TCC transaction ID. Replace this value with the transaction ID of a TCC transaction in your environment.
No response is returned for this request.