각 경보 조치 목록에 개별 조치 항목이 추가됩니다.
이렇게 하면 기존 경보 조치 그룹에 경보 조치가 추가됩니다.
요청 예:
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"
}
}
이렇게 하면 기존 경보 조치가 수정됩니다.
요청 예:
PUT /api/alert/v1/actions/actions-001/action-000 HTTP/1.1
Host: zfssa.example.com:215
X-Auth-Session: uerqghq84vbdv
Content-Type: application/json
Content-Length: 28
{"address": "Joseph.Admin@acme.com"}
응답 예:
HTTP/1.1 202 Accepted
X-Zfssa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 176
X-Zfssa-Version: jkremer/generic@2013.06.08,1-0
{
"action": {
"href": "/api/alert/v1/actions/actions-001
/action-000",
"handler": "email",
"address": "Joseph.Admin@acme.com",
"subject": "CPU Busy"
}
}
지정된 경보 조치의 경우 단일 조치가 삭제될 수 있습니다. 조치를 삭제하려면 DELETE 요청을 조치 href 등록 정보에 전송합니다.
조치를 삭제하는 요청의 예:
DELETE /api/alert/v1/actions/actions-001/action-000 HTTP/1.1 Host: zfssa.example.com:215 X-Auth-Session: uerqghq84vbdv HTTP/1.1 204 No Content