Sections
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.
FILE- Read fileBASH- Bash commandPW- Powershell commandCMD- Cmd commandSNMP_WALK- Walk the SNMP tree starting from a specific OIDSNMP_GET- Get a specific OID
PTXT- Plain textJSON- JSON formatTBLE- Table formatREGX- Regex processingGREP- Grep command output
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /sections/ 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",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"target": "text",
"template": 1,
"fields": [
{
"id": 1,
"name": "text",
"order": 1,
"retrieval_value": "text",
"override_target": true,
"new_target": "text",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"section": 1,
"options": null
}
],
"options": null,
"is_active": true
}
]
}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
FILE- Read fileBASH- Bash commandPW- Powershell commandCMD- Cmd commandSNMP_WALK- Walk the SNMP tree starting from a specific OIDSNMP_GET- Get a specific OID
PTXT- Plain textJSON- JSON formatTBLE- Table formatREGX- Regex processingGREP- Grep command output
This serialize class provide the API representation
FILE- Read fileBASH- Bash commandPW- Powershell commandCMD- Cmd commandSNMP_WALK- Walk the SNMP tree starting from a specific OIDSNMP_GET- Get a specific OID
PTXT- Plain textJSON- JSON formatTBLE- Table formatREGX- Regex processingGREP- Grep command output
POST /sections/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 312
"name='text'&retrieval_method='FILE'&retrieval_output='PTXT'&target='text'&template=1&fields=[{'name':'text','order':1,'retrieval_value':'text','override_target':true,'new_target':'text','retrieval_method':'FILE','retrieval_output':'PTXT','section':1,'options':null}]&options=null&is_active=true"{
"id": 1,
"name": "text",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"target": "text",
"template": 1,
"fields": [
{
"id": 1,
"name": "text",
"order": 1,
"retrieval_value": "text",
"override_target": true,
"new_target": "text",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"section": 1,
"options": null
}
],
"options": null,
"is_active": true
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this section.
This serialize class provide the API representation
FILE- Read fileBASH- Bash commandPW- Powershell commandCMD- Cmd commandSNMP_WALK- Walk the SNMP tree starting from a specific OIDSNMP_GET- Get a specific OID
PTXT- Plain textJSON- JSON formatTBLE- Table formatREGX- Regex processingGREP- Grep command output
GET /sections/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"name": "text",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"target": "text",
"template": 1,
"fields": [
{
"id": 1,
"name": "text",
"order": 1,
"retrieval_value": "text",
"override_target": true,
"new_target": "text",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"section": 1,
"options": null
}
],
"options": null,
"is_active": true
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this section.
This serialize class provide the API representation
FILE- Read fileBASH- Bash commandPW- Powershell commandCMD- Cmd commandSNMP_WALK- Walk the SNMP tree starting from a specific OIDSNMP_GET- Get a specific OID
PTXT- Plain textJSON- JSON formatTBLE- Table formatREGX- Regex processingGREP- Grep command output
This serialize class provide the API representation
FILE- Read fileBASH- Bash commandPW- Powershell commandCMD- Cmd commandSNMP_WALK- Walk the SNMP tree starting from a specific OIDSNMP_GET- Get a specific OID
PTXT- Plain textJSON- JSON formatTBLE- Table formatREGX- Regex processingGREP- Grep command output
PUT /sections/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 312
"name='text'&retrieval_method='FILE'&retrieval_output='PTXT'&target='text'&template=1&fields=[{'name':'text','order':1,'retrieval_value':'text','override_target':true,'new_target':'text','retrieval_method':'FILE','retrieval_output':'PTXT','section':1,'options':null}]&options=null&is_active=true"{
"id": 1,
"name": "text",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"target": "text",
"template": 1,
"fields": [
{
"id": 1,
"name": "text",
"order": 1,
"retrieval_value": "text",
"override_target": true,
"new_target": "text",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"section": 1,
"options": null
}
],
"options": null,
"is_active": true
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this section.
No response body
No content
DELETE /sections/{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 section.
This serialize class provide the API representation
FILE- Read fileBASH- Bash commandPW- Powershell commandCMD- Cmd commandSNMP_WALK- Walk the SNMP tree starting from a specific OIDSNMP_GET- Get a specific OID
PTXT- Plain textJSON- JSON formatTBLE- Table formatREGX- Regex processingGREP- Grep command output
This serialize class provide the API representation
FILE- Read fileBASH- Bash commandPW- Powershell commandCMD- Cmd commandSNMP_WALK- Walk the SNMP tree starting from a specific OIDSNMP_GET- Get a specific OID
PTXT- Plain textJSON- JSON formatTBLE- Table formatREGX- Regex processingGREP- Grep command output
PATCH /sections/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 312
"name='text'&retrieval_method='FILE'&retrieval_output='PTXT'&target='text'&template=1&fields=[{'name':'text','order':1,'retrieval_value':'text','override_target':true,'new_target':'text','retrieval_method':'FILE','retrieval_output':'PTXT','section':1,'options':null}]&options=null&is_active=true"{
"id": 1,
"name": "text",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"target": "text",
"template": 1,
"fields": [
{
"id": 1,
"name": "text",
"order": 1,
"retrieval_value": "text",
"override_target": true,
"new_target": "text",
"retrieval_method": "FILE",
"retrieval_output": "PTXT",
"section": 1,
"options": null
}
],
"options": null,
"is_active": true
}Last updated

