PmaControl logo PmaControl
  • Strona główna
  • Strona główna
    • PmaControl PmaControl
    • PmaControl PmaControl
    • PmaControl PmaControl
    • PmaControl PmaControl
    • Agenci AI Agenci AI
    Klienci
    • MariaDB 30 artykułów
    • MySQL 10 artykułów
    • Galera Cluster 6 artykułów
    • MaxScale 3 artykuły
    • ProxySQL 2 artykuły
    • Amazon Aurora MySQL 0 artykuły
    • Azure Database 0 artykuły
    • ClickHouse 0 artykuły
    • GCP CloudSQL 0 artykuły
    • Percona Server 0 artykuły
    • SingleStore 0 artykuły
    • TiDB 0 artykuły
    • Vitess 0 artykuły
    Bazy danych
    • Rozwiązania Rozwiązania
    • Observabilité SQL Rozwiązania
    • Haute disponibilité Rozwiązania
    • Disaster Recovery Rozwiązania
    • Sécurité & conformité Wsparcie 24×7
    • Migration & upgrade Wsparcie 24×7
  • PmaControl
  • Cennik
    • PmaControl Zasoby
    • Agenci AI Zasoby
    • Zasoby Zasoby
    • Zasoby Zasoby
    • Dokumentacja Dokumentacja
    Blog
    • Observabilité SQL Obszary ekspertyzy
    • Haute disponibilité Rozwiązania
    • Sécurité & conformité Obszary ekspertyzy
    • Disaster Recovery Rozwiązania
    • Performance & optimisation Obserwowalność SQL
    • Migration & upgrade Obserwowalność SQL
    Wydajność i optymalizacja
    • Szybkie linki Szybkie linki
    • Szybkie linki Szybkie linki
    • Rozwiązania Rozwiązania
    • Szybkie linki Szybkie linki
  • Rozwiązania
  • Szybkie linki
Szybkie linki
🇫🇷 FR Français 🇬🇧 EN English 🇵🇱 PL Polski 🇷🇺 RU Русский 🇨🇳 ZH 中文
PmaControl › API REST

API REST

Base route

GET    /fr/api/config/{resource}       # Lister toutes les entrées
GET    /fr/api/config/{resource}/{id}  # Lire une entrée
POST   /fr/api/config/{resource}       # Créer (JSON body)
PUT    /fr/api/config/{resource}/{id}  # Mettre à jour (JSON body complet)
PATCH  /fr/api/config/{resource}/{id}  # Mise à jour partielle
DELETE /fr/api/config/{resource}/{id}  # Supprimer

# Export OpenAPI
GET    /fr/api/openApi

Exposed resources

  • tags — { name, color, background } — hard delete
  • clients — { libelle, logo, is_monitored } — hard delete (guard on id=99)
  • environments — { libelle, key, class, letter } — hard delete if id > 6
  • aliases — { id_mysql_server, dns, port }
  • storage-areas — { ip, port, path, libelle, ssh_key, géolocalisation }
  • servers — { ip, port, hostname, ssl, ssh, is_proxy, is_vip, is_monitored } — soft delete via is_deleted=1
  • ssh-keys — { type ED25519/RSA, fingerprint, pub/privée }

cURL examples

# Lister tous les serveurs
curl -s http://pmacontrol/fr/api/config/servers | jq

# Ajouter un tag
curl -s -X POST http://pmacontrol/fr/api/config/tags \
  -H "Content-Type: application/json" \
  -d '{"name":"critical","color":"#ffffff","background":"#d9534f"}'

# Mettre à jour un serveur
curl -s -X PATCH http://pmacontrol/fr/api/config/servers/42 \
  -H "Content-Type: application/json" \
  -d '{"is_monitored": true}'

# Supprimer un alias
curl -s -X DELETE http://pmacontrol/fr/api/config/aliases/15
On this page
  • Base route
  • Exposed resources
  • cURL examples
← Previous page Next page →
PmaControl
+33 6 63 28 27 47 contact@pmacontrol.com
Platforma eksploatacji SQL GitHub Platforma eksploatacji SQL
Platforma eksploatacji SQL © 2014-2026 PmaControl — 68Koncept