Expand description
Power on/off/reset operations against PCS.
POST /power (handler post_power) now returns immediately with
the PCS transition id; the polling loop that used to live in
pcs_transitions_post_block runs CLI-side. The CLI snapshots the
transition with GET /power/transitions/{id} (handler
get_power_transition) every few seconds until it completes.
Structs§
- Apply
Power Params - Typed parameters for the power-action service call.
Enums§
- Power
Action - The power operation to apply to a list of xnames.
- Power
Target Type - Whether the caller’s
host_expressionis a hosts expression (xnames / NIDs / hostlist) or a single HSM group name whose members should be targeted.
Functions§
- apply_
power - Start a PCS power transition (
on,soft-off,force-off,soft-restart,hard-restart) againstparams.xnamesand return the transition id immediately. The CLI is responsible for pollingget_power_transitionuntil the transition reportscompleted. - get_
power_ transition - Fetch the current snapshot of a PCS power transition by id. The
CLI’s poll loop calls this every few seconds after
apply_powerreturned the transition id. - resolve_
target_ xnames - Resolve
host_expressioninto the concrete xname list to pass toapply_power.