Search
Run a multi-condition search across assets and their related data (results, logs, snmpscanner, inventory_sections, software_dictionary_entries).
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
Payload accepted by POST /search/.
search_data is a list of AND-groups; groups are combined using each group's first condition 'link' (AND/OR).
If true, results are grouped by asset with a single matched row per relation.
trueIf true, one row is returned per matched related record instead of one per asset.
false123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100POST /search/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 178
"search_data=[[{'object':'text','route':'text','field':'text','fieldtype':'text','operator':'text','value':null,'link':'AND','section':'text'}]]&grouped=true&ungroup=false"{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"id": 1,
"name": "text",
"description": "text",
"serial": "text",
"osname": "text",
"osversion": "text",
"uuid": "text",
"srcip": "text",
"srcmac": "text",
"domain": "text",
"agent": "text",
"template": 1,
"last_update": "2026-01-01T00:00:00.000Z",
"is_template_forced": true,
"matched": "text"
}
]
}Return the list of objects that the user can see (public, private_personal, private_group)
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /search/save/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"id": 1,
"visibility": "public",
"allow_group_modification": true,
"search": null,
"last_updated": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"user": 1,
"groups": [
1
]
}
]
}Handle post request, suitable for single and multi creation
Args: request ([dict]): can be dict or list of dicts
Returns: [type]: [description]
Token-based authentication with required prefix "Token"
This serialize class provide the API representation
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
This serialize class provide the API representation
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
POST /search/save/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 126
"visibility='public'&allow_group_modification=true&search=null&name='text'&description='text'&user=1&groups=[1]"{
"id": 1,
"visibility": "public",
"allow_group_modification": true,
"search": null,
"last_updated": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"user": 1,
"groups": [
1
]
}This class will define the view behavior
Inherits from RestrictVisibilityViewSet to restrict the visibility of the Search objects based on user and group membership
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this search.
This serialize class provide the API representation
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
GET /search/save/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"visibility": "public",
"allow_group_modification": true,
"search": null,
"last_updated": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"user": 1,
"groups": [
1
]
}User needs to either be the creator or part of the group (if allow_group_modification is enabled) to modify a visibility restricted object
Token-based authentication with required prefix "Token"
A unique integer value identifying this search.
This serialize class provide the API representation
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
This serialize class provide the API representation
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
PUT /search/save/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 126
"visibility='public'&allow_group_modification=true&search=null&name='text'&description='text'&user=1&groups=[1]"{
"id": 1,
"visibility": "public",
"allow_group_modification": true,
"search": null,
"last_updated": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"user": 1,
"groups": [
1
]
}User needs to be the creator to delete a visibility restricted object
Token-based authentication with required prefix "Token"
A unique integer value identifying this search.
No response body
No content
DELETE /search/save/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
This class will define the view behavior
Inherits from RestrictVisibilityViewSet to restrict the visibility of the Search objects based on user and group membership
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this search.
This serialize class provide the API representation
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
This serialize class provide the API representation
public- Publicprivate_personal- Private (Personal)private_group- Private (Group)
PATCH /search/save/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 126
"visibility='public'&allow_group_modification=true&search=null&name='text'&description='text'&user=1&groups=[1]"{
"id": 1,
"visibility": "public",
"allow_group_modification": true,
"search": null,
"last_updated": "2026-01-01T00:00:00.000Z",
"name": "text",
"description": "text",
"user": 1,
"groups": [
1
]
}Last updated

