

def ex_power_off(self, node):
    '\n        This function will abruptly power-off a server.  Unlike\n        ex_shutdown_graceful, success ensures the node will stop but some OS\n        and application configurations may be adversely affected by the\n        equivalent of pulling the power plug out of the machine.\n\n        :param      node: Node which should be used\n        :type       node: :class:`Node`\n\n        :rtype: ``bool``\n        '
    request_elm = ET.Element('powerOffServer', {
        'xmlns': TYPES_URN,
        'id': node.id,
    })
    body = self.connection.request_with_orgId_api_2('server/powerOffServer', method='POST', data=ET.tostring(request_elm)).object
    response_code = findtext(body, 'responseCode', TYPES_URN)
    return (response_code in ['IN_PROGRESS', 'OK'])

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_power_off/original