Networks
This class will define the view behavior
Args: viewsets ([OCSVIewSet])
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 /networks/ 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,
"nettag": "text",
"name": "text",
"description": "text",
"netid": "text",
"mask": "text",
"netdevices": [
{
"id": 1,
"ip": "text",
"netname": "text",
"mac": "text",
"network": 1,
"last_seen": "2026-01-01T00:00:00.000Z"
}
],
"group": 1,
"last_update": "2026-01-01T00:00:00.000Z"
}
]
}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
This serialize class provide the API representation
POST /networks/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 162
"nettag='text'&name='text'&description='text'&netid='text'&mask='text'&netdevices=[{'ip':'text','netname':'text','mac':'text','network':1}]&group=1"{
"id": 1,
"nettag": "text",
"name": "text",
"description": "text",
"netid": "text",
"mask": "text",
"netdevices": [
{
"id": 1,
"ip": "text",
"netname": "text",
"mac": "text",
"network": 1,
"last_seen": "2026-01-01T00:00:00.000Z"
}
],
"group": 1,
"last_update": "2026-01-01T00:00:00.000Z"
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this network.
This serialize class provide the API representation
GET /networks/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"nettag": "text",
"name": "text",
"description": "text",
"netid": "text",
"mask": "text",
"netdevices": [
{
"id": 1,
"ip": "text",
"netname": "text",
"mac": "text",
"network": 1,
"last_seen": "2026-01-01T00:00:00.000Z"
}
],
"group": 1,
"last_update": "2026-01-01T00:00:00.000Z"
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this network.
This serialize class provide the API representation
This serialize class provide the API representation
PUT /networks/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 162
"nettag='text'&name='text'&description='text'&netid='text'&mask='text'&netdevices=[{'ip':'text','netname':'text','mac':'text','network':1}]&group=1"{
"id": 1,
"nettag": "text",
"name": "text",
"description": "text",
"netid": "text",
"mask": "text",
"netdevices": [
{
"id": 1,
"ip": "text",
"netname": "text",
"mac": "text",
"network": 1,
"last_seen": "2026-01-01T00:00:00.000Z"
}
],
"group": 1,
"last_update": "2026-01-01T00:00:00.000Z"
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this network.
No response body
No content
DELETE /networks/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this network.
This serialize class provide the API representation
This serialize class provide the API representation
PATCH /networks/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 162
"nettag='text'&name='text'&description='text'&netid='text'&mask='text'&netdevices=[{'ip':'text','netname':'text','mac':'text','network':1}]&group=1"{
"id": 1,
"nettag": "text",
"name": "text",
"description": "text",
"netid": "text",
"mask": "text",
"netdevices": [
{
"id": 1,
"ip": "text",
"netname": "text",
"mac": "text",
"network": 1,
"last_seen": "2026-01-01T00:00:00.000Z"
}
],
"group": 1,
"last_update": "2026-01-01T00:00:00.000Z"
}Last updated

