'List the current leases in the configuration.'

@app.route('/configuration/leases', methods=['GET'])
@user_documentation(u'\n                                List    the    currently    existing    leases    on    datasets,    including    which\n                                node    the    lease    is    for    and    when    if    ever    the    lease    will    expire.\n                                ', header=u'List    all    leases    on    datasets', examples=[u'list    leases'], section=u'dataset')
@structured(inputSchema={}, outputSchema={'$ref': '/v1/endpoints.json#/definitions/list_leases'}, schema_store=SCHEMAS)
def list_leases(self):

    now = datetime.fromtimestamp(self.clock.seconds(), UTC)
    result = []
    for lease in self.persistence_service.get().leases.values():
        result.append(lease_response(lease, now))
    return result
