Infrastructure/OTA Upgrade Plans
POSTOTASince 1.0SynchronousAuth Required
CreateGraduatedPlan
Create Graduated Plan
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredHuman-readable name for the new graduated upgrade plan
Example: Upgrade agents to v1.3.0
fromVersionStringRequiredVersion agents are currently running
Example: 1.2.0
toVersionStringRequiredTarget version agents will be upgraded to
Example: 1.3.0
toReleaseStringRequiredTarget release agents will be upgraded to
Example: 221
agentIdsListRequiredAgent ids
Example: item1,item2
Responses
Endpoint
POST/api/v1/lifecycle/upgrade-plans
/api/v1/lifecycle/upgrade-plans
Request Example
curl -X POST '{host}/api/v1/lifecycle/upgrade-plans' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"Upgrade agents to v1.3.0","fromVersion":"1.2.0","toVersion":"1.3.0","toRelease":"221","agentIds":"item1,item2","batchSize":10,"failureThreshold":0.1,"concurrency":5,"createdBy":"admin","observeDuration":"value"}'
Response Example
200{"id": "plan-a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "Upgrade agents to v1.3.0", "fromVersion": "1.2.0", "toVersion": "1.3.0", "fromRelease": "215", "toRelease": "221", "batches": [{"batchIndex": 20, "agentIds": ["value"], "status": "completed", "failedCount": 20, "tasks": [{"componentUuid": "abcdef0123456789abcdef0123456789", "componentInstanceUuid": "abcdef0123456789abcdef0123456789", "lifecycleTaskUuid": "task-a1b2c3d4", "componentName": "zmetis", "taskType": "update", "status": "running", "nodeUuid": "abcdef0123456789abcdef0123456789", "lcaUuid": "abcdef0123456789abcdef0123456789"}]}], "failureThreshold": 0.1}Change History
This API has no change history records yet.
