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
Power Port → Create
AI-generatedOverview
This node interacts with the NetBox API to create a new Power Port resource within the DCIM domain. It is useful for automating the addition of power ports to devices in a data center infrastructure management system. For example, users can specify the device ID and power port name, along with optional fields such as module ID, label, type, maximum and allocated power draw, connection status, description, tags, and custom fields in JSON format.
Use Case Examples
- Creating a new power port on a specific device by providing the device ID and power port name.
- Adding detailed attributes to the power port such as type (e.g., IEC 60320 C14), maximum power draw, and custom tags for better inventory management.
Properties
| Name | Meaning |
|---|---|
| Domain | Specifies the domain of the NetBox API to use, here it is set to 'dcim' for data center infrastructure management. |
| Device ID | The unique identifier of the device to which the power port will be added. |
| Name | The name of the power port to be created. |
| Additional Fields | Optional additional attributes for the power port such as module ID, label, type, maximum draw, allocated draw, connection status, description, tags, and custom fields in JSON format. |
Output
JSON
id- Unique identifier of the created power port.name- Name of the created power port.device_id- Identifier of the device to which the power port belongs.type- Type of the power port.maximum_draw- Maximum power draw in watts.allocated_draw- Allocated power draw in watts.connected- Connection status of the power port.description- Description of the power port.tags- Tags associated with the power port.custom_fields- Custom metadata fields associated with the power port.
Dependencies
- NetBox API with appropriate authentication credentials
Troubleshooting
- Ensure the device ID provided exists in the NetBox instance; otherwise, the creation will fail.
- Verify that the API credentials have permissions to create power ports in the DCIM domain.
- Check the format of custom fields JSON to avoid parsing errors.
- If 'Continue on Fail' is enabled, errors will be returned as output instead of stopping execution.
Links
- NetBox API Documentation - Power Ports - Official documentation for the Power Ports API endpoint in NetBox.