5.2.5. routers

REST API route definitions.

class axonius_api_client.api.routers.Router(object_type, base, version, **routes)[source]

Bases: object

Simple object store for REST API routes.

__init__(object_type, base, version, **routes)[source]

Object store for REST API routes.

Parameters:
  • object_type (str) – object type for this set of routes
  • base (str) – base path for this set of routes
  • version (int) – api version for this set of routes
  • **routes – routes for this object_type
class axonius_api_client.api.routers.ApiV1[source]

Bases: object

Routes provided by the Axonius REST API version 1.

version = 1
base = 'api/V1'
users = axonius_api_client.api.routers.Router(object_type='users', version=1)
devices = axonius_api_client.api.routers.Router(object_type='devices', version=1)
actions = axonius_api_client.api.routers.Router(object_type='actions', version=1)
adapters = axonius_api_client.api.routers.Router(object_type='adapters', version=1)
alerts = axonius_api_client.api.routers.Router(object_type='alerts', version=1)
system = axonius_api_client.api.routers.Router(object_type='system', version=1)
all_objects = [axonius_api_client.api.routers.Router(object_type='users', version=1), axonius_api_client.api.routers.Router(object_type='devices', version=1), axonius_api_client.api.routers.Router(object_type='actions', version=1), axonius_api_client.api.routers.Router(object_type='adapters', version=1), axonius_api_client.api.routers.Router(object_type='alerts', version=1), axonius_api_client.api.routers.Router(object_type='system', version=1)]
axonius_api_client.api.routers.API_VERSION

alias of axonius_api_client.api.routers.ApiV1