ローカルキャプチャレポートのアップロードを作成する
POST /api/v1/collector-captures
所見をアップロードし、生 PCAP バイト列は送信しません。元の認証情報がレポートを所有します。エージェントには現在のキャプチャジョブリースと一致するスキャナー取得が必要です。単独アップロードには管理者、アナリスト、ingestor が必要です。ワークスペース当たりアクティブレポートは二つ、ジョブ試行当たり一レポートで、一時間で期限切れになります。要求 ID は不変メタデータに結び付きます。キャプチャダイジェストはコレクターの宣言であり、サービスがローカルキャプチャを独立検査することはありません。
許可されるロール: admin, analyst, ingestor, agent.
認証
以下の OpenAPI の選択肢は、受け付ける認証方式を示します。ブラウザーからの変更には、正規の Origin ヘッダーも必要です。
[
{
"organizationCredential": []
},
{
"browserSession": []
}
]
パラメーター
[]
リクエスト本文
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"manifest": {
"$ref": "#/components/schemas/CollectorCaptureManifest"
},
"leaseToken": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"required": [
"manifest"
]
}
}
}
}
レスポンス
{
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CollectorCapture"
}
}
}
},
"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 を説明します。