Extras¶
pynautobot.models.extras
¶
Overrides for models in the Extras app.
Classes, attributes and methods only need to be defined here if they need to override the default behavior.
pynautobot.models.extras.CustomFieldChoices
¶
pynautobot.models.extras.DynamicGroups
¶
Bases: Record
DynamicGroups.
members
property
¶
Represents the members detail endpoint.
Returns a list of DetailEndpoint objects that are related to the dynamic group
Returns:
| Type | Description |
|---|---|
DetailEndpoint
|
The |
Examples:
Dynamic group of devices:
>>> group = nb.extras.dynamic_groups.get("device-group")
>>> group.members.list()
[<pynautobot.models.extras.DynamicGroups ('testswitch') at 0x7efee4037e80>...]
Dynamic group of IPs:
__str__()
¶
Return the string representation of the DynamicGroups object.