Get All Services
To get all Services of a Workspace, you need to know your Workspace identifier. The sample code uses a workspaceId
of 123456
. Use the actual ID value of your Workspace.
Minimum Parameters for getting all Services
The following parameters are the base parameters required to get all Services.
Get All ServicesMinimum Configuration Sample
curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/services?limit=5&skip=0&sort=name' \
-X GET \
-H 'accept: */*' \
-H 'authorization: Basic Aa1Bb2Cc3Dd4Ee5Ff6Gg7Hh8Ii9Jj0Aa1Bb2Cc3Dd4Ee5Ff6'
Get All Services Request Attributes
Attributes
-
limit
integerNumber of results per page
-
name
stringThe Service name to filter by
-
skip
integerNumber of initial results to skip
-
sort
stringThe column name to sort by: `id`, `name`, or `description`
-
workspaceId
integerrequired
The Workspace identifier
Response200 OK
{
"apiVersion": 1,
"error": null,
"result": [
{
"id": 1619,
"name": "Some Service",
"description": null,
"created": 1563893805,
"updated": 1563893805,
"createdBy": "someone@example.com",
"updatedBy": "someone@example.com"
},
{
"id": 1618,
"name": "Some other Service",
"description": "A service that serves as an example",
"created": 1563893804,
"updated": 1563893804,
"createdBy": "someone@example.com",
"updatedBy": "someone@example.com"
}
],
"requestId": null,
"limit": 5,
"skip": 0,
"total": 2
}