| Ignorer les liens de navigation | |
| Quitter l'aperu | |
|
API RESTful des systèmes Oracle® ZFS Storage Appliance |
Utilisation de cette documentation
Chapitre 2 Utilisation de l'API
Chapitre 3 Commandes du service d'alerte
Chapitre 6 Commandes des journaux
Chapitre 8 Commandes du service des problèmes
Chapitre 11 Commandes de service
Chapitre 12 Services de stockage
Chapitre 14 Service utilisateur
Crée un seuil d'alerte.
Exemple de demande :
POST /api/alert/v1/thresholds HTTP/1.1
Host: zfs-storage.example.com
X-Auth-User: root
X-Auth-Key: letmein
Content-Type: application/json
Content-Length: 50
{"statname": "datalink.kilobytes", "limit": 100000}
Exemple de réponse :
HTTP/1.1 201 Created
X-Zfssa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 321
Location: /api/alert/v1/thresholds
/1b15d405-75c4-4c0c-e0f6-8a108165b874
{
"threshold": {
"href": "/api/alert/v1/alerts/thresholds
/1b15d405-75c4-4c0c-e0f6-8a108165b874",
...
}
}