Get service by ID
To get a service of your workspace, you need to know your workspace identifier and the Service identifier. The sample code uses a serviceId of 123 and a workspaceId of 123456. Use the actual ID values of your workspace and Service.
Minimum parameters for getting a service by its ID
The following parameters are the base parameters required to get a Service by its ID.
Get a serviceMinimum configuration sample
curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/services/123' \
-X GET \
-H 'accept: */*' \
-H 'authorization: Basic Aa1Bb2Cc3Dd4Ee5Ff6Gg7Hh8Ii9Jj0Aa1Bb2Cc3Dd4Ee5Ff6'
Get a service request attributes
Attributes
-
serviceIdstringrequired
The Service identifier
-
workspaceIdintegerrequired
The workspace identifier
Response201 Created
{
"apiVersion": 1,
"error": null,
"result": {
"id": 123,
"name": "My Foo Service",
"description": "This service handles foo.",
"created": 1563897852,
"updated": 1563897852,
"createdBy": "someone@example.com",
"updatedBy": "someone@example.com"
},
"requestId": "d1cfe5c67b2ed26f"
}