Skip to content

Commit ce121d5

Browse files
Documentation: Added example of keyed_groups to nb_inventory (#361)
1 parent 8b222e1 commit ce121d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugins/inventory/nb_inventory.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@
212212
foo: last_updated
213213
bar: display_name
214214
nested_variable: rack.display_name
215+
216+
# You can use keyed_groups to group on properties of devices or VMs.
217+
# NOTE: It's only possible to key off direct items on the device/VM objects.
218+
plugin: netbox.netbox.nb_inventory
219+
keyed_groups:
220+
- prefix: status
221+
key: status.value
215222
"""
216223

217224
import json

0 commit comments

Comments
 (0)