diff --git a/ActionsGPT-shema.yaml b/ActionsGPT-shema.yaml index d91e1ab..9b7d0f0 100644 --- a/ActionsGPT-shema.yaml +++ b/ActionsGPT-shema.yaml @@ -1,4 +1,4 @@ -openapi: "3.1.0" +openapi: 3.1.0 info: title: Proxmox Cluster Extended API version: "1.2" @@ -21,7 +21,6 @@ paths: type: array items: type: object - /nodes: get: operationId: listNodes @@ -49,7 +48,6 @@ paths: type: integer maxmem: type: integer - /nodes/{node}/status: get: operationId: getNodeStatus @@ -70,7 +68,6 @@ paths: properties: data: type: object - /cluster/resources: get: operationId: getClusterResources @@ -87,7 +84,6 @@ paths: type: array items: type: object - /cluster/replication: get: operationId: listReplicationJobs @@ -104,45 +100,6 @@ paths: type: array items: type: object - - /cluster/replication/{id}: - get: - operationId: getReplicationJob - summary: Lit la configuration d’un job de réplication - parameters: - - name: id - in: path - required: true - schema: - type: string - responses: - "200": - description: Configuration du job de réplication - content: - application/json: - schema: - type: object - properties: - data: - type: object - - delete: - operationId: deleteReplicationJob - summary: Supprime un job de réplication - parameters: - - name: id - in: path - required: true - schema: - type: string - responses: - "200": - description: Job supprimé avec succès - content: - application/json: - schema: - type: object - /nodes/{node}/lxc: get: operationId: listLxcContainers @@ -165,7 +122,6 @@ paths: type: array items: type: object - /nodes/{node}/qemu: get: operationId: listQemuVMs @@ -188,7 +144,6 @@ paths: type: array items: type: object - /cluster/ceph/status: get: operationId: getCephStatus @@ -202,4 +157,59 @@ paths: type: object properties: data: - type: object \ No newline at end of file + type: object + /nodes/{node}/lxc/{vmid}/migrate: + post: + operationId: migrateLxcContainer + summary: Migre un conteneur LXC vers un autre noeud + description: Démarre la migration d'un conteneur LXC depuis un noeud source vers un noeud cible. Utilise "1" ou "0" pour + les champs boolean comme online et restart. + parameters: + - name: node + in: path + required: true + schema: + type: string + - name: vmid + in: path + required: true + schema: + type: integer + requestBody: + required: true + content: + application/x-www-form-urlencoded: + schema: + type: object + properties: + target: + type: string + description: Nom du noeud cible + online: + type: string + enum: + - "1" + - "0" + description: 1 pour une migration a chaud, 0 sinon + restart: + type: string + enum: + - "1" + - "0" + description: 1 pour forcer le redemarrage, 0 sinon + timeout: + type: integer + description: Delai d'attente avant expiration (en secondes) + required: + - target + responses: + "200": + description: Migration lancee avec succes + content: + application/json: + schema: + type: object + properties: + data: + type: string + description: Identifiant de la tache (UPID)