The API reference is in English.

Immutable source snapshot

POST /v1/scanner/cache/verification/retry

Retry scanner cache verification. Permissions, parameters, responses and examples.

0.1.0 · source bccff29 · Current reference · Download OpenAPI specification

This address preserves one reviewed source snapshot. Use the current entry point for the selected documentation version.

Retry scanner cache verification

Retry one exact failed runtime observation, never a cache update job.

Source preview; no stable third-party integration promise. This page makes no request to a local installation.

Authority

Browser operator session only at the middleware boundary. Route-specific ownership and generation checks also apply.

Browser mutations require the exact control Origin and session-bound CSRF header. IDE callers use only their admitted route scope and exact generation.

Inspect the authority source · Authentication guide

Parameters and headers

NameLocationContract
X-CSRF-Tokenheader
Conditional / optional

Required for browser mutations with the exact control Origin. Not an IDE capability.

Schema
{
  "type": "string"
}
Idempotency-Keyheader
Required

Required for command submission; for bulk findings, only the triage action. Stable key for the same exact command, beginning with a letter or digit. Reuse with different content conflicts.

Schema
{
  "maxLength": 160,
  "minLength": 8,
  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,159}$",
  "type": "string"
}

Request body

JSON body · required · ScannerCacheVerificationRetryRequest

FieldTypePresence
expected_generationstringRequired
targetstringRequired
Complete declared request schema
{
  "additionalProperties": false,
  "properties": {
    "expected_generation": {
      "pattern": "^[0-9a-f]{64}$",
      "title": "Expected Generation",
      "type": "string"
    },
    "target": {
      "enum": [
        "active",
        "previous_good"
      ],
      "title": "Target",
      "type": "string"
    }
  },
  "required": [
    "target",
    "expected_generation"
  ],
  "title": "ScannerCacheVerificationRetryRequest",
  "type": "object"
}

Responses

StatusMeaning and declared shape
202

Successful Response

application/json · ScannerCacheVerificationOut
{
  "additionalProperties": false,
  "properties": {
    "bytes_total": {
      "anyOf": [
        {
          "maximum": 8589934592,
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Bytes Total"
    },
    "bytes_verified": {
      "anyOf": [
        {
          "maximum": 8589934592,
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Bytes Verified"
    },
    "component_id": {
      "anyOf": [
        {
          "enum": [
            "trivy-db",
            "trivy-java-db",
            "trivy-checks",
            "opengrep-reviewed-rules",
            "bearer-rules",
            "grype-db"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Component Id"
    },
    "generation_id": {
      "pattern": "^[0-9a-f]{64}$",
      "title": "Generation Id",
      "type": "string"
    },
    "last_activity_at": {
      "maxLength": 32,
      "title": "Last Activity At",
      "type": "string"
    },
    "phase": {
      "enum": [
        "queued",
        "validating",
        "hashing"
      ],
      "title": "Phase",
      "type": "string"
    },
    "started_at": {
      "maxLength": 32,
      "title": "Started At",
      "type": "string"
    },
    "state": {
      "enum": [
        "verifying",
        "timed_out",
        "failed"
      ],
      "title": "State",
      "type": "string"
    },
    "target": {
      "enum": [
        "active",
        "previous_good"
      ],
      "title": "Target",
      "type": "string"
    }
  },
  "required": [
    "state",
    "target",
    "generation_id",
    "phase",
    "component_id",
    "started_at",
    "last_activity_at",
    "bytes_verified",
    "bytes_total"
  ],
  "title": "ScannerCacheVerificationOut",
  "type": "object"
}
400

Exact host, malformed request or URL credential refusal

application/json · object
{
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}
401

Missing or invalid membership

application/json · object
{
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}
403

Exact origin, CSRF or route authority refusal

application/json · object
{
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}
409

Refresh current revision and identity. A conflicting command must not be blindly repeated. See source-linked error catalog.

422

Validation Error

application/json · HTTPValidationError
{
  "properties": {
    "detail": {
      "items": {
        "$ref": "#/components/schemas/ValidationError"
      },
      "title": "Detail",
      "type": "array"
    }
  },
  "title": "HTTPValidationError",
  "type": "object"
}
429

Authentication rate or connection limit

application/json · object
{
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}
502

Reconcile the downstream service result before deciding whether to retry. See source-linked error catalog.

503

Check readiness and the recorded job state. A healthy control plane does not prove scanner readiness. See source-linked error catalog.

An empty or broad schema preserves the source contract. It is not a promise of an empty response.

Source-linked errors

Literal HTTP errors in this handler and same-file helper call graph, plus control middleware. Dynamic and cross-module failures may add other errors; source links are authoritative.

5 source error observations
StatusSource detailRecovery
503 ↗Dynamic detail; inspect sourceCheck readiness and the recorded job state. A healthy control plane does not prove scanner readiness.
502 ↗Dynamic detail; inspect sourceReconcile the downstream service result before deciding whether to retry.
409 ↗Dynamic detail; inspect sourceRefresh current revision and identity. A conflicting command must not be blindly repeated.
401 ↗authentication requiredReconcile the exact browser or IDE membership through the normal owner workflow.
422 ↗Idempotency-Key must contain 8-160 ASCII letters, digits, '.', '_', ':', or '-'Correct the field or semantic validation error. Input values are omitted from control validation errors.

Read the recovery guide

Synthetic examples

These examples validate declared JSON shapes and formats. They contain no real installation data and do not prove runtime admission, cross-field validation, authority or successful work.

Request JSON
{
  "expected_generation": "0000000000000000000000000000000000000000000000000000000000000000",
  "target": "active"
}
Response 202 JSON
{
  "bytes_total": 1,
  "bytes_verified": 1,
  "component_id": "trivy-db",
  "generation_id": "0000000000000000000000000000000000000000000000000000000000000000",
  "last_activity_at": "synthetic",
  "phase": "queued",
  "started_at": "synthetic",
  "state": "verifying",
  "target": "active"
}
Download this service's complete OpenAPI

All referenced models remain in its components section. Browse control model definitions.