GET/api/v2/resources/targets/{id}/subject-access
targets:readAPI token
Return live database access state for a single discovered PostgreSQL, MariaDB, or ClickHouse subject.
Parameters
Path and query2 required of 3
idstringpathrequired
Target ID (UUID)
subject_namestringqueryrequired
Database subject name
subject_hoststringquery
Optional MySQL/MariaDB subject host. When omitted, legacy username-wide lookup is used.
Responses
200
OK
TargetSubjectAccessResponse · 8 fields
grantsarray of TargetSubjectGrantResponse
6 fields
databasestring
namestring
privilegesarray of string
schemastring
tablestring
typestring
Grant scope. MySQL/MariaDB global grants use "global" and represent account-level . privileges.
globaldatabaseschematablesequencefunctiontypekindstring (TargetKind)
postgreskubernetesmysqlclickhousemongodbapplicationsshmembershipsarray of string
partialboolean
subject_namestring
subject_hoststring
target_idstring
warningsarray of string
Common errors: 400 401 403 404 429 504. They mean the same for every operation, see Errors.