Get virtual service

To get a virtual service, you need to know your workspace identifier and the virtual service identifier. The sample code uses a servicevirtualId of 1234 and a workspaceId of 123456. Use the actual ID values of your workspace and virtual service.

 

Minimum parameters for getting a virtual service

The following parameters are the base parameters required to get a virtual service.

Get virtual serviceMinimum configuration sample

curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mocks/1234' \
    -X GET \
    -H 'accept: application/json;charset=UTF-8'

Get virtual service request attributes

Attributes

Response200 OK

{
  "apiVersion": 0,
  "error": "string",
  "limit": 0,
  "link": "string",
  "requestId": "string",
  "result": {
    "created": "2019-07-24T16:06:01.427Z",
    "createdBy": "string",
    "createdDate": "string",
    "description": "string",
    "endpointPreference": "string",
    "harborId": "string",
    "httpEndpoint": "string",
    "httpsEndpoint": "string",
    "id": 0,
    "liveSystemHost": "string",
    "liveSystemPort": 0,
    "name": "string",
    "noMatchingRequestPreference": "string",
    "noMatchingRequestTxnId": 0,
    "serviceId": 0,
    "serviceName": "string",
    "shipId": "string",
    "status": "STOPPED",
    "thinkTime": 0,
    "mockServiceTransactions": [
      0
    ],
    "updated": "2019-07-24T16:06:01.427Z",
    "updatedBy": "string"
  },
  "skip": 0,
  "total": 0
}