diff --git a/pynetbox/core/app.py b/pynetbox/core/app.py index 10cc644..908961d 100644 --- a/pynetbox/core/app.py +++ b/pynetbox/core/app.py @@ -113,6 +113,10 @@ def __setstate__(self, d): def __getattr__(self, name): return App(self.api, "plugins/{}".format(name.replace("_", "-"))) + def __getitem__(self, name): + """Allows access to endpoint by dictionary-style indexing.""" + return App(self.api, f"plugins/{name}") + def installed_plugins(self): """Returns raw response with installed plugins