Provide an API endpoint to enable ASN object assignments #14122
Unanswered
richardjohnallsopp
asked this question in
Help Wanted!
Replies: 1 comment
-
Site has a field directly for asn assignment, it is "asns". The reason contacts have a separate API endpoint is because contacts are a complex field (Many-to-many using a generic foreign key -- a generic foreign key is a link to any table in the database) whereas ASN uses a standard M2M relationship. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
NetBox version
v3.6.2
Feature type
Change to existing functionality
Proposed functionality
It could be something I'm missing, but I don't see a way to assign an ASN object to a site like you can with contact objects.
Use case
We're in the process of migrating from v2.11.11 to v3.6.2 and there are several changes to the way data is handled. We're writing some scripts to handle these changes like pulling contacts from our current version and creating + assigning them on our updated stage version. We don't see a way to handle ASN objects programatically using the API and Pynetbox.
For example with contacts we were able to do this:
Could we add something like this for ASN objects?
Database changes
No response
External dependencies
No response
Beta Was this translation helpful? Give feedback.
All reactions