Add REST API endpoint for executing custom scripts #2903

Closed
opened 2025-12-29 18:23:16 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Sep 24, 2019).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.8
  • NetBox version: 2.6.4

Proposed Functionality

Add a REST API endpoint for executing custom scripts, similar to the endpoint which exists for executing validation reports (/api/extras/reports/).

Use Case

This will allow custom scripts to be triggered by remote systems in addition to web UI users.

Database Changes

None

External Dependencies

None

Originally created by @jeremystretch on GitHub (Sep 24, 2019). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.8 * NetBox version: 2.6.4 ### Proposed Functionality Add a REST API endpoint for executing custom scripts, similar to the endpoint which exists for executing validation reports (`/api/extras/reports/`). ### Use Case This will allow custom scripts to be triggered by remote systems in addition to web UI users. ### Database Changes None ### External Dependencies None
adam added the status: accepted label 2025-12-29 18:23:16 +01:00
adam closed this issue 2025-12-29 18:23:16 +01:00
Author
Owner

@chaomodus commented on GitHub (Oct 17, 2019):

One minor request here, if there were a way to pass some custom data not as a log message back, such as a dictionary that, in the API form, was converted to part of the JSON response, but pretty printed as part of the result in the web UI response.

@chaomodus commented on GitHub (Oct 17, 2019): One minor request here, if there were a way to pass some custom data not as a log message back, such as a dictionary that, in the API form, was converted to part of the JSON response, but pretty printed as part of the result in the web UI response.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2903