---
search:
  tags:
    - database-services
    - POST
seo:
  description: >-
    Runs one SSH command on each PostgreSQL… Reference for the POST
    /api/v1/database-services/{id}/config-files/check endpoint in the
    TimescaleDB Enterprise API.
sidebar:
  label: Check config file drift
  badge: POST
title: Check config file drift
type: openapi-operation
---
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.

`POST /api/v1/database-services/{id}/config-files/check`

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
{
  "checked_at": "2019-08-24T14:15:22Z",
  "drifted": true,
  "errors": [
    {
      "message": "string",
      "server_id": "string",
      "server_name": "string"
    }
  ],
  "servers": [
    {
      "files": [
        {
          "drift_checked": true,
          "drifted": true,
          "file": "string",
          "path": "string",
          "versions": [
            {
              "id": "string",
              "redacted": true,
              "sha256": "string",
              "source": "workflow",
              "taken_at": "2019-08-24T14:15:22Z",
              "workflow_id": "string"
            }
          ]
        }
      ],
      "server_id": "string",
      "server_name": "string"
    }
  ]
}
```
