Optional requestFactory: FleetAutomationApiRequestFactoryOptional responseProcessor: FleetAutomationApiResponseProcessorPrivate configurationPrivate requestPrivate responseThe request object
Optional options: ConfigurationCreate a new deployment to apply configuration changes to a fleet of hosts matching the specified filter query.
This endpoint supports two types of configuration operations:
merge-patch: Merges the provided patch data with the existing configuration file,
creating the file if it doesn't exist.delete: Removes the specified configuration file from the target hosts.You can optionally use target_packages to apply the configuration change only to specific package versions.
The deployment is created and started automatically. You can specify multiple configuration operations to execute in order on each target host. Use the filter query to target specific hosts using the Datadog query syntax.
Set dry_run to true to validate the configuration and resolve target hosts and packages without deploying anything. A dry run returns a 200 with the validation result instead of creating and starting a deployment.
Returns a 400 if filter_query or config_operations is missing, a target package is missing a name or version or cannot be resolved, the configuration fails validation, or the filter query does not match any host eligible for the deployment.
The request object
Optional options: ConfigurationCreate and immediately start a new package upgrade on hosts matching the specified filter query.
This endpoint allows you to upgrade the Datadog Agent to a specific version on hosts matching the specified filter query.
The deployment is created and started automatically. The system:
Returns a 400 if filter_query or target_packages is missing, a target package is missing a name or version, or the filter query does not match any host eligible for the upgrade. Returns a 409 if a conflicting upgrade is already running on one or more target hosts.
The request object
Optional options: ConfigurationCreate a new schedule for automated package upgrades.
Schedules define when and how often to automatically deploy package upgrades to a fleet of hosts. Each schedule includes:
When the schedule triggers during a maintenance window, it automatically creates a deployment that upgrades the Datadog Agent to the specified version on all matching hosts.
The request object
Optional options: ConfigurationDelete a schedule permanently.
When you delete a schedule:
If you want to temporarily stop a schedule from creating deployments, consider updating its status to "inactive" instead of deleting it.
The request object
Optional options: ConfigurationRetrieve detailed information about a specific Datadog Agent.
By default, only agent_infos is returned. Use the include query parameter to
request additional data: integrations and/or configuration_files.
The request object
Optional options: ConfigurationRetrieve detailed information about a specific deployment, including its current status, configuration operations, and per-host execution status.
Returns a 404 if no deployment matches the given ID or if you do not have access to it.
The request object
Optional options: ConfigurationRetrieve detailed information about a specific schedule by its unique identifier.
The request object
Optional options: ConfigurationRetrieve a paginated list of tracers for a specific agent.
This endpoint returns tracers associated with a given agent key, identified by the agent's hostname. Use this to discover telemetry-derived service names for a particular host.
The request object
Optional options: ConfigurationRetrieve the list of Datadog Agent versions available for deployment.
Returns 200 with an empty data array if the Agent package exists in the catalog
but has no available versions, and 404 only if the Agent package itself is absent
from the catalog.
Optional options: ConfigurationRetrieve a paginated list of Datadog Agents.
Returns agents with support for pagination, sorting, and filtering.
Use page_number and page_size to navigate pages, filter to narrow by field values,
and tags to filter by agent tags.
The request object
Optional options: ConfigurationRetrieve a paginated list of all deployments for fleet automation.
The request object
Optional options: ConfigurationRetrieve all upgrade schedules for the organization.
Schedules automate package upgrades by defining maintenance windows and recurrence rules. Each schedule automatically creates deployments based on its configuration.
Optional options: ConfigurationRetrieve a paginated list of all fleet tracers.
This endpoint returns telemetry-derived service names from the SDK telemetry pipeline.
These names may differ from span-derived names in APM and are useful for querying
service library configurations.
Use the page_number and page_size query parameters to paginate through results.
The request object
Optional options: ConfigurationManually trigger a schedule to immediately create and start a deployment.
This endpoint allows you to manually initiate a deployment using the schedule's configuration, without waiting for the next scheduled maintenance window. This is useful for:
The deployment is created immediately with:
The manually triggered deployment is independent of the schedule and does not affect the schedule's normal recurrence pattern.
The request object
Optional options: ConfigurationPartially update a schedule by providing only the fields you want to change.
This endpoint allows you to modify specific attributes of a schedule without affecting other fields. Common use cases include:
Only include the fields you want to update in the request body. All fields are optional in a PATCH request.
The request object
Optional options: ConfigurationGenerated using TypeDoc
Cancel an active deployment and stop all pending operations. When you cancel a deployment:
After cancellation, you can view the final state of the deployment using the GET endpoint to see which hosts were successfully updated before the cancellation.
Only deployments with a
pendingorrunningstatus can be canceled. Returns a 400 if the deployment is not in a cancelable status. Returns a 404 if no deployment matches the specified ID or if you do not have access to it.