---
title: "POST /api/v1/cert-manager/discovery-jobs"
method: POST
path: "/api/v1/cert-manager/discovery-jobs"
tags: ["PKI Discovery"]
---

# POST /api/v1/cert-manager/discovery-jobs

`POST /api/v1/cert-manager/discovery-jobs`

Create a new PKI discovery configuration

## Request body

- object
  - `name` string, required — Name of the discovery configuration
  - `description` string — Description of the discovery configuration
  - `discoveryType` 'network' — Type of discovery scan
  - `targetConfig` object, required — Target configuration for discovery scans
    - `ipRanges` string[]
    - `domains` string[]
    - `ports` string
  - `isAutoScanEnabled` boolean — Enable automatic scheduled scans
  - `scanIntervalDays` number — Interval in days between automatic scans
  - `gatewayId` string, uuid — Gateway ID for scanning private networks
  - `gatewayPoolId` string, uuid — Gateway pool ID for scanning private networks

## Response `200`

Default Response

- object
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `discoveryType` string
  - `targetConfig` unknown
  - `isAutoScanEnabled` boolean
  - `scanIntervalDays` number, nullable
  - `gatewayId` string, uuid, nullable
  - `isActive` boolean
  - `lastScanStatus` string, nullable
  - `lastScanJobId` string, nullable
  - `lastScanMessage` string, nullable
  - `lastScannedAt` string, date-time, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `gatewayPoolId` string, uuid, nullable

## 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/885aef3e6c11/schema)
