From 2eb2a93e5f18ce8d2e4c2d4654f9f414f8a90625 Mon Sep 17 00:00:00 2001 From: Malik Recoing Date: Wed, 16 Apr 2025 21:56:00 +0200 Subject: [PATCH] More functions --- ActionsGPT-shema.yaml | 71 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/ActionsGPT-shema.yaml b/ActionsGPT-shema.yaml index ddce215..a6dde32 100644 --- a/ActionsGPT-shema.yaml +++ b/ActionsGPT-shema.yaml @@ -1,9 +1,10 @@ openapi: "3.1.0" info: title: Proxmox Cluster Status API - version: "1.0" + version: "1.1" servers: - url: https://pve.lawek.com/api2/json + paths: /cluster/status: get: @@ -20,4 +21,70 @@ paths: data: type: array items: - type: object \ No newline at end of file + type: object + + /nodes: + get: + operationId: listNodes + summary: Liste tous les nœuds du cluster + responses: + "200": + description: Liste des nœuds + content: + application/json: + schema: + type: object + properties: + data: + type: array + items: + type: object + properties: + node: + type: string + status: + type: string + uptime: + type: integer + maxcpu: + type: integer + maxmem: + type: integer + + /nodes/{node}/status: + get: + operationId: getNodeStatus + summary: Récupère les informations d’un nœud spécifique + parameters: + - name: node + in: path + required: true + schema: + type: string + responses: + "200": + description: Statut du nœud + content: + application/json: + schema: + type: object + properties: + data: + type: object + + /cluster/resources: + get: + operationId: getClusterResources + summary: Récupère les ressources du cluster (VMs, containers, etc.) + responses: + "200": + description: Ressources du cluster retournées avec succès + content: + application/json: + schema: + type: object + properties: + data: + type: array + items: + type: object