Skip to main content
POST
/
api
/
v1
/
cert-manager
/
discovery-jobs
cURL
curl --request POST \
  --url https://us.infisical.com/api/v1/cert-manager/discovery-jobs \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectId": "<string>",
  "name": "<string>",
  "targetConfig": {
    "ipRanges": [
      "<string>"
    ],
    "domains": [
      "<string>"
    ],
    "ports": "443, 8443, 636, 993, 995"
  },
  "description": "<string>",
  "discoveryType": "network",
  "isAutoScanEnabled": false,
  "scanIntervalDays": 183,
  "gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "projectId": "<string>",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "discoveryType": "network",
  "targetConfig": "<unknown>",
  "isAutoScanEnabled": false,
  "scanIntervalDays": 123,
  "gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "isActive": true,
  "lastScanStatus": "<string>",
  "lastScanJobId": "<string>",
  "lastScanMessage": "<string>",
  "lastScannedAt": "2023-11-07T05:31:56Z"
}

Body

application/json
projectId
string
required

The ID of the project

name
string
required

Name of the discovery configuration

Required string length: 1 - 100
targetConfig
object
required

Target configuration for discovery scans

description
string

Description of the discovery configuration

Maximum string length: 500
discoveryType
enum<string>
default:network

Type of discovery scan

Available options:
network
isAutoScanEnabled
boolean
default:false

Enable automatic scheduled scans

scanIntervalDays
number

Interval in days between automatic scans

Required range: 1 <= x <= 365
gatewayId
string<uuid>

Gateway ID for scanning private networks

Response

Default Response

id
string<uuid>
required
projectId
string
required
name
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
description
string | null
discoveryType
string
default:network
targetConfig
any
isAutoScanEnabled
boolean
default:false
scanIntervalDays
number | null
gatewayId
string<uuid> | null
isActive
boolean
default:true
lastScanStatus
string | null
lastScanJobId
string | null
lastScanMessage
string | null
lastScannedAt
string<date-time> | null