Get IP Blocks

Obtains list of blocked IPs.

URL

/api/v1/nacl/[type]

HTTP Method

GET

URL Parameters

Parameter

Required

Type

Description

type

true

string

Specifies the IPSet to return blocks for: dos, policy, or permanent

Response Parameters

Returns an array of strings containing IP addresses.

Example: Get IP block

Request

GET

/api/v1/nacl/permanent

cURL

$ curl -k -u api_ninja:ninja_password https://172.31.1.172:4849/api/v1/nacl/permanent | jq .

Response

[

"150.1.2.4",

"150.1.2.2"

]