tsig

Creates a new TSIG key.

This endpoint creates a new TSIG key, allowing users to configure secure key-based authentication for DNS transactions.</br></br>Key features include:</br></br>- Clear success messaging: Returns a 200 success code with a confirmation message indicating the successful completion of the requested action.</br>- Comprehensive error handling: Returns a 400 error code with a clear description when requests fail.</br>- Seamless TSIG key creation: Facilitates the creation of a TSIG key in-line with the appropriate schema, ensuring smooth and efficient organization.

post/tsig

Request

Request body

namestring
tsigAlgorithmstring
tsigSecretstring

Example request

{
  "name": "MyIPSet",
  "tsigAlgorithm": "hmac-sha256",
  "tsigSecret": "bMXYjKzZq6eW0bJY9S4TbXnDylK2gpoDQ7kY5XyW3OY="
}

Response

TSIG key created successfully.

idinteger
namestring
tsigAlgorithmstring
tsigSecretstring
createdTsstring
modifiedTsstring

Example response

{
  "id": 1,
  "name": "MyIPSet",
  "tsigAlgorithm": "hmac-sha256",
  "tsigSecret": "bMXYjKzZq6eW0bJY9S4TbXnDylK2gpoDQ7kY5XyW3OY=",
  "createdTs": "2024-02-01 14:02:58.325993",
  "modifiedTs": "2024-02-01 14:02:58.325993",
  "domains": [
    {
      "id": 1,
      "name": "example.com"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.