Actions243
- Cable Actions
- Cable Termination Actions
- Connected Device Actions
- Console Port Actions
- Console Port Template Actions
- Console Server Port Actions
- Console Server Port Template Actions
- Device Actions
- Device Bay Actions
- Device Bay Template Actions
- Device Role Actions
- Device Type Actions
- Front Port Actions
- Front Port Template Actions
- Interface Actions
- Interface Template Actions
- Inventory Item Actions
- Inventory Item Role Actions
- Inventory Item Template Actions
- Location Actions
- MAC Address Actions
- Manufacturer Actions
- Module Actions
- Module Bay Actions
- Module Bay Template Actions
- Module Type Actions
- Module Type Profile Actions
- Platform Actions
- Power Feed Actions
- Power Outlet Actions
- Power Outlet Template Actions
- Power Panel Actions
- Power Port Actions
- Power Port Template Actions
- Rack Actions
- Rack Reservation Actions
- Rack Role Actions
- Rack Type Actions
- Rear Port Actions
- Rear Port Template Actions
- Region Actions
- Site Actions
- Site Group Actions
- Virtual Chassis Actions
- Virtual Device Context Actions
- Virtual Link Actions
Device Role → List
AI-generatedOverview
This node interacts with the NetBox API to list device roles within the DCIM domain. It is useful for retrieving information about different device roles configured in a NetBox instance, which can help in network management and inventory tasks. For example, a user can fetch all device roles or filter them by name, slug, color, VM role status, or tag to get specific subsets of device roles.
Use Case Examples
- Retrieve all device roles in the DCIM domain to display in a network management dashboard.
- Filter device roles by a specific color or tag to organize devices by role characteristics.
Properties
| Name | Meaning |
|---|---|
| Domain | Specifies the domain of the NetBox API to interact with, here it is set to 'dcim' for device roles. |
| Return All | Determines whether to return all device roles or limit the number of results. |
| Limit | Maximum number of device roles to return when 'Return All' is false. |
| Filters | Filters to narrow down the list of device roles based on name, slug, color, VM role status, or tag. |
Output
JSON
id- Unique identifier of the device role.name- Name of the device role.slug- Slug identifier for the device role.color- Color code associated with the device role.vm_role- Boolean indicating if the device role is a VM role.tag- Tags associated with the device role.
Dependencies
- NetBox API
- An API key credential for authentication
Troubleshooting
- Ensure the API key credential is correctly configured and has permissions to access the DCIM domain and device roles resource.
- If the node returns an error, check the network connectivity to the NetBox API endpoint.
- When using filters, ensure the filter values are valid and correctly formatted.
- If 'Return All' is set to false and the limit is too low, you might not get all expected results; adjust the limit accordingly.
Links
- NetBox API Documentation - Device Roles - Official documentation for the Device Roles endpoint in the NetBox API.