GET/api/v2/targets/{id}/hba/rules
targets:readAPI token
Retrieve all pg_hba.conf rules for a PostgreSQL target
Parameters
Path1 required of 1
idstringpathrequired
Target ID (UUID)
Responses
200
OK
HBARulesResponse · 3 fields
pathstring
rulesarray of HBARuleResponse
9 fields
addressstring
commentstring
databasestring
managedboolean
methodstring (HBAAuthMethod)
trustrejectmd5passwordscram-sha-256gsssspiidentpeerldapradiuscertpamoptionsstring
policy_idstring
typestring (HBARuleType)
localhosthostsslhostnossluserstring
total_rulesinteger
422
The target is not PostgreSQL: HBA management works only for PostgreSQL targets (request.unprocessable).
Common errors: 400 401 403 404 429 504. They mean the same for every operation, see Errors.