Skip to main content

Submit a bounded SSH host-key inventory

POST /api/v1/jobs/{id}/ssh-inventory

Requires a current inventory job grant, matching agent process/scanner and target/source/pin. Findings, coverage, archive work and receipt are atomic. Identical retries return the same receipt without duplicate evidence; changed reports conflict. Remote uploads recheck operator/pool/run/member authorization and use zone-scoped asset identities. Generic observations cannot replace this proof. Complete the job separately as partial when coverage is incomplete. Pins trust only the baseline key; inventory is not exhaustive.

Allowed roles: agent.

Authentication​

The following OpenAPI alternatives describe accepted authentication. Browser mutations also require the canonical Origin header.

[
{
"organizationCredential": []
},
{
"browserSession": []
}
]

Parameters​

[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]

Request body​

{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"leaseToken": {
"type": "string"
},
"report": {
"$ref": "#/components/schemas/SshHostKeyInventory"
}
},
"required": [
"leaseToken",
"report"
]
}
}
}
}

Responses​

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

References such as #/components/schemas/Asset resolve in shared schemas. Download the OpenAPI contract for client generation. This page is generated; it describes the implemented development API, not planned endpoints.