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 existdelete: Removes the specified configuration file from the target hostsThe deployment is created and started automatically. You can specify multiple configuration operations that will be executed in order on each target host. Use the filter query to target specific hosts using the Datadog query syntax.
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 will:
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 deployment using its unique identifier. This endpoint returns comprehensive information about a deployment, including:
The host list provides visibility into the per-host execution status, allowing you to:
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.
The request object
Optional options: ConfigurationRetrieve detailed information about a specific schedule using its unique identifier.
This endpoint returns comprehensive information about a schedule, including:
The request object
Optional options: ConfigurationRetrieve a list of all available Datadog Agent versions.
This endpoint returns the available Agent versions that can be deployed to your fleet. These versions are used when creating deployments or configuring schedules for automated Agent upgrades.
Optional options: ConfigurationRetrieve a list of all deployments for fleet automation.
Use the page_size and page_offset parameters to paginate results.
The request object
Optional options: ConfigurationRetrieve a list of all schedules for automated fleet deployments.
Schedules allow you to automate package upgrades by defining maintenance windows and recurrence rules. Each schedule automatically creates deployments based on its configuration.
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.