Create IP Block
Add an IP to a list of blocked IPs.
URL
/api/v1/nacl/[type]
HTTP Method
POST
URL Parameters
Parameter |
Required |
Type |
Description |
---|---|---|---|
type |
true |
string |
Specifies the IPSet to add the block to: dos, policy, or permanent |
Response Parameters
None
Example: Create IP block
Request
POST
/api/v1/nacl/permanent
cURL
$ curl -v -k -u api_ninja:ninja_password -XPOST -d '[ "150.1.2.4/32" ]' \
https://172.31.1.172:4849/api/v1/nacl/permanent
Response
[
]