{
  "openapi": "3.1.0",
  "info": {
    "title": "Cnuas REST API",
    "description": "Unified REST control plane for the Cnuas Virtual AI HPC Infrastructure. Mirrors the cnuas CLI.",
    "version": "0.1.0"
  },
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "system"
        ],
        "summary": "Health",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Health Health Get"
                }
              }
            }
          }
        }
      }
    },
    "/": {
      "get": {
        "tags": [
          "system"
        ],
        "summary": "Root",
        "operationId": "root__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Root  Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/system/inventory": {
      "get": {
        "tags": [
          "system"
        ],
        "summary": "Inventory",
        "operationId": "inventory_api_v1_system_inventory_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Inventory Api V1 System Inventory Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/system/versions": {
      "get": {
        "tags": [
          "system"
        ],
        "summary": "Versions",
        "operationId": "versions_api_v1_system_versions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object",
                  "title": "Response Versions Api V1 System Versions Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/ports": {
      "get": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Ports",
        "operationId": "switch_ports_api_v1_switch_ports_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Ports Api V1 Switch Ports Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/ports/{port}": {
      "get": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Port",
        "operationId": "switch_port_api_v1_switch_ports__port__get",
        "parameters": [
          {
            "name": "port",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Port"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Switch Port Api V1 Switch Ports  Port  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/ports/{port}/mode": {
      "put": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Set Mode",
        "operationId": "switch_set_mode_api_v1_switch_ports__port__mode_put",
        "parameters": [
          {
            "name": "port",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Port"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PortModeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Switch Set Mode Api V1 Switch Ports  Port  Mode Put"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/ports/{port}/link": {
      "put": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Set Link",
        "operationId": "switch_set_link_api_v1_switch_ports__port__link_put",
        "parameters": [
          {
            "name": "port",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Port"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkStateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Switch Set Link Api V1 Switch Ports  Port  Link Put"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/ports/{port}/pfc": {
      "put": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Set Pfc",
        "operationId": "switch_set_pfc_api_v1_switch_ports__port__pfc_put",
        "parameters": [
          {
            "name": "port",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Port"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PfcRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Switch Set Pfc Api V1 Switch Ports  Port  Pfc Put"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/ports/{port}/ecn": {
      "put": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Set Ecn",
        "operationId": "switch_set_ecn_api_v1_switch_ports__port__ecn_put",
        "parameters": [
          {
            "name": "port",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Port"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EcnRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Switch Set Ecn Api V1 Switch Ports  Port  Ecn Put"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/ports/{port}/ets": {
      "put": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Set Ets",
        "operationId": "switch_set_ets_api_v1_switch_ports__port__ets_put",
        "parameters": [
          {
            "name": "port",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Port"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EtsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Switch Set Ets Api V1 Switch Ports  Port  Ets Put"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/fdb": {
      "get": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Fdb",
        "operationId": "switch_fdb_api_v1_switch_fdb_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Fdb Api V1 Switch Fdb Get"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Fdb Add",
        "operationId": "switch_fdb_add_api_v1_switch_fdb_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FdbEntryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Fdb Add Api V1 Switch Fdb Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Fdb Del",
        "operationId": "switch_fdb_del_api_v1_switch_fdb_delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FdbDeleteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Fdb Del Api V1 Switch Fdb Delete"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/lft": {
      "get": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Lft",
        "operationId": "switch_lft_api_v1_switch_lft_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Lft Api V1 Switch Lft Get"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Lft Add",
        "operationId": "switch_lft_add_api_v1_switch_lft_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LftEntryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Lft Add Api V1 Switch Lft Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Lft Del",
        "operationId": "switch_lft_del_api_v1_switch_lft_delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LftDeleteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Lft Del Api V1 Switch Lft Delete"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/sm": {
      "get": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Sm Status",
        "operationId": "switch_sm_status_api_v1_switch_sm_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Sm Status Api V1 Switch Sm Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/sm/{action}": {
      "post": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Sm Action",
        "operationId": "switch_sm_action_api_v1_switch_sm__action__post",
        "parameters": [
          {
            "name": "action",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Action"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Switch Sm Action Api V1 Switch Sm  Action  Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/telemetry": {
      "get": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Telemetry",
        "operationId": "switch_telemetry_api_v1_switch_telemetry_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Telemetry Api V1 Switch Telemetry Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/switch/telemetry/clear": {
      "post": {
        "tags": [
          "switch"
        ],
        "summary": "Switch Telemetry Clear",
        "operationId": "switch_telemetry_clear_api_v1_switch_telemetry_clear_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Switch Telemetry Clear Api V1 Switch Telemetry Clear Post"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fabric/ports": {
      "get": {
        "tags": [
          "fabric"
        ],
        "summary": "Fabric Ports",
        "operationId": "fabric_ports_api_v1_fabric_ports_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Fabric Ports Api V1 Fabric Ports Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fabric/gpu-fdb": {
      "get": {
        "tags": [
          "fabric"
        ],
        "summary": "Fabric Gpu Fdb",
        "operationId": "fabric_gpu_fdb_api_v1_fabric_gpu_fdb_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Fabric Gpu Fdb Api V1 Fabric Gpu Fdb Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fabric/link": {
      "put": {
        "tags": [
          "fabric"
        ],
        "summary": "Fabric Set Link",
        "operationId": "fabric_set_link_api_v1_fabric_link_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HiLinkLinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Fabric Set Link Api V1 Fabric Link Put"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fabric/telemetry": {
      "get": {
        "tags": [
          "fabric"
        ],
        "summary": "Fabric Telemetry",
        "operationId": "fabric_telemetry_api_v1_fabric_telemetry_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Fabric Telemetry Api V1 Fabric Telemetry Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fabric/telemetry/clear": {
      "post": {
        "tags": [
          "fabric"
        ],
        "summary": "Fabric Telemetry Clear",
        "operationId": "fabric_telemetry_clear_api_v1_fabric_telemetry_clear_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Fabric Telemetry Clear Api V1 Fabric Telemetry Clear Post"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fabric/version": {
      "get": {
        "tags": [
          "fabric"
        ],
        "summary": "Fabric Version",
        "operationId": "fabric_version_api_v1_fabric_version_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Fabric Version Api V1 Fabric Version Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu": {
      "get": {
        "tags": [
          "gpu"
        ],
        "summary": "Gpu List",
        "operationId": "gpu_list_api_v1_gpu_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "type": "array",
                  "title": "Response Gpu List Api V1 Gpu Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/{gpu_id}": {
      "get": {
        "tags": [
          "gpu"
        ],
        "summary": "Gpu Info",
        "operationId": "gpu_info_api_v1_gpu__gpu_id__get",
        "parameters": [
          {
            "name": "gpu_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Gpu Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Gpu Info Api V1 Gpu  Gpu Id  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/{gpu_id}/link": {
      "get": {
        "tags": [
          "gpu"
        ],
        "summary": "Gpu Link",
        "operationId": "gpu_link_api_v1_gpu__gpu_id__link_get",
        "parameters": [
          {
            "name": "gpu_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Gpu Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Gpu Link Api V1 Gpu  Gpu Id  Link Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/nic": {
      "get": {
        "tags": [
          "nic"
        ],
        "summary": "Nic List",
        "operationId": "nic_list_api_v1_nic_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "type": "array",
                  "title": "Response Nic List Api V1 Nic Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/nic/{device}": {
      "get": {
        "tags": [
          "nic"
        ],
        "summary": "Nic Info",
        "operationId": "nic_info_api_v1_nic__device__get",
        "parameters": [
          {
            "name": "device",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Device"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Nic Info Api V1 Nic  Device  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vm": {
      "get": {
        "tags": [
          "vm"
        ],
        "summary": "Vm List",
        "operationId": "vm_list_api_v1_vm_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "type": "array",
                  "title": "Response Vm List Api V1 Vm Get"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vm/{name}": {
      "get": {
        "tags": [
          "vm"
        ],
        "summary": "Vm Status",
        "operationId": "vm_status_api_v1_vm__name__get",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Vm Status Api V1 Vm  Name  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vm/{name}/up": {
      "post": {
        "tags": [
          "vm"
        ],
        "summary": "Vm Up",
        "operationId": "vm_up_api_v1_vm__name__up_post",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Name"
            }
          },
          {
            "name": "gpus",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Gpus"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Vm Up Api V1 Vm  Name  Up Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vm/{name}/down": {
      "post": {
        "tags": [
          "vm"
        ],
        "summary": "Vm Down",
        "operationId": "vm_down_api_v1_vm__name__down_post",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Name"
            }
          },
          {
            "name": "force",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Force"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Vm Down Api V1 Vm  Name  Down Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EcnRequest": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "marking_threshold": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Marking Threshold"
          },
          "marking_probability": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Marking Probability"
          }
        },
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "EcnRequest"
      },
      "EtsRequest": {
        "properties": {
          "bandwidth": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Bandwidth",
            "description": "Per-traffic-class bandwidth share, summing to 100."
          }
        },
        "type": "object",
        "required": [
          "bandwidth"
        ],
        "title": "EtsRequest"
      },
      "FdbDeleteRequest": {
        "properties": {
          "mac": {
            "type": "string",
            "title": "Mac"
          },
          "vlan": {
            "type": "integer",
            "title": "Vlan",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "mac"
        ],
        "title": "FdbDeleteRequest"
      },
      "FdbEntryRequest": {
        "properties": {
          "mac": {
            "type": "string",
            "title": "Mac"
          },
          "vlan": {
            "type": "integer",
            "title": "Vlan",
            "default": 0
          },
          "port": {
            "type": "integer",
            "title": "Port"
          }
        },
        "type": "object",
        "required": [
          "mac",
          "port"
        ],
        "title": "FdbEntryRequest"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "HiLinkLinkRequest": {
        "properties": {
          "port": {
            "type": "integer",
            "title": "Port"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "port",
          "enabled"
        ],
        "title": "HiLinkLinkRequest"
      },
      "LftDeleteRequest": {
        "properties": {
          "dlid": {
            "type": "integer",
            "title": "Dlid"
          }
        },
        "type": "object",
        "required": [
          "dlid"
        ],
        "title": "LftDeleteRequest"
      },
      "LftEntryRequest": {
        "properties": {
          "dlid": {
            "type": "integer",
            "title": "Dlid"
          },
          "port": {
            "type": "integer",
            "title": "Port"
          }
        },
        "type": "object",
        "required": [
          "dlid",
          "port"
        ],
        "title": "LftEntryRequest"
      },
      "LinkStateRequest": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "LinkStateRequest"
      },
      "PfcRequest": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "priorities": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Priorities",
            "description": "Priority classes (0-7) with PFC enabled."
          }
        },
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "PfcRequest"
      },
      "PortModeRequest": {
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "STRICT_ETH",
              "STRICT_IB",
              "AUTO"
            ],
            "title": "Mode"
          }
        },
        "type": "object",
        "required": [
          "mode"
        ],
        "title": "PortModeRequest"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  }
}
