openapi: 3.0.3
info:
  title: Proxmox LXC API
  description: Manage LXC containers
  version: 1.0.0
servers:
  - url: https://10.0.0.111:8006/api2/json
    description: PVE
  - url: https://10.0.0.85:8006/api2/json
    description: Tower
security:
  - ApiTokenAuth: []
paths:
  /nodes/{node}/lxc:
    get:
      summary: List all containers
      parameters:
        - name: node
          in: path
          required: true
          schema:
            type: string
          example: pve
      responses:
        '200':
          description: List of containers
  /nodes/{node}/lxc/{vmid}/status/current:
    get:
      summary: Get container status
      parameters:
        - name: node
          in: path
          required: true
          schema:
            type: string
          example: pve
        - name: vmid
          in: path
          required: true
          schema:
            type: integer
          example: 108
      responses:
        '200':
          description: Container status
components:
  securitySchemes:
    ApiTokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Use PVEAPIToken=automation@pve!api-token=637a8ee4-14b1-4001-8824-c9607d08db52
