def list_file(): resp = flask.Response(utils.read('file.xml')) resp.headers['Content-Type'] = 'application/vnd.ibm.powervm.web+xml' return resp
def logon(): resp = flask.Response(utils.read('logon_file.xml')) resp.headers['X-MC-Type'] = 'PVM' resp.headers['Content-Type'] = 'application/vnd.ibm.powervm.web+xml' return resp
def list_pcm_managedSystem(): resp = flask.Response(utils.read('event.xml')) resp.headers['Content-Type'] = 'application/vnd.ibm.powervm.web+xml' return resp
def get_long_term_monitor(id, ltm_id): resp = flask.Response(utils.read('phyp_pcm_data.json')) resp.headers['Content-Type'] = 'application/json' return resp
def list_long_term_monitors(id): resp = flask.Response(utils.read('ltm_feed2.xml')) resp.headers['Content-Type'] = 'application/atom+xml' return resp
def list_raw_metrics(id): resp = flask.Response(utils.read('pcm_pref.xml')) resp.headers['Content-Type'] = 'application/atom+xml' return resp
def get_preferences(id): resp = flask.Response(utils.read('pcm_pref.xml')) resp.headers['Content-Type'] = 'application/atom+xml' return resp