Retrieve Details of 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
object
-
hostname(required):
string
ID of the MicroTx coordinator instance where the TCC transaction began.
-
id(required):
string
Unique transaction ID of the TCC transaction.
-
participants:
array participants
-
startTime(required):
string
The time at which the TCC transaction began.
-
status(required):
string
Allowed Values:
[ "InProcess", "Confirming", "Confirmed", "FailedToConfirm", "Canceling", "Canceled", "FailedToCancel" ]
-
userId(required):
string
ID of the user who initiated the TCC transaction.
object
-
id(required):
string
Unique transaction ID of the TCC transaction.
-
status(required):
string
Allowed Values:
[ "InProcess", "Confirming", "Confirmed", "FailedToConfirm", "Canceling", "Canceled", "FailedToCancel" ]
-
timeLimit:
string
The time period for which the transaction initiator service to reserve the resources. It is the responsibility of the application developer to provide the required code to release the resources and cancel the their part of the TCC transaction after the time limit expires.
-
uri(required):
string
TCC transaction participant call back url
400 Response
401 Response
Examples
cURL Command
The following example shows how to view details of a TCC transaction by submitting a GET
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 GET -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.
Example of the Response Body
The following example shows the contents of the response body in JSON format. Example values have been truncated with ... to improve readability. When you view the response in your environment, you'll see the entire value.
{
"encryptedEntry": "uu...",
"end": 0,
"hostname": "otmm-tcs-0",
"id": "3885402b-1aa0-439a-af2c-63a3ea581ed5",
"keyVersion": "1",
"nonce": "oQKXXe2nfnWFeeo9",
"participants": null,
"status": "Active",
"thumbprint": "Bearer eyJhbGci...",
"timeLimit": 0,
"userId": "43225c1d-a626-4519-8fca-7a60593e3fd5"
}