-
Hi, how can I reference a site by only its slug? Currently it seems I need to pass both the name and the slug, for example:
Trying to leave the first argument empty, yields
I also tried to construct it as
but it yielded the same result. Maybe the problem is that "name" is set to an empty string instead of being omitted completely in the request? For comparison, in pynetbox, I can get a reference to a site using only its slug using
Similarly directly to the API using
Thanks for any ideas! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'll be frank I don't think there's a way to do that - and the whole thing is a generated sdk so I'm definitely not adding custom code to do this. Your best bet is to query the API directly for this. |
Beta Was this translation helpful? Give feedback.
I'll be frank I don't think there's a way to do that - and the whole thing is a generated sdk so I'm definitely not adding custom code to do this. Your best bet is to query the API directly for this.