Skip to content

Commit 66adbd8

Browse files
committed
fix old object type examples
1 parent 0e74479 commit 66adbd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def validate_filters(filters: dict) -> None:
179179
Get objects from NetBox based on their type and filters
180180
181181
Args:
182-
object_type: String representing the NetBox object type (e.g. "devices", "ip-addresses")
182+
object_type: String representing the NetBox object type (e.g. "dcim.device", "ipam.ipaddress")
183183
filters: dict of filters to apply to the API call based on the NetBox API filtering options
184184
185185
FILTER RULES:
@@ -191,8 +191,8 @@ def validate_filters(filters: dict) -> None:
191191
empty, regex, iregex, lt, lte, gt, gte, in
192192
193193
Two-step pattern for cross-relationship queries:
194-
sites = netbox_get_objects('sites', {'name': 'NYC'})
195-
netbox_get_objects('devices', {'site_id': sites[0]['id']})
194+
sites = netbox_get_objects('dcim.site', {'name': 'NYC'})
195+
netbox_get_objects('dcim.device', {'site_id': sites[0]['id']})
196196
197197
fields: Optional list of specific fields to return
198198
**IMPORTANT: ALWAYS USE THIS PARAMETER TO MINIMIZE TOKEN USAGE**

0 commit comments

Comments
 (0)