Discard pending settings
Sets each override that waits for its apply back to its applied value, removes the overrides that no workflow applied, and sets the HBA rules back to the applied rules (ADR D7). A failed apply can leave new values in the DCS, so first the console writes the applied values of the PostgreSQL overrides back into the DCS; when Patroni does not answer, it answers 502 and discards nothing. It answers 409 when settings_version is old or while a workflow runs on the service. With nothing to discard, it changes nothing.
/api/v1/database-services/{id}/settings/discardtse_sessionAPI key · cookierequiredidstringrequiredapplication/jsonsettings_versioninteger<int64>requiredThe version that the user saw.
OK
discardedstring[]requiredThe names of the overrides that the discard set back.
hbabooleanrequiredThe discard set the HBA rules back to the applied rules.
settings_versioninteger<int64>requiredError
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message