Trigger Action Object shows the configuration for a particular action that has been set up on the PDU.
{
"enclosureSerialNumber": 1000036,
"name": "Reboot Router Outlet",
"id": 3,
"code": 12,
"params": [
"4-286331153"
]
}
Key | Type | Description |
---|---|---|
enclosureSerialNumber | number | Unique serial number for a device enclosure |
id | number | Unique identifier |
name | string | Name for action |
code | number | Code for action. See Action code table |
params | array | Array of strings. Corresponds to action code. See action code table. |
Action Code Table
Use the following table in reference when create and updating actions.
Code | Name | Parameter 1 | Parameter 2 | Parameter 3 | Description |
---|---|---|---|---|---|
11 | Switch Outlet | Outlet ID | State to switch to | -- | State to switch to. either "ON" or "OFF" |
12 | Reboot Outlet | Outlet ID | -- | -- | |
15 | Email Recipient | Email Address | -- | -- | Must have SMTP settings configured. |
16 | Switch Outlet Group | Group ID | State to switch to | -- | State to switch to. Either "ON" or "OFF" |
17 | Powercycle Outlet Group | Group ID | -- | -- | |
18 | SNMPv2 Trap Notification | Trap Manager Host | Trap Community String | -- | |
19 | SNMPv3 Trap Notification | Trap Manager Host | -- | -- | |
20 | HTTP Post Request | URL/IP Address | Optional Power Stats | -- | Using URL requires proper DNS Configuration. Stat Options: "none" , "inlets" , "sensors" , "outlets" , and "circuits" |
22 | Switch Output Relay | Output Relay Name | State to switch to | -- | Only available on PDUs with Output Relay |
23 | Reboot Output Relay | Output Relay Name | -- | -- | Only available on PDUs with Output Relay |
24 | Switch Off Other PDU Outlet | IP of Other PDU | Outlet ID or Index | Personal Access Token from Other PDU | Performs action on "Other" PDU on the same network |
25 | Switch On Other PDU Outlet | IP of Other PDU | Outlet ID or Index | Personal Access Token from Other PDU | Performs action on "Other" PDU on the same network |
26 | Switch Off Other PDU Outlet Group | IP of Other PDU | Group ID or Index | Personal Access Token from Other PDU | Performs action on "Other" PDU on the same network |
27 | Switch On Other PDU Outlet Group | IP of Other PDU | Group ID or Index | Personal Access Token from Other PDU | Performs action on "Other" PDU on the same network |
28 | Reboot Other PDU Outlet | IP of Other PDU | Outlet ID or Index | Personal Access Token from Other PDU | Performs action on "Other" PDU on the same network |
29 | Reboot Other PDU Outlet Group | IP of Other PDU | Group ID or Index | Personal Access Token from Other PDU | Performs action on "Other" PDU on the same network |
30 | Switch Secondary Network Interface | -- | -- | Requires USB-to-Ethernet Accessory to enable Secondary NIC | |
31 | Reset kWh Meter | -- | -- | Only available on PDUs with Energy Metering. | |
32 | Smart IO Hub Relay Switch | Sensor Port (A or B) | Output Relay Index (1-6) | Output Relay State (OPEN/CLOSE) | Requires SPA-0140 Smart IO Hub. Switches a output relay. |