| Skip Navigation Links | |
| Exit Print View | |
|
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
When you create an alert action POST request containing a JSON object the action properties must be sent to /api/alert/v1/alerts/actions. The category property must be set to select the type of action to create. See the CLI documentation for all of the available category values on a given system.
Category values typically include:
"ad", "all", "appliance_software", "backup", "cluster", "custom", "hardware", "hardware_faults", "ndmp", "network", "replication", "replication_source", "replication_target", "restore", "scrk", "shadow", "smf", "thresholds" or "zfs_pool"
Example Request:
POST /api/alert/v1/actions HTTP/1.1
Host: zfssa.example.com:215
X-Auth-Session: uerqghq84vbdv
Content-Type: application/json
Content-Length: 30
{"category": "hardware_faults"}
Example Response:
HTTP/1.1 201 Created
X-Zfssa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 118
Location: /api/alert/v1/actions/actions-006
{
"action": {
"href": "/api/alert/v1/actions/actions-006",
"category": "hardware_faults",
"all_hardware_faults": true
}
}