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

  • serviceMockId integer

    required

    The virtual service identifier

  • workspaceId integer

    required

    The workspace identifier

  • limit integer

    required

    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
}