{% include 'header.html' %}

Help & User Guide

Subnets & Devices

Managing Subnets

To add or edit subnets, go to the Admin page. Click Add Subnet to create a new subnet, or use the edit button to modify existing subnets. Subnets are associated with sites and can be organised by location.

Adding a Device

To add a device, visit the Devices page and click Add Device.

Assigning IP Addresses

To assign an IP address, you must first add a device. Then, from the Devices page, click on a device to view its details and use the Add IP option to assign an IP address from a subnet.

Viewing and Editing Devices

Click on any device in the Devices list to view or edit its details, including assigned IPs, device types and a description where necessary.

Racks

Adding a Rack

To add a new rack, go to the Racks page and click the Add Rack button. Fill in the details and submit the form.

Assigning Devices to Racks

After adding a device, you can assign it to a rack from the Rack details page. Click on a rack from the Racks page, then use the options to add or remove devices within the rack.

Non-Networked Devices

Racks can also contain non-networked devices (such as shelves, patch panels, or other equipment that does not require an IP address). To add a non-networked device, go to a rack details page and use the option to add a device by name without assigning an IP address. These devices will appear in the rack layout but will not be listed on the Devices page.

User Management & Audit

User & Role Management

Administrators can manage users and roles from the Users page. This includes creating users, assigning roles, and managing custom roles with specific permission sets. Only users with the appropriate permissions can access this page.

Understanding Roles

The system uses role-based access control to manage what users can do. There are three default roles:

  • Admin: Full access to all features including user and role management
  • User: Can view and manage most features (devices, subnets, racks, etc.) but cannot manage users or roles
  • View Only: Read-only access to view pages but cannot make any changes

Custom Roles

Administrators can create custom roles with specific permission sets. Go to the Users page and click the "Roles & Permissions" tab to create and manage roles.

Permission Granularity

Permissions are very granular, allowing fine-grained control over what each role can do. Permissions are organised into categories like View, Device Management, Network Management, Rack Management, and Administration.

Audit & History

All changes are logged and can be reviewed on the Audit page for accountability and troubleshooting. The audit log shows who made changes, what was changed, and when.

API Keys

Each user has a unique API key that can be used to authenticate API requests. API keys can be viewed and regenerated from the Users page. Keep your API key secure and never share it publicly.

API Documentation

Authentication

All API requests require authentication using an API key. You can provide the API key in one of three ways:

  • Header: X-API-Key: your_api_key
  • Authorization Header: Authorization: Bearer your_api_key
  • Query Parameter: ?api_key=your_api_key

Base URL

All API endpoints are prefixed with /api/v1

Available Endpoints

Devices

  • GET /api/v1/devices - List all devices
  • GET /api/v1/devices/{id} - Get device details
  • POST /api/v1/devices - Create device
  • PUT /api/v1/devices/{id} - Update device
  • DELETE /api/v1/devices/{id} - Delete device
  • POST /api/v1/devices/{id}/ips - Add IP to device
  • DELETE /api/v1/devices/{id}/ips/{ip_id} - Remove IP from device

Subnets

  • GET /api/v1/subnets - List all subnets
  • GET /api/v1/subnets/{id} - Get subnet details
  • POST /api/v1/subnets - Create subnet
  • PUT /api/v1/subnets/{id} - Update subnet
  • DELETE /api/v1/subnets/{id} - Delete subnet

Racks

  • GET /api/v1/racks - List all racks
  • GET /api/v1/racks/{id} - Get rack details
  • POST /api/v1/racks - Create rack
  • DELETE /api/v1/racks/{id} - Delete rack
  • POST /api/v1/racks/{id}/devices - Add device to rack
  • DELETE /api/v1/racks/{id}/devices/{rack_device_id} - Remove device from rack

Other

  • GET /api/v1/info - Get API info and user details
  • GET /api/v1/device-types - List device types
  • GET /api/v1/subnets/{id}/dhcp - Get DHCP pools
  • POST /api/v1/subnets/{id}/dhcp - Configure DHCP pools
  • GET /api/v1/audit - Get audit log
  • GET /api/v1/users - List users (admin only)
  • GET /api/v1/roles - List roles (admin only)

Permissions

API endpoints respect the same role-based permissions as the web interface. Users can only perform actions that their role allows. If a user lacks the required permission, the API will return a 403 Forbidden error.

Response Format

All API responses are in JSON format. Successful requests return 200 OK or 201 Created with the requested data. Errors return appropriate HTTP status codes with an error message in the response body.