Get the status of a benchmark task

Use this API to get the status of a benchmark task.

Resource Information

Method

URL

Authentication

GET

/V1/CMDB/Benchmark/Tasks/{task}/Status

Yes

Parameters

Name

Description

Token*required
(header)

Place the token received from the API Log in to get an authentication token.

task*required
(path)

The ID or name of the benchmark task.

Response

Parameter

Type

Description

Example

taskStatus

integer

The status of the scheduled task. Possible values:

1: Unknown

0: Never run

2: Running

10: Succeeded

11: Succeeded with warnings

20: Failed

30: Manually stopped

31: Automatically stopped due to timeout set by users or another system setting.

{
  "taskStatus"0,
  "statusCode"790200,
  "statusDescription""success"
}

statusCode

integer

The returned status code of executing the API.

statusDescription

string

The explanation of the status code.