예제 #1
0
def images_update(data):
    return {"image": template(IMAGE, data, add=IMAGE_PROPERTIES)}
예제 #2
0
def keypairs_show(data):
    return {"keypair": template(KEYPAIR_INFO, data)}
예제 #3
0
def servers_boot(data):
    return {"server": template(SERVER_INFO, data)}
예제 #4
0
def keypairs_add(data):
    return {"keypair": template(KEYPAIR, data, add_if_present='private_key')}
예제 #5
0
def keypairs_list(data):
    return {"keypairs": template(KEYPAIR, data)}
예제 #6
0
def images_show(data):
    return {"image": template(IMAGE_INFO, data, add=IMAGE_LINKS)}
예제 #7
0
def images_list(data, details=True):
    if details:
        return {"images": template(IMAGE_INFO, data, add=IMAGE_LINKS)}
    else:
        return {"images": template(IMAGE, data, add=IMAGE_LINKS)}
예제 #8
0
def flavors_show(data):
    return {"flavor": template(FLAVOR_INFO, data, add=FLAVOR_LINKS)}
예제 #9
0
def flavors_list(data, details=True):
    if details:
        return {"flavors": template(FLAVOR_INFO, data, add=FLAVOR_LINKS)}
    else:
        return {"flavors": template(FLAVOR, data, add=FLAVOR_LINKS)}
예제 #10
0
def servers_list(data, details=True):
    if details:
        return {"servers": template(SERVER_INFO, data)}
    else:
        return {"servers": template(SERVER, data)}