Get the Request ID of a Virtual Service (Analytics)
To retrieve log information for any Virtual Service through our Analytics endpoint, you need the Request ID of the Virtual Service. To get the Request ID, you need the Workspace identifier and the Virtual Service identifier. The sample code uses a serviceMockId
of 1234
and a workspaceId
of 123456
. Use the actual ID values of your Log, Workspace, and Virtual Service. The response contains the requestId in the result id: {“result” : [ { “id” : 7777, ...} ] }
.
Minimum Parameters for Getting the Request ID of a Virtual Service
The following parameters are the base parameters required for getting the Request ID of a Virtual Service.
Get the Request ID of a Virtual Service Request Attributes
Attributes
-
serviceMockId
integerrequired
The Virtual Service identifier
-
workspaceId
integerrequired
The Workspace identifier
-
requestId
integerrequired
The Virtual Service Request identifier.
Get the Request ID of a Virtual ServiceMinimum Configuration Sample
curl 'https://analytics.blazemeter.com/reports/api/v1/workspaces/123456/inspection-data/service-mock/1234' \
-X GET \
-H 'accept: application/json;charset=UTF-8'
Response200 OK
{
“apiVersion” : 1,
“error” : null,
“result” : [ {
“id” : 7777,
“serviceMockId” : 114193,
“type” : “TRANSACTIONAL”,
“transactionId” : null,
“operation” : “GET”,
“url” : “http://test131142.mock.blazemeter.com/favicon.ico”,
“timestamp” : 1681213707061,
“arguments” : [ ],
“matchType” : null,
“matchTolerance” : null,
“hasError” : false,
“respondingTxn” : null,
“matched” : false,
“txnPriority” : null,
“source” : “MOCK”,
“liveTransactionCreated” : false,
“hash” : null,
“detailsHash” : null,
“webHookName” : null,
“webHookId” : null,
“modelEntity” : null,
“actionName” : null,
“objectAction” : null
}, {
“id” : 1156936109,
“serviceMockId” : 114193,
“type” : “TRANSACTIONAL”,
“transactionId” : 5763762,
“operation” : “GET”,
“url” : “http://test131142.mock.blazemeter.com/test”,
“timestamp” : 1681213706737,
“arguments” : [ ],
“matchType” : null,
“matchTolerance” : null,
“hasError” : false,
“respondingTxn” : null,
“matched” : true,
“txnPriority” : 10,
“source” : “MOCK”,
“liveTransactionCreated” : false,
“hash” : null,
“detailsHash” : null,
“webHookName” : null,
“webHookId” : null,
“modelEntity” : null,
“actionName” : null,
“objectAction” : null
} ],
“requestId” : null
}