此操作可将警报操作添加到现有警报操作组中。
请求示例:
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"}
响应示例:
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"
}
}