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 → Assign Tag
AI-generatedOverview
This node interacts with the NetBox API to assign or remove tags on a specific device within the DCIM domain. It is useful for managing device metadata by adding or removing tags to organize or categorize devices programmatically. For example, you can add a 'critical' tag to a device to mark it as important or remove a 'deprecated' tag when a device is updated.
Use Case Examples
- Add a tag named 'production' to a device with a given device ID to mark it as part of the production environment.
- Remove a tag by its ID from a device to update its categorization.
Properties
| Name | Meaning |
|---|---|
| Domain | Specifies the domain of the NetBox API to interact with, e.g., DCIM. |
| Device ID | The unique identifier of the device to which the tag will be assigned or removed. |
| Tag Name or ID | The identifier or name of the tag to assign or remove from the device. |
| Action | Specifies whether to add or remove the tag from the device. |
Output
JSON
json- The JSON response from the NetBox API after assigning or removing the tag, typically including the updated device information or confirmation of the action.
Dependencies
- NetBox API with appropriate credentials
Troubleshooting
- Ensure the device ID and tag ID or name are correct and exist in the NetBox instance.
- Verify that the API credentials have sufficient permissions to modify device tags.
- Common errors include authentication failures, resource not found errors if the device or tag does not exist, and validation errors if the tag assignment is invalid.