Skip to main content

Hosts

List all hosts

Request

Definition

GET /api/v1/hosts

Headers

  • Authorization required

    Authentication token with privileges to view the resource.

    Bearer {token}

Query string parameters

ParameterTypeRequiredDescription
paginatebooleanYesIf the result must be paginated.
pageintegerYes if paginate is truePage index.
page_sizeintegerYes if paginate is trueNumber of items displayed per page.
host_name_searchstringNoFilters Hosts whose names match all or part of the string entered.
host_name_listarray<string>NoFilters Hosts whose names match any of the names in the list.
server_addressstringNoFilters Hosts whose server IP address matches the string entered.
unrelatedbooleanNoFilters Hosts that are not associated with a Domain Group.

Response

Status codes

Status codeMessage
200"List of hosts"
400"Error with pagination fields"
403"Forbidden"

Body

  • data.hosts.id string

    Host ID.

  • data.hosts.first_seen integer

    Date of the first appearance of the Host.

  • data.hosts.last_seen integer

    Date of the last appearance of the Host.

  • data.hosts.name string

    Host name.

  • data.hosts.servers array<string>

    Servers to which the Host belongs.

  • data.hosts.traffic_sources array<string>

    Traffic sources configured for the Host.

Delete specific host

Request

Definition

DELETE /api/v1/hosts/{id}

Headers

  • Authorization required

    Authentication token with privileges to view the resource.

    Bearer {token}

Response

Status codes

Status codeMessage
200"Hosts succesfully deleted"
400"Error deleting hosts"
403"Forbidden"

Body

{
"message": "Hosts succesfully deleted",
"status": "ok"
}

Delete multiple hosts

Request

Definition

DELETE /api/v1/hosts

Headers

  • Authorization required

    Authentication token with privileges to view the resource.

    Bearer {token}
  • Content-Type required

    application/json

Request body

{
"host_ids": [
"kb+UUJ95RqfrIPfmjphO3UEZGo2Nq4pbAp0yNWgnZrc="
]
}

Response

Status codes

Status codeMessage
200"Hosts succesfully deleted"
400"Error deleting hosts"
403"Forbidden"

Body

{
"message": "Hosts succesfully deleted",
"status": "ok"
}