First working schema for pve

This commit is contained in:
Malik Recoing 2025-04-16 21:33:06 +02:00
parent 5613e86e55
commit 2be2e81f0a
2 changed files with 23 additions and 25 deletions

23
ActionsGPT-shema.yaml Normal file
View File

@ -0,0 +1,23 @@
openapi: "3.1.0"
info:
title: Proxmox Cluster Status API
version: "1.0"
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:
type: object

View File

@ -15,28 +15,3 @@ provider "proxmox" {
pm_api_token_secret = "21d623eb-d6c2-4e03-9a28-5c823c643fc4"
#pm_tls_insecure = true
}
resource "proxmox_lxc" "test_ct" {
hostname = "test-lxc"
target_node = "pve3"
ostemplate = "cephfs:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst"
password = "DebianTest123"
cores = 1
memory = 512
swap = 512
unprivileged = true
start = true
tags = "terraform,test"
network {
name = "eth0"
bridge = "vmbr0"
ip = "dhcp"
gw = ""
}
rootfs {
storage = "main-pool"
size = "4G"
}
}