summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/controllers/host.py
blob: e8518a14c9218a69e669710ad3573d32fd8c0e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# -*- coding: utf-8 -*-
from __future__ import absolute_import

from . import ApiController, RESTController
from .. import mgr
from ..security import Scope


@ApiController('/host', Scope.HOSTS)
class Host(RESTController):
    def list(self):
        return mgr.list_servers()