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
}