Skip to content

Add query parameters to dcim/module API #9396

@mdoerr2s

Description

@mdoerr2s

NetBox version

v3.2.3

Feature type

Change to existing functionality

Proposed functionality

As discussed in #9393, the REST API for modules (dcim/module) lacks the functionality to query for modules in a specific module_bay. Also the API endpoint for module_bay, does not provide an argument for installed_device, making it hard to query for modules, located in a specific module_bay.

Since the data model already provides the information, only additional parameters for the API need to be introduced.

Use case

Enable users to query for modules, located in a specific module_bay of interest. Increasing usability of API by enabling returning unique responses, without having to query devices and getting a list, where this information needs to be extracted from.

Database changes

No, since the data model of module already has all information needed, as can be explored via nbshell.

External dependencies

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions