This API is used to manage autoprimaries.
GET
/servers/{server_id}/autoprimaries
¶Get a list of autoprimaries
Parameters: |
|
---|---|
Status Codes: |
|
POST
/servers/{server_id}/autoprimaries
¶Add an autoprimary
This methods add a new autoprimary server.
Parameters: |
|
---|---|
Status Codes: |
|
DELETE
/servers/{server_id}/autoprimaries/{ip}/{nameserver}
¶Delete the autoprimary entry
Parameters: |
|
---|---|
Status Codes: |
|
An autoprimary object represents a single autoprimary server.
Autoprimary
¶An autoprimary server that can provision new domains.
Object Properties: | |
---|---|
|
GET /servers/localhost/autoprimaries HTTP/1.1
X-Api-Key: secret
Content-Type: application/json
Will yield a response similar to this (several headers omitted):
HTTP/1.1 200 Ok
Content-Type: application/json
[{"ip":"192.0.2.1","nameserver":"ns.example.com","account":""},{"ip":"192.0.2.50","nameserver":"ns.example.org","account":"example"}]
POST /servers/localhost/autoprimaries HTTP/1.1
X-Api-Key: secret
Content-Type: application/json
{"ip":"192.0.2.1","nameserver":"ns.example.com","account":""}
Will yield a response similar to this (several headers omitted):
HTTP/1.1 201 Created
DELETE /servers/localhost/autoprimaries/192.0.2.1/ns.example.com HTTP/1.1
X-Api-Key: secret
Content-Type: application/json
Will yield a response similar to this (several headers omitted):
HTTP/1.1 204 No Content