mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Fleet] Update openapi spec for Fleet upgrades (#132800)
This commit is contained in:
parent
ad9e558f78
commit
c9b1832654
5 changed files with 144 additions and 0 deletions
|
@ -1256,6 +1256,64 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/agents/current_upgrades": {
|
||||
"get": {
|
||||
"summary": "Agents - Current Bulk Upgrades",
|
||||
"tags": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"actionId": {
|
||||
"type": "string"
|
||||
},
|
||||
"complete": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"nbAgents": {
|
||||
"type": "number"
|
||||
},
|
||||
"nbAgentsAck": {
|
||||
"type": "number"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"actionId",
|
||||
"complete",
|
||||
"nbAgents",
|
||||
"nbAgentsAck",
|
||||
"version",
|
||||
"startTime"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"items"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"operationId": "agents-current-upgrades"
|
||||
}
|
||||
},
|
||||
"/agents/{agentId}": {
|
||||
"parameters": [
|
||||
{
|
||||
|
@ -3795,6 +3853,9 @@
|
|||
"rollout_duration_seconds": {
|
||||
"type": "number"
|
||||
},
|
||||
"start_time": {
|
||||
"type": "string"
|
||||
},
|
||||
"agents": {
|
||||
"oneOf": [
|
||||
{
|
||||
|
|
|
@ -774,6 +774,45 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/bulk_upgrade_agents'
|
||||
/agents/current_upgrades:
|
||||
get:
|
||||
summary: Agents - Current Bulk Upgrades
|
||||
tags: []
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
items:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
actionId:
|
||||
type: string
|
||||
complete:
|
||||
type: boolean
|
||||
nbAgents:
|
||||
type: number
|
||||
nbAgentsAck:
|
||||
type: number
|
||||
version:
|
||||
type: string
|
||||
startTime:
|
||||
type: string
|
||||
required:
|
||||
- actionId
|
||||
- complete
|
||||
- nbAgents
|
||||
- nbAgentsAck
|
||||
- version
|
||||
- startTime
|
||||
required:
|
||||
- items
|
||||
operationId: agents-current-upgrades
|
||||
/agents/{agentId}:
|
||||
parameters:
|
||||
- schema:
|
||||
|
@ -2391,6 +2430,8 @@ components:
|
|||
type: string
|
||||
rollout_duration_seconds:
|
||||
type: number
|
||||
start_time:
|
||||
type: string
|
||||
agents:
|
||||
oneOf:
|
||||
- type: array
|
||||
|
|
|
@ -7,6 +7,8 @@ properties:
|
|||
type: string
|
||||
rollout_duration_seconds:
|
||||
type: number
|
||||
start_time:
|
||||
type: string
|
||||
agents:
|
||||
oneOf:
|
||||
- type: array
|
||||
|
|
|
@ -55,6 +55,8 @@ paths:
|
|||
$ref: paths/agents.yaml
|
||||
/agents/bulk_upgrade:
|
||||
$ref: paths/agents@bulk_upgrade.yaml
|
||||
/agents/current_upgrades:
|
||||
$ref: paths/agents@current_upgrades.yaml
|
||||
'/agents/{agentId}':
|
||||
$ref: 'paths/agents@{agent_id}.yaml'
|
||||
'/agents/{agentId}/actions':
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
get:
|
||||
summary: Agents - Current Bulk Upgrades
|
||||
tags: []
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
items:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
actionId:
|
||||
type: string
|
||||
complete:
|
||||
type: boolean
|
||||
nbAgents:
|
||||
type: number
|
||||
nbAgentsAck:
|
||||
type: number
|
||||
version:
|
||||
type: string
|
||||
startTime:
|
||||
type: string
|
||||
required:
|
||||
- actionId
|
||||
- complete
|
||||
- nbAgents
|
||||
- nbAgentsAck
|
||||
- version
|
||||
- startTime
|
||||
required:
|
||||
- items
|
||||
operationId: agents-current-upgrades
|
Loading…
Add table
Add a link
Reference in a new issue