Authentification API
Authentification
Section intitulée « Authentification »L’API Deployme.cloud utilise des Bearer tokens pour l’authentification.
Base URL
Section intitulée « Base URL »https://api.deployme.cloud/v1Authentification par token
Section intitulée « Authentification par token »Incluez votre token dans le header Authorization :
curl -H "Authorization: Bearer YOUR_API_TOKEN" \ https://api.deployme.cloud/v1/clustersCréer un token
Section intitulée « Créer un token »Les tokens sont créés depuis le Manager : Paramètres > Tokens API > Nouveau token
Ou via la CLI :
deployme token create --name "ci-pipeline" --permissions read,write --expires 90dScopes et permissions
Section intitulée « Scopes et permissions »| Permission | Description |
|---|---|
read | Lecture seule (lister, consulter) |
write | Création, modification, suppression |
admin | Gestion des tokens, utilisateurs, billing |
Les tokens peuvent être limités à un scope :
| Scope | Description |
|---|---|
* | Accès global (toutes les ressources) |
cluster:<id> | Accès à un cluster spécifique |
cluster:* | Accès à tous les clusters |
Réponses d’erreur
Section intitulée « Réponses d’erreur »401 Unauthorized
Section intitulée « 401 Unauthorized »{ "error": "unauthorized", "message": "Token invalide ou expiré"}403 Forbidden
Section intitulée « 403 Forbidden »{ "error": "forbidden", "message": "Permissions insuffisantes pour cette action"}Rate limiting
Section intitulée « Rate limiting »| Plan | Limite |
|---|---|
| Community | 100 requêtes/minute |
| Pro | 1 000 requêtes/minute |
| Enterprise | 10 000 requêtes/minute |
Les headers de réponse incluent :
X-RateLimit-Limit: 100X-RateLimit-Remaining: 95X-RateLimit-Reset: 1709500000