For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Netgroups

get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
descriptionstringOptional
formatstring · enumOptionalPossible values:
limitintegerOptional

Number of results to return per page.

namestringOptional
offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

searchstringOptional

A search term.

Responses
200Success
countintegerRequiredExample: 123
nextstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=400&limit=100
previousstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=200&limit=100
get/netgroups/
GET /netgroups/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "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"
    }
  ]
}
post

Handle post request, suitable for single and multi creation

Args: request ([dict]): can be dict or list of dicts

Returns: [type]: [description]

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 128Required
descriptionstring · max: 1024Required
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 128Required
descriptionstring · max: 1024Required
post/netgroups/
POST /netgroups/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 36

"name='text'&description='text'"
201Success
{
  "id": 1,
  "name": "text",
  "description": "text"
}
get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this netgroup.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 128Required
descriptionstring · max: 1024Required
get/netgroups/{id}/
GET /netgroups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "name": "text",
  "description": "text"
}
put

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this netgroup.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 128Required
descriptionstring · max: 1024Required
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 128Required
descriptionstring · max: 1024Required
put/netgroups/{id}/
PUT /netgroups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 36

"name='text'&description='text'"
200Success
{
  "id": 1,
  "name": "text",
  "description": "text"
}
delete

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this netgroup.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/netgroups/{id}/
DELETE /netgroups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this netgroup.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
namestring · max: 128Optional
descriptionstring · max: 1024Optional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 128Required
descriptionstring · max: 1024Required
patch/netgroups/{id}/
PATCH /netgroups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 36

"name='text'&description='text'"
200Success
{
  "id": 1,
  "name": "text",
  "description": "text"
}

Last updated