WESERGATE NAC / API

API: Switches

14 endpoint(s). The following endpoint list is extracted from the source. Actual server responses and integration availability depend on the runtime configuration. GET /api/switches - Handler: switches - Source: wesergat

v0.14.3Pre-production · v0.14.3
v0.14.3 documentation draft: technical, legal and commercial reviews are still pending.

14 endpoint(s).

The following endpoint list is extracted from the source. Actual server responses and integration availability depend on the runtime configuration.

GET /api/switches

  • Handler: switches
  • Source: wesergate/api.py:259
  • Declared access requirement: authenticated admin
  • What it does: Switches (see request schemas and source for exact semantics).

Example request path: /api/switches. Use the documented HTTP method and send the corresponding validated body (if any).

POST /api/switches

  • Handler: switch_create
  • Source: wesergate/api.py:291
  • Body model/type: SwitchRegistration
  • Declared access requirement: authenticated admin
  • What it does: Switch create (see request schemas and source for exact semantics).

Example request path: /api/switches. Use the documented HTTP method and send the corresponding validated body (if any).

PUT /api/switches/{switch_id}/access

  • Handler: network_device_access
  • Source: wesergate/operations_api.py:196
  • Body model/type: AccessStatusWrite
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Network device access (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/access. Use the documented HTTP method and send the corresponding validated body (if any).

PUT /api/switches/{switch_id}/category

  • Handler: set_switch_category
  • Source: wesergate/advanced_api.py:112
  • Body model/type: CategoryAssignment
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Set switch category (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/category. Use the documented HTTP method and send the corresponding validated body (if any).

PUT /api/switches/{switch_id}/coa

  • Handler: configure_coa
  • Source: wesergate/api.py:359
  • Body model/type: SwitchCoA
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Configure coa (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/coa. Use the documented HTTP method and send the corresponding validated body (if any).

PUT /api/switches/{switch_id}/connection

  • Handler: switch_connection
  • Source: wesergate/api.py:306
  • Body model/type: SwitchConnectionUpdate
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Switch connection (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/connection. Use the documented HTTP method and send the corresponding validated body (if any).

GET /api/switches/{switch_id}/details

  • Handler: network_device_details
  • Source: wesergate/operations_api.py:165
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Network device details (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/details. Use the documented HTTP method and send the corresponding validated body (if any).

POST /api/switches/{switch_id}/discover

  • Handler: discover
  • Source: wesergate/api.py:334
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Discover (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/discover. Use the documented HTTP method and send the corresponding validated body (if any).

GET /api/switches/{switch_id}/endpoint-correlations

  • Handler: endpoint_correlations
  • Source: wesergate/advanced_api.py:310
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Endpoint correlations (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/endpoint-correlations. Use the documented HTTP method and send the corresponding validated body (if any).

GET /api/switches/{switch_id}/management-effective

  • Handler: switch_effective
  • Source: wesergate/advanced_api.py:172
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Switch effective (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/management-effective. Use the documented HTTP method and send the corresponding validated body (if any).

PUT /api/switches/{switch_id}/metadata

  • Handler: update_switch_metadata
  • Source: wesergate/advanced_api.py:278
  • Body model/type: SwitchMetadataWrite
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Update switch metadata (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/metadata. Use the documented HTTP method and send the corresponding validated body (if any).

GET /api/switches/{switch_id}/ports

  • Handler: switch_ports
  • Source: wesergate/api.py:349
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Switch ports (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/ports. Use the documented HTTP method and send the corresponding validated body (if any).

POST /api/switches/{switch_id}/ports

  • Handler: add_manual_port
  • Source: wesergate/advanced_api.py:262
  • Body model/type: ManualPortWrite
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Add manual port (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/ports. Use the documented HTTP method and send the corresponding validated body (if any).

PUT /api/switches/{switch_id}/snmp

  • Handler: switch_snmp
  • Source: wesergate/api.py:325
  • Body model/type: SwitchCredentials
  • Parameters: switch_id : str
  • Declared access requirement: authenticated admin
  • What it does: Switch snmp (see request schemas and source for exact semantics).

Example request path: /api/switches/{switch_id}/snmp. Use the documented HTTP method and send the corresponding validated body (if any).

Original English reference: en/api/switches.mdRead documentation
Pre-production · v0.14.3

Not a certified production NAC. Physical switch/RADIUS enforcement and 1,000-device traffic remain unverified.

WeserCode One now provides customer accounts, support tickets and verified commercial records. Automated checkout and signed WeserGate license issuance are not connected.

Open customer portal Product overview