GET /ops/data/{correlationID}/{legID}
Description
Retrieve all events associated with a specific correlation.
The response will be of type application/json, but with has a Content-Disposition of attachment, so will generally be downloaded by a browser without presenting it directly to the user.
The leg ID is unused in this version of the API, but must be provided for backward compatibility.
Resource URL
http://localhost:8090/ops/data/{correlationID}/{legID}/
Parameters
correlationID | mandatory | Transaction Identifier. E.g.: a18ce3874de8a62712176c6c |
legID | mandatory | Leg number or * for all legs |
Response Codes
Response Code | Description |
---|---|
200 | Success |
Example transaction
Request
GET /api/router/service/instance-1/ops/data/d91cbd530200000000000000681193bd/0 HTTP/1.0
Connection: close
Host: localhost
Authorization: Basic YWRtaW46Y2hhbmdlbWU=
Response
HTTP/1.1 200 OK
Server: Gateway
Connection: close
X-CorrelationID: Id-1f56bd539300000000000000ff69a98e 0
Date: Wed, 09 Jul 2014 14:48:00 GMT
Date: Wed, 09 Jul 2014 14:48:00 GMT
Expires: Wed, 09 Jul 2014 14:48:00 GMT
Server: Gateway
Content-Disposition: attachment; filename=d91cbd530200000000000000681193bd.json
Content-Type: application/json
{
"schema": {...},
"correlation": [
{
"correlationId": "d91cbd530200000000000000681193bd",
"leg": 0,
"tag": "received",
"offset": 524223,
"len": 65,
"prev": {
"page": 0,
"record": 0
},
"flags": 0,
"data": "GET /healthcheck HTTP/1.0\r\nConnection: close\r\nHost: localhost\r\n\r\n"
},
{
"correlationId": "d91cbd530200000000000000681193bd",
"leg": 0,
"tag": "sent",
"offset": 524034,
"len": 189,
"prev": {
"page": 1,
"record": 0
},
"flags": 0,
"data": "HTTP/1.1 200 OK\r\nDate: Wed, 09 Jul 2014 10:43:37 GMT\r\nServer: Gateway\r\nConnection: close\r\nX-CorrelationID: Id-d91cbd530200000000000000681193bd 0\r\nHost: localhost\r\nContent-Type: text/xml\r\n\r\n"
},
{
"correlationId": "d91cbd530200000000000000681193bd",
"leg": 0,
"tag": "sent",
"offset": 524015,
"len": 19,
"prev": {
"page": 1,
"record": 1
},
"flags": 0,
"data": "<status>ok</status>"
},
{
"correlationId": "d91cbd530200000000000000681193bd",
"leg": -1,
"tag": "circuitpath",
"offset": 523507,
"len": 508,
"prev": {
"page": 1,
"record": 2
},
"flags": 0,
"data": "[ { \"policy\": \"Health Check\", \"execTime\": 1, \"filters\": [ { \"espk\": \"DEFAULT_PRIMARY_VordelGateway_7.3.0:223\", \"name\": \"Set Message\", \"type\": \"ChangeMessageFilter\", \"class\": \"com.vordel.circuit.conversion.ChangeMessageFilter\", \"status\": \"Pass\", \"filterTime\": 1404902617781, \"execTime\": 1 } , { \"espk\": \"DEFAULT_PRIMARY_VordelGateway_7.3.0:222\", \"name\": \"Reflect\", \"type\": \"ReflectFilter\", \"class\": \"com.vordel.circuit.net.ReflectFilter\", \"status\": \"Pass\", \"filterTime\": 1404902617781, \"execTime\": 0 } ] } ]"
},
{
"correlationId": "d91cbd530200000000000000681193bd",
"leg": 0,
"tag": "http",
"offset": 523395,
"len": 112,
"prev": {
"page": 1,
"record": 3
},
"flags": 0,
"data": "=00=00=00=00=00=00=00=00=1b=00=00=00=00=00=00=00A=00=00=00=00=00=00=00=03=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=01=01=00=00=00=00=00=00=00=00=00=00=00=00=00=00=11=00=00=00=00=00=00=00=bd=00=00=00=00=00=00=00=03=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=01z=8f=11=3D=7f=00=00"
},
{
"correlationId": "d91cbd530200000000000000681193bd",
"leg": 0,
"tag": "opevent",
"offset": 523202,
"len": 193,
"prev": {
"page": 1,
"record": 4
},
"flags": 0,
"event": [
"http",
[
0,
1404902617764,
53,
"d91cbd530200000000000000681193bd",
null,
null,
null,
"http",
"Pass",
208,
65,
"127.0.0.1",
"127.0.0.1",
"127.0.0.1",
"51225",
"8080",
null,
"/healthcheck",
200,
"OK",
"GET",
null
]
]
},
{
"correlationId": "d91cbd530200000000000000681193bd",
"leg": -1,
"tag": "END",
"offset": 523202,
"len": 0,
"prev": {
"page": 1,
"record": 5
},
"flags": 0,
"data": ""
}
]
}