New in version 4.2.0.
TSIGKeys can be manipulated via the API.
GET
/servers/{server_id}/tsigkeys
¶Get all TSIGKeys on the server, except the actual key
Parameters: |
|
---|---|
Status Codes: |
|
POST
/servers/{server_id}/tsigkeys
¶Add a TSIG key
This methods add a new TSIGKey. The actual key can be generated by the server or be provided by the client
Parameters: |
|
---|---|
Status Codes: |
|
GET
/servers/{server_id}/tsigkeys/{tsigkey_id}
¶Get a specific TSIGKeys on the server, including the actual key
Parameters: |
|
---|---|
Status Codes: |
|
PUT
/servers/{server_id}/tsigkeys/{tsigkey_id}
¶Only the relevant fields have to be provided in the request body.
Parameters: |
|
---|---|
Status Codes: |
|
DELETE
/servers/{server_id}/tsigkeys/{tsigkey_id}
¶Delete the TSIGKey with tsigkey_id
Parameters: |
|
---|---|
Status Codes: |
|
TSIGKey
¶A TSIG key that can be used to authenticate NOTIFY, AXFR, and DNSUPDATE queries.
Object Properties: | |
---|---|
|
POST /servers/localhost/tsigkeys HTTP/1.1
X-Api-Key: secret
Content-Type: application/json
{"name": "mytsigkey", "algorithm": "hmac-sha256"}
Will yield a response similar to this (several headers omitted):
HTTP/1.1 201 Created
Content-Type: application/json
{"algorithm": "hmac-sha256", "id": "mytsigkey.", "key": "ayZmdUpT5xh7H21p3UUHJWZgF2F2jNncqx5SQkRIWbqReuwieiVBG8jtEieb/njCbjrLtQkjVsgoiKCtsqNsdQ==", "name": "mytsigkey", "type": "TSIGKey"}
PUT /servers/localhost/tsigkeys/mytsigkey. HTTP/1.1
X-Api-Key: secret
Content-Type: application/json
{"name": "mytsigkey", "key": "GQNyFy1QagMUarHmiSgsIJajghdTGJGVcN5TRVwgbclzxGyhQR1uYLCOyJ/uj9uj12jyeLwzJuW12wCI9PYv7Q=="}
HTTP/1.1 200 Ok
Content-Type: application/json
{"algorithm": "hmac-sha256", "id": "mytsigkey.", "key": "GQNyFy1QagMUarHmiSgsIJajghdTGJGVcN5TRVwgbclzxGyhQR1uYLCOyJ/uj9uj12jyeLwzJuW12wCI9PYv7Q==", "name": "mytsigkey", "type": "TSIGKey"}