| Skip Navigation Links | |
| Exit Print View | |
|
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
The list alert actions command lists all of the alert actions. To get data for a single resource, send an HTTP GET request to the href property of the given alert actions resource.
Example Request to Get Alert Actions:
GET /api/alert/v1/actions HTTP/1.1 Authorization: Basic abcd123MWE= Host: zfs-storage.example.com:215 Accept: application/json
Example Response:
HTTP/1.1 200 OK
X-Zfssa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 1395
{
"actions": [
{
"action": "actions-000",
"category": "smf",
"href": "/api/alert/v1/actions/actions-000",
"service_failures": true
},
{
"action": "actions-001",
"category": "scrk",
"href": "/api/alert/v1/actions/actions-001",
"action-000": {
"handler": "snmp_trap",
"href": "/api/alert/v1/alerts/actions/actions-001
/action-000"
},
"action-001": {
"address": "Joe.Admin@acme.com",
"handler": "email",
"href": "/api/alert/v1/actions/actions-001
/action-001",
"subject": "Phone Home Alert"
},
"support_bundle_build_failed": true,
"support_bundle_sent": true,
"support_bundle_upload_failed": true
},
{
"action": "actions-002",
"category": "thresholds",
"href": "/api/alert/v1/actions/actions-002",
"action-000": {
"address": "Joe.Admin@acme.com",
"handler": "email",
"href": "/api/alert/v1/actions/actions-002
/action-000",
"subject": "CPU Busy Alert"
},
"thresholdid": "b182ca05-53d3-6604-b874-ec353335704d"
}
]
}