def create(name, imageId, flavorId, metadata={}, personality=[]): mosso = get_server_api() response = mosso.servers.POST( name=name, imageId=int(imageId), flavorId=int(flavorId), metadata=metadata, personality=personality ) result = {"servers": [response['server'], ]} detail_output(result=result, title="New Server", key='server')
def detail(id=None): detail_output(path='images', id=id, title="Images", key='image')
def detail(id=None): detail_output(path='flavors', id=id, title="Flavors", key='flavor')
def detail(id=None): detail_output(path='servers', id=id, title='Servers', key='server')