예제 #1
0
def show_image(data):
    return utils.json_render(IMAGE, data)
예제 #2
0
def update_image(data):
    return utils.json_render(IMAGE, data)
예제 #3
0
def list_versions():
    return {'versions': [utils.json_render(VERSION_v2, CONF.get_options())]}
예제 #4
0
def list_images(data):
    return {'images': [utils.json_render(IMAGE, d) for d in data]}
예제 #5
0
def show_image(data):
    return utils.json_render(IMAGE, data)
예제 #6
0
def update_image(data):
    return utils.json_render(IMAGE, data)
예제 #7
0
def list_versions():
    return {'versions': [utils.json_render(VERSION_v2, CONF.get_options())]}
예제 #8
0
def list_keypairs(data):
    return {'keypairs': [utils.json_render(KEYPAIR, d, _details=False)
                         for d in data]}
예제 #9
0
def list_flavors(data, details=True):
    return {'flavors': [utils.json_render(FLAVOR, d, _details=details)
                        for d in data]}
예제 #10
0
def show_flavor(data):
    return {'flavor': utils.json_render(FLAVOR, data, _details=True)}
예제 #11
0
def show_server(data):
    return {'server': utils.json_render(SERVER, data, _details=True)}
예제 #12
0
def list_servers(data, details=True):
    return {'servers': [utils.json_render(SERVER, d, _details=details)
                        for d in data]}
예제 #13
0
def show_keypair(data):
    return {'keypair': utils.json_render(KEYPAIR, data, _details=True)}
예제 #14
0
def authenticate():
    return {'access': utils.json_render(TOKEN, CONF.get_options())}
예제 #15
0
def list_images(data):
    return {'images': [utils.json_render(IMAGE, d) for d in data]}
예제 #16
0
def show_version_v2d0():
    return {'version': utils.json_render(VERSION_v2d0, CONF.get_options())}
예제 #17
0
def create_keypair(data):
    return {'keypair': utils.json_render(KEYPAIR, data, _details=False)}