Retrieve Details of an LRA Transaction
/admin/v1/lra-coordinator/{id}
Request
- application/json
-
id(required): string
Unique ID which you can use to track the transaction.
Response
- application/json
200 Response
object
-
begin(required):
integer(int64)
LRA transaction begin timestamp
-
closePending(required):
boolean
Indicates whether the LRA close operation is in progress or completed
-
end(required):
integer(int64)
LRA transaction end timestamp
-
hostname(required):
string
TMM coordinator instance id where the LRA transaction gets initialized
-
id(required):
string
Unique transaction ID of the LRA transaction
-
parentLra:
string
Parent LRA transaction ID. Applicable for nested LRA transactions.
-
participants:
array participants
-
status(required):
string
Allowed Values:
[ "Active", "Closing", "Closed", "FailedToClose", "Cancelling", "Cancelled", "FailedToCancel" ]
-
timeout(required):
integer(int32)
LRA transaction timeout in seconds
-
userId(required):
string
Id of the user who initiated the LRA transaction
object
-
begin(required):
integer(int64)
LRA transaction participant begin timestamp
-
id(required):
string
LRA transaction participant identifier
-
links(required):
object links
LRA transaction participant call back links for compensate, complete and status endpoints
-
status(required):
string
Allowed Values:
[ "Active", "Completing", "Completed", "FailedToComplete", "Compensating", "Compensated", "FailedToCompensate" ]
-
timeout(required):
integer(int32)
LRA transaction participant timeout value in seconds
object
400 Response
401 Response
404 Response
Examples
cURL Command
The following example shows how to view details of an LRA 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/lra-coordinator/15cd86ca-e0b7-4778-8cb6-4b78dfb3b981
-
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. -
15cd86ca-e0b7-4778-8cb6-4b78dfb3b981
is an example value for an LRA transaction ID. Replace this value with the transaction ID of an LRA 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.
{
"begin": 1657273191245,
"closePending": false,
"encryptedEntry": "IDMmg...",
"end": 0,
"hostname": "otmm-tcs-69c4b49b6-854xw",
"id": "15cd86ca-e0b7-4778-8cb6-4b78dfb3b981",
"keyVersion": "1",
"nonce": "e7sEB9HixkmBhVrY",
"parentLra": "",
"participants": null,
"status": "Active",
"thumbprint": "Bearer eyJhb...",
"timeout": 0,
"userId": "43225c1d-a626-4519-8fca-7a60593e3fd5"
}