範囲を限定した SSH ホスト鍵インベントリを送信する
POST /api/v1/jobs/{id}/ssh-inventory
現在のインベントリジョブ許可と、一致するエージェントプロセス/スキャナーおよびターゲット/ソース/ピンが必要です。所見、範囲、アーカイブ作業、受領はアトミックです。同一再試行は証拠を重複せず同じ受領を返し、変更レポートは競合します。リモートアップロードはオペレーター/プール/実行/メンバーの認可を再検査し、ゾーン範囲の資産 ID を使用します。一般観測ではこの証明を置き換えられません。範囲が不完全ならジョブを別途 partial として完了してください。ピンが信頼するのは baseline 鍵のみで、インベントリは網羅的ではありません。
許可されるロール: agent.
認証
以下の OpenAPI の選択肢は、受け付ける認証方式を示します。ブラウザーからの変更には、正規の Origin ヘッダーも必要です。
[
{
"organizationCredential": []
},
{
"browserSession": []
}
]
パラメーター
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]
リクエスト本文
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"leaseToken": {
"type": "string"
},
"report": {
"$ref": "#/components/schemas/SshHostKeyInventory"
}
},
"required": [
"leaseToken",
"report"
]
}
}
}
}
レスポンス
{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"accepted": {
"type": "integer",
"minimum": 1,
"maximum": 5
},
"assetIds": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"maxItems": 5
},
"fingerprint": {
"type": "string"
},
"at": {
"type": "string",
"format": "date-time"
},
"replayed": {
"type": "boolean"
}
},
"required": [
"accepted",
"assetIds",
"fingerprint",
"at"
]
}
}
}
},
"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 を説明します。