-
Notifications
You must be signed in to change notification settings - Fork 0
feat(api): Add topology-based deploy/undeploy endpoints #37
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesttrack_axis-02Operational end-user interfacesOperational end-user interfaces
Description
Context
Current deployment operates via individual VM/network API calls or hardcoded bundle groups (admin/student/vuln). There is no single endpoint that accepts a full topology plan and orchestrates deployment, nor one that tears down an arbitrary deployment.
Requirements
POST /v0/admin/deployments/{id}/deploy— Accept a deployment plan (ordered steps from the topology resolver), execute sequentially or in parallel, track progressPOST /v0/admin/deployments/{id}/undeploy— Generate and execute reverse-order teardown: stop VMs → delete VMs → remove network interfaces → delete bridges → cleanup firewall rules- Both endpoints should work with arbitrary topologies, not just predefined groups
- Integration with persistence layer for state tracking
Dependencies
Requires persistence layer (B1) and async job queue (B2) for production use.
Priority
Critical (MVP) — Phase 4. Blocks: U2 (undeploy workflow in UI).
References
- Gap analysis:
gap-analysis.mdissue B6
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesttrack_axis-02Operational end-user interfacesOperational end-user interfaces