v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Deployment Gates

Get a deployment gate evaluation result

Retrieves the result of a deployment gate evaluation by its evaluation ID. If the evaluation is still in progress, data.attributes.gate_status will be in_progress; continue polling until it returns pass or fail. Polling every 10-20 seconds is recommended. The endpoint may return a 404 if called too soon after triggering; retry after a few seconds.

get/api/v2/deployments/gates/evaluation/{id}

Path parameters

idstring uuid required

The evaluation ID returned by the trigger endpoint.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "evaluation_id": "e9d2f04f-4f4b-494b-86e5-52f03e10c8e9",
      "evaluation_url": "https://app.datadoghq.com/ci/deployment-gates/evaluations?index=cdgates&query=level%3Agate+%40evaluation_id%3Ae9d2f04f-4f4b-494b-86e5-52f03e10c8e9",
      "gate_id": "e140302e-0cba-40d2-978c-6780647f8f1c",
      "gate_status": "pass",
      "rules": [
        {
          "name": "Check service monitors",
          "reason": "One or more monitors in ALERT state",
          "status": "pass"
        }
      ]
    },
    "id": "e9d2f04f-4f4b-494b-86e5-52f03e10c8e9",
    "type": "deployment_gates_evaluation_result_response"
  }
}