(self, marker=None, limit=None, sort_key='id',
               sort_dir='asc')
return self._get_clusters_collection(marker, limit,
                                             sort_key, sort_dir, expand,
                                             resource_url)
Retrieve a list of clusters with detail.

        :param marker: pagination marker for large data sets.
        :param limit: maximum number of resources to return in a single result.
        :param sort_key: column to sort results by. Default: id.
        :param sort_dir: direction to sort. "asc" or "desc". Default: asc.
Retrieve a list of clusters with detail.
Retrieve a list of clusters with detail .
def detail(self, marker=None, limit=None, sort_key='id',
               sort_dir='asc'):
        """Retrieve a list of clusters with detail.

        :param marker: pagination marker for large data sets.
        :param limit: maximum number of resources to return in a single result.
        :param sort_key: column to sort results by. Default: id.
        :param sort_dir: direction to sort. "asc" or "desc". Default: asc.
        """
        context = pecan.request.context
        policy.enforce(context, 'cluster:detail',
                       action='cluster:detail')

        # NOTE(lucasagomes): /detail should only work against collections
        parent = pecan.request.path.split('/')[:-1][-1]
        if parent != "clusters":
            raise exception.HTTPNotFound

        expand = True
        resource_url = '/'.join(['clusters', 'detail'])
        return self._get_clusters_collection(marker, limit,
                                             sort_key, sort_dir, expand,
                                             resource_url)
def detail ( self , marker = None , limit = None , sort_key = 'id' , sort_dir = 'asc' ) : context = pecan . request . context policy . enforce ( context , 'cluster:detail' , action = 'cluster:detail' ) # NOTE(lucasagomes): /detail should only work against collections parent = pecan . request . path . split ( '/' ) [ : - 1 ] [ - 1 ] if parent != "clusters" : raise exception . HTTPNotFound expand = True resource_url = '/' . join ( [ 'clusters' , 'detail' ] ) return self . _get_clusters_collection ( marker , limit , sort_key , sort_dir , expand , resource_url )