2025-04-16 21:33:06 +02:00
|
|
|
|
openapi: "3.1.0"
|
|
|
|
|
|
info:
|
2025-04-16 22:28:27 +02:00
|
|
|
|
title: Proxmox Cluster Extended API
|
|
|
|
|
|
version: "1.2"
|
2025-04-16 21:33:06 +02:00
|
|
|
|
servers:
|
|
|
|
|
|
- url: https://pve.lawek.com/api2/json
|
|
|
|
|
|
paths:
|
|
|
|
|
|
/cluster/status:
|
|
|
|
|
|
get:
|
|
|
|
|
|
operationId: getClusterStatus
|
|
|
|
|
|
summary: Récupère le statut du cluster Proxmox
|
|
|
|
|
|
responses:
|
|
|
|
|
|
"200":
|
|
|
|
|
|
description: Statut du cluster retourné avec succès
|
|
|
|
|
|
content:
|
|
|
|
|
|
application/json:
|
|
|
|
|
|
schema:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
properties:
|
|
|
|
|
|
data:
|
|
|
|
|
|
type: array
|
|
|
|
|
|
items:
|
2025-04-16 21:56:00 +02:00
|
|
|
|
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
|
2025-04-16 22:28:27 +02:00
|
|
|
|
|
|
|
|
|
|
/cluster/replication:
|
|
|
|
|
|
get:
|
|
|
|
|
|
operationId: listReplicationJobs
|
|
|
|
|
|
summary: Liste les jobs de réplication
|
|
|
|
|
|
responses:
|
|
|
|
|
|
"200":
|
|
|
|
|
|
description: Liste des jobs de réplication
|
|
|
|
|
|
content:
|
|
|
|
|
|
application/json:
|
|
|
|
|
|
schema:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
properties:
|
|
|
|
|
|
data:
|
|
|
|
|
|
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
|
|
|
|
|
|
summary: Liste les conteneurs LXC sur un nœud donné
|
|
|
|
|
|
parameters:
|
|
|
|
|
|
- name: node
|
|
|
|
|
|
in: path
|
|
|
|
|
|
required: true
|
|
|
|
|
|
schema:
|
|
|
|
|
|
type: string
|
|
|
|
|
|
responses:
|
|
|
|
|
|
"200":
|
|
|
|
|
|
description: Liste des conteneurs LXC
|
|
|
|
|
|
content:
|
|
|
|
|
|
application/json:
|
|
|
|
|
|
schema:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
properties:
|
|
|
|
|
|
data:
|
|
|
|
|
|
type: array
|
|
|
|
|
|
items:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
|
|
|
|
/nodes/{node}/qemu:
|
|
|
|
|
|
get:
|
|
|
|
|
|
operationId: listQemuVMs
|
|
|
|
|
|
summary: Liste les machines virtuelles QEMU sur un nœud donné
|
|
|
|
|
|
parameters:
|
|
|
|
|
|
- name: node
|
|
|
|
|
|
in: path
|
|
|
|
|
|
required: true
|
|
|
|
|
|
schema:
|
|
|
|
|
|
type: string
|
|
|
|
|
|
responses:
|
|
|
|
|
|
"200":
|
|
|
|
|
|
description: Liste des VMs QEMU
|
|
|
|
|
|
content:
|
|
|
|
|
|
application/json:
|
|
|
|
|
|
schema:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
properties:
|
|
|
|
|
|
data:
|
|
|
|
|
|
type: array
|
|
|
|
|
|
items:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
|
|
|
|
/cluster/ceph/status:
|
|
|
|
|
|
get:
|
|
|
|
|
|
operationId: getCephStatus
|
|
|
|
|
|
summary: Récupère le statut de Ceph dans le cluster
|
|
|
|
|
|
responses:
|
|
|
|
|
|
"200":
|
|
|
|
|
|
description: Statut Ceph retourné avec succès
|
|
|
|
|
|
content:
|
|
|
|
|
|
application/json:
|
|
|
|
|
|
schema:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
properties:
|
|
|
|
|
|
data:
|
|
|
|
|
|
type: object
|