get_locations
Fetch a paginated list of NetBox locations with parent-child hierarchy, providing location keys for use in portal status and threat level lookups.
Instructions
Lists the locations configured on the NetBox system (wraps NBAPI GetLocations). Each record carries LOCATIONKEY, PARTITIONKEY and a nested PARENTLOCATION { PARENTKEY, NAME } block, so the result describes a location tree. LOCATIONKEY values feed get_portal_statuses and set_threat_level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| STARTFROMKEY | No | Optional. Pagination cursor to continue listing from a previous call. (Not in the guide's Calling Parameters list, but its documented FAIL messages include "Invalid STARTFROMKEY".) | |
| ALLPARTITIONS | No | Optional. "TRUE" to list locations across all partitions. |