---
title: "GET /api/v1/cert-manager/discovery-jobs/{discoveryId}/latest-scan"
method: GET
path: "/api/v1/cert-manager/discovery-jobs/{discoveryId}/latest-scan"
tags: ["PKI Discovery"]
---

# GET /api/v1/cert-manager/discovery-jobs/{discoveryId}/latest-scan

`GET /api/v1/cert-manager/discovery-jobs/{discoveryId}/latest-scan`

Get the latest scan for a PKI discovery configuration

## Path parameters

- `discoveryId` string, uuid, required

## Response `200`

Default Response

- object, nullable
  - `id` string, uuid, required
  - `discoveryConfigId` string, uuid, required
  - `startedAt` string, date-time, required
  - `completedAt` string, date-time, nullable
  - `status` string, required
  - `targetsScannedCount` number
  - `certificatesFoundCount` number
  - `installationsFoundCount` number
  - `errorMessage` string, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/revisions/c057052770f0/schema)
