無効な署名付き webhook または Splunk 宛先を作成する
POST /api/v1/webhooks
種別全体で未取り消し宛先は最大 10 件です。Splunk 呼び出し元は UUID の requestId を保持し、作成応答を失った後は同じ本文を再利用してください。入力や主体の変更は 409 を返し、取り消し済みの元宛先は同じ ID で再作成できません。署名付き webhook は公開 HTTPS ポート 443 を使用し、署名秘密情報を一度だけ返します。Splunk は kind=splunk と HEC トークンを使用し、公開 HTTPS イベントエンドポイントはポート 443 または 8088 です。任意でオリジンを /services/collector/event に正規化します。トークンは暗号化し、返しません。ホスト/index/sourcetype/確認応答モードは不変です。URL 認証情報、クエリ文字列、フラグメント、IP リテラルは禁止です。有効化前にテストを送信して保証状態を確認してください。
許可されるロール: admin.
認証
以下の OpenAPI の選択肢は、受け付ける認証方式を示します。ブラウザーからの変更には、正規の Origin ヘッダーも必要です。
[
{
"organizationCredential": []
},
{
"browserSession": []
}
]
パラメーター
[]
リクエスト本文
{
"required": true,
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 100
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"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": [
"name",
"url",
"events"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 100
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"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
},
"kind": {
"const": "splunk"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"token": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"writeOnly": true,
"description": "HEC token. Stored encrypted; never returned."
},
"index": {
"type": "string",
"maxLength": 80,
"pattern": "^[A-Za-z0-9_-]*$",
"default": "",
"description": "Empty uses the HEC token default index."
},
"sourcetype": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.:-]+$",
"default": "sectigo:quantum:ready"
},
"acknowledgements": {
"type": "boolean",
"default": false,
"description": "Enable only when the HEC token and deployment support indexer acknowledgement. Collector acceptance alone will not complete delivery in this mode."
}
},
"required": [
"kind",
"name",
"url",
"token",
"events"
],
"additionalProperties": false
}
]
}
}
}
}
レスポンス
{
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"secret": {
"type": "string"
}
},
"required": [
"secret"
]
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"kind": {
"const": "splunk"
},
"splunk": {
"$ref": "#/components/schemas/SplunkConfiguration"
}
},
"required": [
"kind",
"splunk"
]
}
]
}
]
}
}
}
},
"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 を説明します。