hPDU Auth
AI-generatedSummary
Fetches a user ID and timestamp from the PDU’s /userid endpoint, then generates an hPDU Authorization header for each input item. Adds the host, base URL, and header to the item’s JSON; optionally includes the values used to build the token for debugging.
Inputs
- Host (PDU Management IP) (required) — IP address or hostname of the PDU. Defaults to the incoming item’s
address; any suffix beginning with/is stripped. - Protocol — HTTP or HTTPS; defaults to HTTP.
- Port — Port used in the request URL; defaults to 80. Set to 0 to omit the port.
- Include Debug Info — When enabled, adds the returned user ID and timestamp, plus the generated token hex, under
hpdu.debug. - hpduApi credentials (required) — Username and password used to request the user ID and sign the authorization token.
Output shape
One output item per input item, preserving its existing JSON fields and adding an hpdu object.
hpducontainshost,baseUrl, andheaders.Authorization. The node makes a POST request to/useridfor each item. It errors if the host is empty after stripping a suffix or if the response lacks parseable user ID and time values.