Beispiel #1
0
def list_file():
    resp = flask.Response(utils.read('file.xml'))
    resp.headers['Content-Type'] = 'application/vnd.ibm.powervm.web+xml'
    return resp
Beispiel #2
0
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
Beispiel #3
0
def list_pcm_managedSystem():
    resp = flask.Response(utils.read('event.xml'))
    resp.headers['Content-Type'] = 'application/vnd.ibm.powervm.web+xml'
    return resp
Beispiel #4
0
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
Beispiel #5
0
def list_long_term_monitors(id):
    resp = flask.Response(utils.read('ltm_feed2.xml'))
    resp.headers['Content-Type'] = 'application/atom+xml'
    return resp
Beispiel #6
0
def list_raw_metrics(id):
    resp = flask.Response(utils.read('pcm_pref.xml'))
    resp.headers['Content-Type'] = 'application/atom+xml'
    return resp
Beispiel #7
0
def get_preferences(id):
    resp = flask.Response(utils.read('pcm_pref.xml'))
    resp.headers['Content-Type'] = 'application/atom+xml'
    return resp