Retrieve discovered databases in a PostgreSQL target. With refresh=true an organization admin starts discovery as POST /targets/{id}/discover does.
Parameters
Target ID (UUID)
Start discovery of the target. Organization admins only, a viewer gets 403
Responses
OK
DiscoveryResourceResponse · 3 fields
Included when refresh=true triggers async job
2 fields
Timestamp of the discovery data
Whether the cache is considered stale
Discovery started (refresh=true by an organization admin)
With refresh=true only. Discovery of the target is paused after failed runs (code target.operation_backoff_active), or the target is being deleted (code cleanup_in_progress), or discovery already runs on this target or waits for its next attempt (code operation.already_running: details.existing_job_id and resources with relation running_operation name that job, details.started_at is when it was started, resolution.code operation.view_running opens it). Nothing was queued.
Common errors: 400 401 403 404 429 504. They mean the same for every operation, see Errors.