Skip to content
Discussion options

You must be logged in to vote

Hi,
I’m curious: why do you need to create the permission itself via the API?
Usually, the permission only needs to be created once, and then you can assign it to multiple groups or users (which you can certainly do via the API). A common approach is to create a dedicated “read-only” group with the appropriate permission and then simply assign users to that group.

As for your question:
I’m not aware of a way to use a wildcard (such as * or all) for object_types. However, you can retrieve the full list of available object types via the API (NetBox v4.4):

GET /api/core/object-types/

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by joaofeteira
Comment options

You must be logged in to vote
3 replies
@pheus
Comment options

@joaofeteira
Comment options

@pheus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants