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

  • serviceId string

    required

    The Service identifier

  • workspaceId integer

    required

    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"
}