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
Inventory Item Role → Create
AI-generatedOverview
This node interacts with the NetBox API to create a new Inventory Item Role within the DCIM domain. It is useful for users who want to programmatically add roles for inventory items in their network infrastructure management system. For example, a network administrator can use this node to automate the creation of roles like 'Server', 'Router', or 'Switch' with specific attributes such as color coding, descriptions, and tags.
Use Case Examples
- Automate adding new inventory item roles during network setup.
- Integrate with other systems to dynamically create roles based on external data.
Properties
| Name | Meaning |
|---|---|
| Domain | Specifies the domain of the NetBox API to use, here it is set to 'dcim' for data center infrastructure management. |
| Name | The name of the inventory item role to be created. |
| Slug | A URL-friendly slug for the inventory item role, used for identification in URLs. |
| Additional Fields | Optional additional fields for the inventory item role such as color, description, tags, and custom fields in JSON format. |
Output
JSON
id- Unique identifier of the created inventory item role.name- Name of the created inventory item role.slug- Slug of the created inventory item role.color- Color code associated with the role.description- Description of the inventory item role.tags- Tags assigned to the inventory item role.custom_fields- Custom fields data for the inventory item role.
Dependencies
- NetBox API with appropriate authentication credentials
Troubleshooting
- Ensure the API credentials are correctly configured and have permissions to create inventory item roles.
- Verify that the 'Name' and 'Slug' fields are unique and valid to avoid conflicts.
- Check the format of additional fields, especially JSON in custom fields, to prevent parsing errors.
- Common error messages include authentication failures, validation errors for missing or invalid fields, and network connectivity issues. Resolving these involves checking credentials, input data, and network status.
Links
- NetBox API Documentation - Official documentation for the NetBox API, useful for understanding available endpoints and data structures.