(self, cluster_id, marker=None, limit=None, sort_key='id',
                sort_dir='asc', role=None)
return self._get_nodegroup_collection(cluster.uuid,
                                              marker,
                                              limit,
                                              sort_key,
                                              sort_dir,
                                              filters,
                                              expand=False)
Retrieve a list of nodegroups.

        :param cluster_id: the cluster id or name
        :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.
        :param role: list all nodegroups with the specified role.
Retrieve a list of nodegroups.
Retrieve a list of nodegroups .
def get_all(self, cluster_id, marker=None, limit=None, sort_key='id',
                sort_dir='asc', role=None):
        """Retrieve a list of nodegroups.

        :param cluster_id: the cluster id or name
        :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.
        :param role: list all nodegroups with the specified role.
        """
        context = pecan.request.context
        policy.enforce(context, 'nodegroup:get_all',
                       action='nodegroup:get_all')

        if context.is_admin:
            policy.enforce(context, 'nodegroup:get_all_all_projects',
                           action='nodegroup:get_all_all_projects')
            context.all_tenants = True

        cluster = api_utils.get_resource('Cluster', cluster_id)

        filters = {}
        if not context.is_admin:
            filters = {"project_id": context.project_id}
        if role:
            filters.update({'role': role})

        return self._get_nodegroup_collection(cluster.uuid,
                                              marker,
                                              limit,
                                              sort_key,
                                              sort_dir,
                                              filters,
                                              expand=False)
def get_all ( self , cluster_id , marker = None , limit = None , sort_key = 'id' , sort_dir = 'asc' , role = None ) : context = pecan . request . context policy . enforce ( context , 'nodegroup:get_all' , action = 'nodegroup:get_all' ) if context . is_admin : policy . enforce ( context , 'nodegroup:get_all_all_projects' , action = 'nodegroup:get_all_all_projects' ) context . all_tenants = True cluster = api_utils . get_resource ( 'Cluster' , cluster_id ) filters = { } if not context . is_admin : filters = { "project_id" : context . project_id } if role : filters . update ( { 'role' : role } ) return self . _get_nodegroup_collection ( cluster . uuid , marker , limit , sort_key , sort_dir , filters , expand = False )