Skip to content

API Setup

Lukas Metzger edited this page Apr 29, 2018 · 5 revisions

Setup

This API is only used for the initial setup. It is only available if no config file is present.

Set up PDNS manager

POST /setup

{
  "db": {
    "host": "localhost",
    "user": "pdns",
    "password": "pdns",
    "database": "localhost",
    "port": 3306
  },
  "admin": {
    "name": "initaladmin",
    "password": "foo"
  }
}

Response

code result
204 Everything was successful the answer is therefore empty
400 The supplied body was empty
404 If the application has already been setup
422 One of the required fields is missing
500 Error on setup, message in data!

If an error occurred a message is returned.

{
  "error": "Error message!"
}
Clone this wiki locally