diff --git a/oas_docs/bundle.json b/oas_docs/bundle.json
index a59f35f9d603..b3bfded4f83f 100644
--- a/oas_docs/bundle.json
+++ b/oas_docs/bundle.json
@@ -17061,6 +17061,100 @@
]
}
},
+ "/api/fleet/agent_policies/{agentPolicyId}/auto_upgrade_agents_status": {
+ "get": {
+ "description": "Get auto upgrade agent status
[Required authorization] Route required privileges: fleet-agents-read.",
+ "operationId": "get-fleet-agent-policies-agentpolicyid-auto-upgrade-agents-status",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "agentPolicyId",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": false,
+ "properties": {
+ "currentVersions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "agents": {
+ "type": "number"
+ },
+ "failedUpgradeAgents": {
+ "type": "number"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "version",
+ "agents",
+ "failedUpgradeAgents"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "totalAgents": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "currentVersions",
+ "totalAgents"
+ ],
+ "type": "object"
+ }
+ }
+ }
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": false,
+ "description": "Generic Error",
+ "properties": {
+ "attributes": {},
+ "error": {
+ "type": "string"
+ },
+ "errorType": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "statusCode": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "message",
+ "attributes"
+ ],
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "Get auto upgrade agent status",
+ "tags": [
+ "Elastic Agent policies"
+ ]
+ }
+ },
"/api/fleet/agent_policies/{agentPolicyId}/copy": {
"post": {
"description": "Copy an agent policy by ID.
[Required authorization] Route required privileges: fleet-agent-policies-all.",
diff --git a/oas_docs/bundle.serverless.json b/oas_docs/bundle.serverless.json
index 9ad3fe11bdb4..aaa8e5afbd61 100644
--- a/oas_docs/bundle.serverless.json
+++ b/oas_docs/bundle.serverless.json
@@ -17061,6 +17061,100 @@
]
}
},
+ "/api/fleet/agent_policies/{agentPolicyId}/auto_upgrade_agents_status": {
+ "get": {
+ "description": "Get auto upgrade agent status
[Required authorization] Route required privileges: fleet-agents-read.",
+ "operationId": "get-fleet-agent-policies-agentpolicyid-auto-upgrade-agents-status",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "agentPolicyId",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": false,
+ "properties": {
+ "currentVersions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "agents": {
+ "type": "number"
+ },
+ "failedUpgradeAgents": {
+ "type": "number"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "version",
+ "agents",
+ "failedUpgradeAgents"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "totalAgents": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "currentVersions",
+ "totalAgents"
+ ],
+ "type": "object"
+ }
+ }
+ }
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": false,
+ "description": "Generic Error",
+ "properties": {
+ "attributes": {},
+ "error": {
+ "type": "string"
+ },
+ "errorType": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "statusCode": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "message",
+ "attributes"
+ ],
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "Get auto upgrade agent status",
+ "tags": [
+ "Elastic Agent policies"
+ ]
+ }
+ },
"/api/fleet/agent_policies/{agentPolicyId}/copy": {
"post": {
"description": "Copy an agent policy by ID.
[Required authorization] Route required privileges: fleet-agent-policies-all.",
diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml
index 769c9d319a59..a7b0c8deb099 100644
--- a/oas_docs/output/kibana.serverless.yaml
+++ b/oas_docs/output/kibana.serverless.yaml
@@ -20614,6 +20614,68 @@ paths:
summary: Update an agent policy
tags:
- Elastic Agent policies
+ /api/fleet/agent_policies/{agentPolicyId}/auto_upgrade_agents_status:
+ get:
+ description: 'Get auto upgrade agent status
[Required authorization] Route required privileges: fleet-agents-read.'
+ operationId: get-fleet-agent-policies-agentpolicyid-auto-upgrade-agents-status
+ parameters:
+ - in: path
+ name: agentPolicyId
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ additionalProperties: false
+ type: object
+ properties:
+ currentVersions:
+ items:
+ additionalProperties: false
+ type: object
+ properties:
+ agents:
+ type: number
+ failedUpgradeAgents:
+ type: number
+ version:
+ type: string
+ required:
+ - version
+ - agents
+ - failedUpgradeAgents
+ type: array
+ totalAgents:
+ type: number
+ required:
+ - currentVersions
+ - totalAgents
+ '400':
+ content:
+ application/json:
+ schema:
+ additionalProperties: false
+ description: Generic Error
+ type: object
+ properties:
+ attributes: {}
+ error:
+ type: string
+ errorType:
+ type: string
+ message:
+ type: string
+ statusCode:
+ type: number
+ required:
+ - message
+ - attributes
+ summary: Get auto upgrade agent status
+ tags:
+ - Elastic Agent policies
/api/fleet/agent_policies/{agentPolicyId}/copy:
post:
description: 'Copy an agent policy by ID.
[Required authorization] Route required privileges: fleet-agent-policies-all.'
diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml
index 12cc5baee4b5..438c089fefd0 100644
--- a/oas_docs/output/kibana.yaml
+++ b/oas_docs/output/kibana.yaml
@@ -22856,6 +22856,68 @@ paths:
summary: Update an agent policy
tags:
- Elastic Agent policies
+ /api/fleet/agent_policies/{agentPolicyId}/auto_upgrade_agents_status:
+ get:
+ description: 'Get auto upgrade agent status
[Required authorization] Route required privileges: fleet-agents-read.'
+ operationId: get-fleet-agent-policies-agentpolicyid-auto-upgrade-agents-status
+ parameters:
+ - in: path
+ name: agentPolicyId
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ additionalProperties: false
+ type: object
+ properties:
+ currentVersions:
+ items:
+ additionalProperties: false
+ type: object
+ properties:
+ agents:
+ type: number
+ failedUpgradeAgents:
+ type: number
+ version:
+ type: string
+ required:
+ - version
+ - agents
+ - failedUpgradeAgents
+ type: array
+ totalAgents:
+ type: number
+ required:
+ - currentVersions
+ - totalAgents
+ '400':
+ content:
+ application/json:
+ schema:
+ additionalProperties: false
+ description: Generic Error
+ type: object
+ properties:
+ attributes: {}
+ error:
+ type: string
+ errorType:
+ type: string
+ message:
+ type: string
+ statusCode:
+ type: number
+ required:
+ - message
+ - attributes
+ summary: Get auto upgrade agent status
+ tags:
+ - Elastic Agent policies
/api/fleet/agent_policies/{agentPolicyId}/copy:
post:
description: 'Copy an agent policy by ID.
[Required authorization] Route required privileges: fleet-agent-policies-all.'
diff --git a/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts b/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts
index caf185b8feac..75d5b248ef1b 100644
--- a/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts
+++ b/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts
@@ -10,7 +10,7 @@ export type ExperimentalFeatures = typeof allowedExperimentalValues;
const _allowedExperimentalValues = {
showExperimentalShipperOptions: false,
useSpaceAwareness: false,
- enableAutomaticAgentUpgrades: false,
+ enableAutomaticAgentUpgrades: true,
enableSyncIntegrationsOnRemote: false,
enableSSLSecrets: false,
installedIntegrationsTabularUI: false,