SIEM: webhook の購読イベントを編集する
POST /api/v1/siem/connections/{id}/subscriptions
ワークスペース管理者、または明示的に siem.manage を付与された現在のブラウザーメンバーが対象です。audit.recorded および/または security.recorded のみを購読する接続だけにアクセスできます。検出/ログ混在接続には一般統合管理が必要です。ここでは削除一覧クエリに対応しません。テストイベントはアクション siem.connection-test の ECS を使用します。listWebhooks の subscriptionRevision を使う管理者専用の楽観的編集です。変更は将来のイベントに影響し、既存の滞留分と配送は宛先を保持します。署名秘密情報、URL、有効状態、テスト検証を保持します。古いリビジョンや取り消し済みエンドポイントは 409 を返します。過去分の補完は行いません。
許可されるロール: admin.
認証
以下の OpenAPI の選択肢は、受け付ける認証方式を示します。ブラウザーからの変更には、正規の Origin ヘッダーも必要です。
[
{
"organizationCredential": []
},
{
"browserSession": []
}
]
パラメーター
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]
リクエスト本文
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
},
"events": {
"type": "array",
"items": {
"enum": [
"audit.recorded",
"security.recorded",
"job.completed",
"job.partial",
"job.failed",
"job.cancelled",
"plan.verified",
"evidence.archived",
"repository-scan.completed",
"repository-scan.failed",
"repository-scan.cancelled",
"cloud-operation.completed",
"cloud-operation.failed",
"cloud-operation.cancelled",
"capture.completed",
"capture.failed",
"capture.cancelled",
"network-scan.completed",
"network-scan.partial",
"network-scan.failed",
"network-scan.cancelled",
"scm-scan.completed",
"scm-scan.failed",
"scm-scan.cancelled"
]
},
"minItems": 1,
"maxItems": 24
}
},
"required": [
"expectedRevision",
"events"
]
}
}
}
}
レスポンス
{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Webhook"
}
}
}
},
"400": {
"description": "Validation error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing/expired/revoked credential",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Insufficient role",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"409": {
"description": "State or idempotency conflict",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"413": {
"description": "Body too large",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Unsupported media type",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"description": "Request budget exhausted; respect Retry-After",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"headers": {
"Retry-After": {
"schema": {
"type": "integer",
"minimum": 1
},
"description": "Seconds until sufficient budget is expected; concurrent traffic may consume replenished capacity."
}
}
},
"500": {
"description": "Internal error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"503": {
"description": "Not configured",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
#/components/schemas/Asset などの参照は、共有スキーマで解決されます。クライアント生成には OpenAPI コントラクトをダウンロードしてください。このページは生成されたもので、計画中のエンドポイントではなく、実装済みの開発 API を説明します。