pdns_auth_user_msec 48
-Prometheus can then be configured to scrape metrics from this endpoint using a simple job description like the following:
-
-.. prometheus scrape-job::
+Prometheus can then be configured to scrape metrics from this endpoint using a simple job description like the following::
scrape_configs:
- job_name: 'pdns_auth'
----------------
To enable the API, the webserver and the HTTP API need to be enabled.
-Add these lines to the ``pdns.conf``::
+Add these lines to ``pdns.conf``::
api=yes
api-key=changeme
- Invalid JSON body from client: ``400 Bad Request``
- Input validation failed: ``422 Unprocessable Entity``
-- JSON body from client not a hash: ``400 Bad Request``
+- JSON body from client is not a hash: ``400 Bad Request``
Error responses have a JSON body of this format:
The ``Accept:`` header determines the output format.
An unknown value or ``*/*`` will cause a ``400 Bad Request``.
-All text is UTF-8 and HTTP headers will reflect this.
+All text is encoded in UTF-8 and HTTP headers will reflect this.
Data types: