/v1/siteTemplates (GET) - BlueCat DNS Edge

DNS Edge API Guide

prodname
BlueCat DNS Edge

Returns all existing site templates.

GET https://api-<DNS.Edge.URL>/v1/api/siteTemplates
Authorization: Bearer authorization token

Successful response

200 OK
Content-type: application/JSON
[
   {
     "id": "f3799d9a-9c5e-11ea-bb37-0242ac130002",
     "name": "Default",
     "associatedNamespaces": [
         {
           "id": "662952c8-be70-4732-bd62-c9e4422fdb0a"
         }, 
         {
           "id": "ded32ece-9c5e-11ea-bb37-0242ac130002"
         }, 
         ...
       ]
   }
]
Returns the following information:
  • ID: The ID of the site template.
  • Name: The name of the site template.
  • Associated namespaces: The namespaces assigned to the site template.

Response on unsuccessful authorization

401 Unauthorized
Content-Type: application/JSON
{"code": "UNAUTHORIZED", "brief": "You are not authorized to perform this action"}
Possible error codes
  • INTERNAL_SERVER_ERROR