pdu.php¶
PDU management module for retrieving power usage statistics and firmware information via SNMP.
API Methods¶
| Method | Action | Description |
|---|---|---|
bind | bind | Performs a bind operation. No business parameters are processed in this action. |
check_overload | trigger overload check task | Triggers a background Jenkins job to check for PDU overloads and logs the task. |
get | get PDU usage data | Returns a list of SNMP-based power usage reports for a specific PDU, including total and historical load data. |
load_version | get firmware version | Retrieves the current firmware version of the PDU via SNMP using its IP address. |
pdu/get¶
Returns a list of SNMP-based power usage reports for a specific PDU, including total and historical load data.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: get |
| id | ✅ | integer | PDU ID for which to retrieve power usage data. |
Request example
Success response example
pdu/load_version¶
Retrieves the current firmware version of the PDU via SNMP using its IP address.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: load_version |
| id | ✅ | integer | The ID of the equipment to retrieve firmware version from. |
| ip | ❌ | string | IP address of the device for firmware version retrieval. |
Request example
Success response example
Error examples
pdu/check_overload¶
Triggers a background Jenkins job to check for PDU overloads and logs the task.
HTTP method: POST
Parameters:
| action | ✅ | string | Method identifier: check_overload |
|---|---|---|---|
Request example
pdu/bind¶
Performs a bind operation. No business parameters are processed in this action.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: bind |