Docs
Live demo
POST/api/v2/targets/{id}/discover

Trigger a discovery job to scan the target for databases, schemas, tables, and roles

Parameters

Path1 required of 1
idstringpathrequired

Target ID (UUID)

Responses

202

Accepted

DiscoverResponse · 5 fields
instance_idstring

Legacy field for v1 API

job_idstring
job_typestring

Job type identifier

messagestring
target_idstring

New field for v2 API

409

Discovery of the target is paused after failed runs (code target.operation_backoff_active, resolution upstream.check_connection. A passing connection check after the last failure lets this request end the pause), target mutations are paused, or the target is being deleted (code cleanup_in_progress). Code operation.already_running: discovery already runs on this target or waits for its next attempt. Nothing was queued. details.existing_job_id and resources (relation running_operation) name that job, details.started_at is when it was started, details.next_attempt_at when a job that waits between attempts tries again, and resolution.code operation.view_running opens it. The same request is accepted again after that job ends.

Common errors: 400 401 403 404 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close