REST API query on circuits/circuit-termination/?cid=<circuit ID> is returning all terminations instead of just one #5522

Closed
opened 2025-12-29 19:28:58 +01:00 by adam · 1 comment
Owner

Originally created by @ZPrimed on GitHub (Oct 16, 2021).

NetBox version

v3.0.7

Python version

3.8

Steps to Reproduce

  1. Create multiple circuits with unique circuit IDs for each ("Example001", "Example002", etc)
  2. Terminate multiple circuits on at least one side
  3. Use browser (tested with Chrome stable) to hit http://netbox.example.com/api/circuits/circuit-terminations/?cid=Example001

Expected Behavior

Expected the API to return only the single circuit with the defined Circuit ID ("Example001")

Observed Behavior

API returned entire list of all circuits instead (with 200 OK / no errors)

Originally created by @ZPrimed on GitHub (Oct 16, 2021). ### NetBox version v3.0.7 ### Python version 3.8 ### Steps to Reproduce 1. Create multiple circuits with unique circuit IDs for each ("Example001", "Example002", etc) 2. Terminate multiple circuits on at least one side 3. Use browser (tested with Chrome stable) to hit http://netbox.example.com/api/circuits/circuit-terminations/?cid=Example001 ### Expected Behavior Expected the API to return only the single circuit with the defined Circuit ID ("Example001") ### Observed Behavior API returned entire list of all circuits instead (with 200 OK / no errors)
adam closed this issue 2025-12-29 19:28:58 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 18, 2021):

cid is not a valid filter for the circuit terminations endpoint. Please see the detailed API documentation provided at /api/docs/ on your NetBox deployment for a list of supported filters.

@jeremystretch commented on GitHub (Oct 18, 2021): `cid` is not a valid filter for the circuit terminations endpoint. Please see the detailed API documentation provided at `/api/docs/` on your NetBox deployment for a list of supported filters.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5522