JSON 객체를 포함하는 경보 조치 POST 요청을 만들 때 조치 등록 정보가 /api/alert/v1/alerts/actions에 전송되어야 합니다. 만들 조치 유형을 선택하도록 범주 등록 정보를 설정해야 합니다. 지정된 시스템에서 사용 가능한 모든 범주 값은 CLI 설명서를 참조하십시오.
일반적으로 범주 값에는 다음이 포함됩니다.
"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"
요청 예:
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"}
응답 예:
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 } }