Snmp
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.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /snmp/config/ 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,
"name": "text",
"version": "1",
"user": "text",
"auth_level": "noAuthNoPriv",
"password": "text",
"auth_protocol": "MD5",
"priv_protocol": "DES",
"priv_password": "text",
"retries": 1,
"timeout": 1,
"subnets": null
}
]
}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 serializer class provide the API representation
1- SNMPv12c- SNMPv2c3- SNMPv3
noAuthNoPriv- noAuthNoPrivauthNoPriv- authNoPrivauthPriv- authPriv
MD5- MD5SHA- SHANone- None
DES- DESAES- AESNone- None
This serializer class provide the API representation
1- SNMPv12c- SNMPv2c3- SNMPv3
noAuthNoPriv- noAuthNoPrivauthNoPriv- authNoPrivauthPriv- authPriv
MD5- MD5SHA- SHANone- None
DES- DESAES- AESNone- None
POST /snmp/config/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 195
"name='text'&version='1'&user='text'&auth_level='noAuthNoPriv'&password='text'&auth_protocol='MD5'&priv_protocol='DES'&priv_password='text'&retries=1&timeout=1&subnets=null"{
"id": 1,
"name": "text",
"version": "1",
"user": "text",
"auth_level": "noAuthNoPriv",
"password": "text",
"auth_protocol": "MD5",
"priv_protocol": "DES",
"priv_password": "text",
"retries": 1,
"timeout": 1,
"subnets": null
}This class will define the view behavior
Args: viewsets ([OCSViewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this snmp config.
This serializer class provide the API representation
1- SNMPv12c- SNMPv2c3- SNMPv3
noAuthNoPriv- noAuthNoPrivauthNoPriv- authNoPrivauthPriv- authPriv
MD5- MD5SHA- SHANone- None
DES- DESAES- AESNone- None
GET /snmp/config/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"name": "text",
"version": "1",
"user": "text",
"auth_level": "noAuthNoPriv",
"password": "text",
"auth_protocol": "MD5",
"priv_protocol": "DES",
"priv_password": "text",
"retries": 1,
"timeout": 1,
"subnets": null
}This class will define the view behavior
Args: viewsets ([OCSViewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this snmp config.
This serializer class provide the API representation
1- SNMPv12c- SNMPv2c3- SNMPv3
noAuthNoPriv- noAuthNoPrivauthNoPriv- authNoPrivauthPriv- authPriv
MD5- MD5SHA- SHANone- None
DES- DESAES- AESNone- None
This serializer class provide the API representation
1- SNMPv12c- SNMPv2c3- SNMPv3
noAuthNoPriv- noAuthNoPrivauthNoPriv- authNoPrivauthPriv- authPriv
MD5- MD5SHA- SHANone- None
DES- DESAES- AESNone- None
PUT /snmp/config/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 195
"name='text'&version='1'&user='text'&auth_level='noAuthNoPriv'&password='text'&auth_protocol='MD5'&priv_protocol='DES'&priv_password='text'&retries=1&timeout=1&subnets=null"{
"id": 1,
"name": "text",
"version": "1",
"user": "text",
"auth_level": "noAuthNoPriv",
"password": "text",
"auth_protocol": "MD5",
"priv_protocol": "DES",
"priv_password": "text",
"retries": 1,
"timeout": 1,
"subnets": null
}This class will define the view behavior
Args: viewsets ([OCSViewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this snmp config.
No response body
No content
DELETE /snmp/config/{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 snmp config.
This serializer class provide the API representation
1- SNMPv12c- SNMPv2c3- SNMPv3
noAuthNoPriv- noAuthNoPrivauthNoPriv- authNoPrivauthPriv- authPriv
MD5- MD5SHA- SHANone- None
DES- DESAES- AESNone- None
This serializer class provide the API representation
1- SNMPv12c- SNMPv2c3- SNMPv3
noAuthNoPriv- noAuthNoPrivauthNoPriv- authNoPrivauthPriv- authPriv
MD5- MD5SHA- SHANone- None
DES- DESAES- AESNone- None
PATCH /snmp/config/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 195
"name='text'&version='1'&user='text'&auth_level='noAuthNoPriv'&password='text'&auth_protocol='MD5'&priv_protocol='DES'&priv_password='text'&retries=1&timeout=1&subnets=null"{
"id": 1,
"name": "text",
"version": "1",
"user": "text",
"auth_level": "noAuthNoPriv",
"password": "text",
"auth_protocol": "MD5",
"priv_protocol": "DES",
"priv_password": "text",
"retries": 1,
"timeout": 1,
"subnets": null
}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.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /snmp/scanner/ 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,
"name": "text",
"ip": "text",
"subnets": null,
"notes": "text",
"last_updated": "2026-01-01T00:00:00.000Z",
"total_scanned": 1,
"total_found": 1,
"last_scan_date": "2026-01-01T00:00:00.000Z",
"configs": [
1
],
"assets": [
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 serializer class provide the API representation
This serializer class provide the API representation
POST /snmp/scanner/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 162
"name='text'&ip='text'&subnets=null¬es='text'&total_scanned=1&total_found=1&last_scan_date='2026-01-01T00:00:00.000Z'&configs=[1]&assets=[1]"{
"id": 1,
"name": "text",
"ip": "text",
"subnets": null,
"notes": "text",
"last_updated": "2026-01-01T00:00:00.000Z",
"total_scanned": 1,
"total_found": 1,
"last_scan_date": "2026-01-01T00:00:00.000Z",
"configs": [
1
],
"assets": [
1
]
}This class will define the view behavior
Args: viewsets ([OCSViewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this snmp scanner.
This serializer class provide the API representation
GET /snmp/scanner/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"name": "text",
"ip": "text",
"subnets": null,
"notes": "text",
"last_updated": "2026-01-01T00:00:00.000Z",
"total_scanned": 1,
"total_found": 1,
"last_scan_date": "2026-01-01T00:00:00.000Z",
"configs": [
1
],
"assets": [
1
]
}This class will define the view behavior
Args: viewsets ([OCSViewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this snmp scanner.
This serializer class provide the API representation
This serializer class provide the API representation
PUT /snmp/scanner/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 162
"name='text'&ip='text'&subnets=null¬es='text'&total_scanned=1&total_found=1&last_scan_date='2026-01-01T00:00:00.000Z'&configs=[1]&assets=[1]"{
"id": 1,
"name": "text",
"ip": "text",
"subnets": null,
"notes": "text",
"last_updated": "2026-01-01T00:00:00.000Z",
"total_scanned": 1,
"total_found": 1,
"last_scan_date": "2026-01-01T00:00:00.000Z",
"configs": [
1
],
"assets": [
1
]
}This class will define the view behavior
Args: viewsets ([OCSViewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this snmp scanner.
No response body
No content
DELETE /snmp/scanner/{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 snmp scanner.
This serializer class provide the API representation
This serializer class provide the API representation
PATCH /snmp/scanner/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 162
"name='text'&ip='text'&subnets=null¬es='text'&total_scanned=1&total_found=1&last_scan_date='2026-01-01T00:00:00.000Z'&configs=[1]&assets=[1]"{
"id": 1,
"name": "text",
"ip": "text",
"subnets": null,
"notes": "text",
"last_updated": "2026-01-01T00:00:00.000Z",
"total_scanned": 1,
"total_found": 1,
"last_scan_date": "2026-01-01T00:00:00.000Z",
"configs": [
1
],
"assets": [
1
]
}Last updated

