For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/es/api/latest/deployment-gates/list-deployment-gate-evaluations.md. A documentation index is available at /llms.txt.
Language
Datadog site

List deployment gate evaluations

ADVERTENCIANote: This endpoint is in preview and may be subject to change. If you have any feedback, contact Datadog support.
GEThttps://api.datadoghq.com/api/v2/deployment_gates/evaluationshttps://api.us3.datadoghq.com/api/v2/deployment_gates/evaluationshttps://api.us5.datadoghq.com/api/v2/deployment_gates/evaluationshttps://api.datadoghq.eu/api/v2/deployment_gates/evaluationshttps://api.ap1.datadoghq.com/api/v2/deployment_gates/evaluationshttps://api.ap2.datadoghq.com/api/v2/deployment_gates/evaluationshttps://api.uk1.datadoghq.com/api/v2/deployment_gates/evaluationshttps://api.ddog-gov.com/api/v2/deployment_gates/evaluationshttps://api.us2.ddog-gov.com/api/v2/deployment_gates/evaluations

Descripción general

Returns deployment gate evaluations started in a maximum 30-day window (the default is the previous 24 hours). Results are ordered by start time, newest first. In-progress state is near-real-time and mutable. Finished state is eventually consistent.

This endpoint requires the deployment_gates_read permission.

OAuth apps require the deployment_gates_read authorization scope to access this endpoint.

Argumentos

Cadenas de consulta

Nombre
Type
Descripción
filter[from]
string

Inclusive evaluation start time. Defaults to 24 hours before the request. Together with filter[to], the window may span no more than 30 days.

filter[to]
string

Exclusive evaluation start time. Defaults to the request time. Must be after filter[from]; the window may span no more than 30 days.

filter[service]
array

Service values. Repeated or comma-separated values are combined with OR.

filter[env]
array

Environment values. Repeated or comma-separated values are combined with OR.

filter[identifier]
array

Gate identifier values. Repeated or comma-separated values are combined with OR.

filter[status]
array

Gate outcomes. Repeated or comma-separated values are combined with OR.

filter[dry_run]
boolean

Gate-level dry-run state.

filter[evaluation_id]
string

Gate evaluation UUID. No match returns an empty list.

filter[gate_id]
string

Configured gate UUID. Just-in-time evaluations have no gate ID.

filter[version]
array

Deployment version values. Repeated or comma-separated values are combined with OR.

page[size]
integer

Maximum evaluations returned.

Default: 20
page[cursor]
string

Opaque cursor returned in meta.page.next_cursor by the previous page. Invalid cursors return 400.

Respuesta

OK

Paginated deployment gate evaluations.

Campo
Type
Descripción
data [required]
[object]
meta [required]
object

Pagination metadata.

Ejemplo de código

List deployment gate evaluations
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"