| 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
Cette commande permet d'ajouter une action d'alerte à un groupe d'actions d'alerte existant.
Exemple de demande :
POST /api/alert/v1/actions/actions-001 HTTP/1.1
Host: zfssa.example.com:215
X-Auth-Session: uerqghq84vbdv
Content-Type: application/json
Content-Length: 68
{"address": "Joe.Admin@acme.com", "handler": "email", "subject":"CPU Busy"}
Exemple de réponse :
HTTP/1.1 201 Created
X-Zfssa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 177
Location: /api/alert/v1/actions/actions-001/action-001
{
"action": {
"href": "/api/alert/v1/actions/actions-001
/action-001",
"handler": "email",
"address": "Joe.Admin@acme.com",
"subject": "CPU Busy"
}
}