Terminate Masters in Workspace

API Explorer: /workspaces/{workspaceId}/terminate-masters

To terminate all running masters in a workspace, you need the workspaceId of the workspace. For the sample code on the right, we are terminating all the running masters in workspaceId 123456. To terminate all the masters in your workspace, replace the workspaceId 123456 with the workspaceId of your workspace.

If you do not know the workspaceId of the workspace, use List Workspaces to return a list of your workspaces.

Terminate Masters in Workspace


curl 'https://a.blazemeter.com/api/v4/workspaces/123456/terminate-masters' \
    -X POST \
    -H 'Content-Type: application/json' \
    --user 'api_key_id:api_key_secret' \
    -d '{"dryRun": false}'

Terminate Masters in Workspace Request Attributes

Attributes

  • dryRunboolean

    required

    If false, the request is will terminate all masters in the given workspace. If true, the masters will not be terminated, but a list will be provided

Terminate Masters in WorkspaceTerminate Masters in Workspace POST Body (JSON)

{
  "dryRun": false
}

Terminate Masters in Workspace Response Attributes

Attributes

  • resultarray

    Contains a list of masterIds terminated (if dryRun=false) or will be terminated (if dryRun=true)

Response201 Created

{
    "api_version": 4,
    "error": null,
    "result": [
        21509126,
        21509125
    ],
    "request_id": "5dc5a94bcc138"
}