First working schema for pve
This commit is contained in:
parent
5613e86e55
commit
2be2e81f0a
23
ActionsGPT-shema.yaml
Normal file
23
ActionsGPT-shema.yaml
Normal 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
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user