@cliutils.arg('node', metavar='<node>', help="Name or UUID of the node.")
@cliutils.arg(
    'power_state',
    metavar='<power-state>',
    choices=['on', 'off', 'reboot'],
    help="'on', 'off', or 'reboot'.")
def do_node_set_power_state(cc, args):
    cc.node.set_power_state(args.node, args.power_state)
Power a node on or off or reboot.
dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/v1/node_shell.py/do_node_set_power_state