Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the members api route located at extras/dynamic-groups/{id}/members #182

Closed
tsm1th opened this issue Apr 19, 2024 · 0 comments · Fixed by #183
Closed

Add support for the members api route located at extras/dynamic-groups/{id}/members #182

tsm1th opened this issue Apr 19, 2024 · 0 comments · Fixed by #183
Assignees

Comments

@tsm1th
Copy link
Contributor

tsm1th commented Apr 19, 2024

The members route is not currently supported at location extras/dynamic-groups/{id}/members. These detailed routes are handled via the DetailEndpoint method. The extras model does not currently support this detailed route.

Issue:

nb = pynautobot.api(url=NAUTOBOT_BASE_URL, token=NAUTOBOT_TOKEN)
nb.extras.dynamic_groups.get("my-group").members.list()
# AttributeError: object has no attribute "members"

Expected:

nb = pynautobot.api(url=NAUTOBOT_BASE_URL, token=NAUTOBOT_TOKEN)
nb.extras.dynamic_groups.get("my-group").members.list()
# <list output of members>
@tsm1th tsm1th self-assigned this Apr 19, 2024
@tsm1th tsm1th linked a pull request Apr 19, 2024 that will close this issue
joewesch added a commit that referenced this issue Apr 23, 2024
Resolves #182 by adding the `members` detail endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant