Get Virtual Service Template
To get a Virtual Service template, you need to know your Workspace identifier and the Virtual Service Template identifier. The sample code uses a serviceMockTemplateId
of 8
and a workspaceId
of 123456
. Use the actual ID values of your Workspace and Virtual Service template.
Minimum Parameters for getting a Virtual Service template
The following parameters are the base parameters required to get a Virtual Service template.
Get a Virtual Service TemplateMinimum Configuration Sample
curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mock-templates/8' \
-X GET \
-H 'accept: */*'
Get a Virtual Service Template Request Attributes
Attributes
-
serviceMockId
integerrequired
The Virtual Service identifier
-
workspaceId
integerrequired
The Workspace identifier
Response200 OK
{
"apiVersion": 0,
"error": "string",
"limit": 0,
"link": "string",
"requestId": "string",
"result": {
"created": "2019-07-25T13:36:44.158Z",
"createdBy": "string",
"description": "string",
"id": 0,
"liveSystemHost": "string",
"liveSystemPort": 0,
"name": "string",
"noMatchingRequestPreference": "string",
"noMatchingRequestTxnId": 0,
"serviceId": 0,
"serviceName": "string",
"thinkTime": 0,
"mockServiceTransactions": [
0
],
"updated": "2019-07-25T13:36:44.158Z",
"updatedBy": "string"
},
"skip": 0,
"total": 0
}