/v1/api/ipLists/{id}/contents (GET) - BlueCat DNS Edge

DNS Edge API Guide

prodname
BlueCat DNS Edge

Returns the IP list contents by ID.

GET https://api-<DNS.Edge.URL>/v1/api/ipLists/{id}/contents
Authorization: Bearer token

Parameters

Name Description Type Required
id The ID of the IP list. String Required

Successful response

200 OK
Content-Type: application/JSON
            
[
          
     "192.168.0.1/32"
     "192.168.0.0/24"
            
]

OR

200 OK
Content-Type: text/plain

192.168.0.1/32\n
192.168.0.0/24

Response on unsuccessful authorization

401 Unauthorized
Content-Type: application/JSON
{"code": "UNAUTHORIZED", "brief": "You are not authorized to perform this action"}
Possible error codes
  • 404 IP List was not found
  • 500 Internal Server Error