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
    }
}