Check config file drift
Runs one SSH command on each PostgreSQL server of the service. A file that Ansible writes and that changed since its latest version has drifted: the console stores the new version with the source drift. Refused with 409 while a workflow of the service runs, or when one starts during the read.
/api/v1/database-services/{id}/config-files/checktse_sessionAPI key · cookierequiredidstringrequiredOK
checked_atstring<date-time>The time of the latest drift check since the console started
driftedbooleanrequiredA file of a server has drifted
errorsConfigFileReadError[]requiredThe servers that the check could not read
Show propertiesHide properties
ConfigFileReadErrormessagestringrequiredserver_idstringrequiredserver_namestringrequiredserversConfigFileServer[]requiredShow propertiesHide properties
ConfigFileServerfilesConfigFileEntry[]requiredShow propertiesHide properties
ConfigFileEntrydrift_checkedbooleanrequiredAnsible writes the file, so a change outside the console is drift
driftedbooleanrequiredThe latest version is a change outside the console. The next apply or deploy writes the file again
filestringrequiredpatroni.yml, postgresql.conf, postgresql.auto.conf, pg_hba.conf, pgbouncer.ini (pgbouncer-N.ini for each further PgBouncer process) or haproxy.cfg
pathstringrequiredThe path of the latest version on the server
versionsConfigFileVersion[]requiredThe newest first
Show propertiesHide properties
ConfigFileVersionidstringrequiredredactedbooleanrequiredfalse: the console could not redact this version, and keeps only its hash
sha256stringrequiredThe hash of the file on the server, before the redaction. A password change gives a new hash with the same redacted text
sourcestringrequiredworkflow: read after a workflow, or the first read. patroni: Patroni wrote postgresql.conf. drift: changed outside the console
workflowpatronidrifttaken_atstring<date-time>requiredworkflow_idstringThe workflow after which the console read the version
server_idstringrequiredserver_namestringrequiredEmpty when the server is no longer in the console
Error
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message