diff --git a/oas_docs/bundle.serverless.json b/oas_docs/bundle.serverless.json
index 9429b2e16b4dc..6c227fad847f7 100644
--- a/oas_docs/bundle.serverless.json
+++ b/oas_docs/bundle.serverless.json
@@ -16012,6 +16012,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: ALL of [fleet-agent-policies-all].",
diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml
index e577ffc5b1175..73b900fda22f9 100644
--- a/oas_docs/output/kibana.serverless.yaml
+++ b/oas_docs/output/kibana.serverless.yaml
@@ -18288,6 +18288,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.
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 19f7289462c13..e73efdcff3f2a 100644
--- a/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts
+++ b/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts
@@ -28,7 +28,7 @@ const _allowedExperimentalValues = {
asyncDeployPolicies: true,
enableExportCSV: true,
enabledUpgradeAgentlessDeploymentsTask: false,
- enableAutomaticAgentUpgrades: false,
+ enableAutomaticAgentUpgrades: true,
};
/**