Take a Log Snapshot of a Virtual Service

To request a log snapshot of a Virtual Service, you need to know your 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 Workspace and Virtual Service.

The request returns the logId.

Minimum Parameters for Requesting a Log of a Virtual Service

The following parameters are the base parameters required to request a Log of a Virtual Service.

Request Log of Virtual ServiceMinimum Configuration Sample

curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mocks/1234/log' \
    -X GET \
    -H 'accept: */*' \
    -H 'Content-Type: application/json' \
    -d '0'

Virtual Service Logs Request Attributes

AttributeDescription
serviceMockId

string

The Virtual Service identifier.

required

workspaceId

string

The Workspace identifier.

required

limit

string

The Number of results per page.

Response200 OK

{
  "apiVersion": 0,
  "error": "string",
  "limit": 0,
  "link": "string",
  "requestId": "string",
  "result": {
    "log": "string",
    "logId": 0,
    "serviceMockId": 1234,
    "trackingId": "string"
  },
  "skip": 0,
  "total": 0
}