Fleet 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
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/unstable/fleet/deployments/configure
- AuthAPI key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
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
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.