NetStacksNetStacks

Stacks API

Stack management and deployment endpoints.

Stack Templates

GET /api/stacks/templates
Authorization: Bearer <token>

Response:
{
  "data": [
    {
      "id": "uuid",
      "name": "basic-network-stack",
      "templates": ["snmp", "ntp", "syslog"],
      "variables": ["ntp_servers", "syslog_host"]
    }
  ]
}

Deploy Stack

POST /api/stacks/instances
Authorization: Bearer <token>
Content-Type: application/json

{
  "template_id": "uuid",
  "name": "dc1-network-config",
  "device_ids": ["uuid1", "uuid2"],
  "variables": {
    "ntp_servers": ["10.0.0.1", "10.0.0.2"],
    "syslog_host": "10.0.0.100"
  }
}

Response: 201 Created
{
  "id": "uuid",
  "status": "deploying",
  "devices": [...]
}