get_locations
List the locations configured in NetBox and their parent-child hierarchy to retrieve LOCATIONKEY values used by access-control tasks such as portal status checks and threat-level updates.
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. |