'Perform a server "action" and return response headers and body'

def _action_return_resp_and_body(self, action, server, info=None, **kwargs):

    body = {action: info}
    self.run_hooks('modify_body_for_action', body, **kwargs)
    url = ('/servers/%s/action' % base.getid(server))
    return self.api.client.post(url, body=body)
