Exposures Scanning - Get Evidence

Xray REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Returns evidence for a specific finding.

Since: 3.59.4

Security: Requires a valid user with the "Read" permissions.

Usage: GET /api/v1/{category}/results/details/findings/evidences?repo={repo_name}&path={path}&id={result_id}&finding_idx={finding_idx}&first_evidence_idx={first_evidence_idx}&evidence_count={evidence_count}

Query parameters

  • repo -repository name

  • path -path to artifact

  • id- result identifier

  • finding_idx- finding identifier (0 tototal_findings-1)

  • first_evidence_idx- evidence identifier in the response (0 tototal_evidences- 1)

  • evidence_count- max number of evidences in the response

Produces: application/json

Sample Request

GET /api/v1/secrets/results/details/findings/evidences?repo=the_project&path=/backend/latest/manifest.json&id=EXP-1519-00001&finding_idx=0&first_evidence_idx=0&evidence_count=1

Sample Response

[
    {
        "evidence_idx": 0,
        "evidence_text": "",
        "column_names": [
            "Path",
            "Evidence",
            "Line Number"
        ],
        "cell_type": "values_only",
        "total_rows": 1
    }
]