Blocklist
Create a blocklist with an array of blocked hostnames
Body
namestringRequired
hostnamesstring[]Required
Responses
200Success
application/json
default
application/json
post
/servers/blocklistPOST /v1/servers/blocklist HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"name": "text",
"hostnames": [
"text"
]
}{
"blocklist_id": "text",
"name": "text",
"blocked_hosts": [
"text"
]
}Fetch a blocklist and its blocked hosts by blocklist ID
Path parameters
idstring · uuidRequired
Responses
200Success
application/json
default
application/json
get
/servers/blocklist/{id}GET /v1/servers/blocklist/{id} HTTP/1.1
Host:
Accept: */*
{
"blocklist_id": "text",
"name": "text",
"blocked_hosts": [
"text"
]
}Delete a blocklist and the associated blocked hosts. Can only be deleted if no subnet has a relation to a given list.
Path parameters
idstring · uuidRequired
Responses
default
application/json
delete
/servers/blocklist/{id}DELETE /v1/servers/blocklist/{id} HTTP/1.1
Host:
Accept: */*
default
{
"timestamp": "text",
"message": "text",
"domain_error_code": 1
}
