v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Fleet Automation

Get a configuration deployment by ID

Retrieve detailed information about a specific deployment using its unique identifier. This endpoint returns comprehensive information about a deployment, including:

  • Deployment metadata (ID, type, filter query)
  • Total number of target hosts
  • Current high-level status (pending, running, succeeded, failed)
  • Estimated completion time
  • Configuration operations that were or are being applied
  • Detailed host list: A paginated array of hosts included in this deployment with individual host status, current package versions, and any errors

The host list provides visibility into the per-host execution status, allowing you to:

  • Monitor which hosts have completed successfully
  • Identify hosts that are still in progress
  • Investigate failures on specific hosts
  • View current package versions installed on each host (including initial, target, and current versions for each package)

Pagination: Use the limit and page query parameters to paginate through hosts. The response includes pagination metadata in the meta.hosts field with information about the current page, total pages, and total host count. The default page size is 50 hosts, with a maximum of 100.

get/api/unstable/fleet/deployments/{deployment_id}

Path parameters

deployment_idstring required

The unique identifier of the deployment to retrieve.

Query parameters

limitinteger

Maximum number of hosts to return per page. Default is 50, maximum is 100.

pageinteger

Page index for pagination (zero-based). Use this to retrieve subsequent pages of hosts.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "config_operations": [
        {
          "file_op": "merge-patch",
          "file_path": "/datadog.yaml",
          "patch": {
            "apm_config": {
              "enabled": true
            },
            "log_level": "debug",
            "logs_enabled": true
          }
        }
      ],
      "estimated_end_time_unix": 1699999999,
      "filter_query": "env:prod AND service:web",
      "high_level_status": "pending",
      "hosts": [
        {
          "hostname": "web-server-01.example.com",
          "status": "succeeded",
          "versions": [
            {
              "current_version": "7.51.0",
              "initial_version": "7.51.0",
              "package_name": "datadog-agent",
              "target_version": "7.52.0"
            }
          ]
        }
      ],
      "packages": [
        {
          "name": "datadog-agent",
          "version": "7.52.0"
        }
      ],
      "total_hosts": 42
    },
    "id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
    "type": "deployment"
  },
  "meta": {
    "hosts": {
      "page_size": 50,
      "total_hosts": 150,
      "total_pages": 3
    }
  }
}