Ethiack Docs
Jobs

Evaluate a job's success

GET
/v1/jobs/{job_uuid}/success

Evaluate whether a job passed a severity gate, so a CI pipeline can gate on the status code. A job that has not finished answers 202. A finished job answers 200 when it passed; when it did not, it answers 424, or 500 if the job errored. With fail=false, every finished job answers 200 and the verdict is in the body.

AuthorizationBearer <token>

An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.

In: header

Path Parameters

job_uuid*string

Query Parameters

severity?string

Minimum failing severity of the findings

Default"medium"
Value in"none" | "low" | "medium" | "high" | "critical" | "cosmic"
fail?boolean

Return a failing status code if the job was not successful

Defaulttrue

Response Body

application/json

application/json

application/json

curl -X GET "https://api.ethiack.com/v1/jobs/string/success"
{
  "code": 0,
  "success": true,
  "description": "string",
  "id": 0
}
{
  "code": 0,
  "success": true,
  "description": "string",
  "id": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}