'Rebuilds the specified server.
:param       node_id: ID of the node which should be used
:type        node_id: ``str``
:param       image_id: ID of the image which should be used
:type        image_id: ``str``
:rtype: ``bool``'

def ex_rebuild(self, node_id, image_id):

    if isinstance(node_id, Node):
        node_id = node_id.id
    if isinstance(image_id, NodeImage):
        image_id = image_id.id
    elm = ET.Element('rebuild', {'xmlns': self.XML_NAMESPACE, 'imageId': image_id})
    resp = self.connection.request(('/servers/%s/action' % node_id), method='POST', data=ET.tostring(elm))
    return (resp.status == httplib.ACCEPTED)
