v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBFleet Automation
Create a configuration deployment
Create 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
The 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.
post/api/unstable/fleet/deployments/configure
Request body
Example request
{
"data": {
"attributes": {
"config_operations": [
{
"file_op": "merge-patch",
"file_path": "/datadog.yaml",
"patch": {
"apm_config": {
"enabled": true
},
"log_level": "debug",
"logs_enabled": true
}
}
],
"filter_query": "env:prod AND service:web"
},
"type": "deployment"
}
}Response
CREATED
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
}
}
}