(self, cluster_id, nodegroup_id)
return NodeGroup.convert(nodegroup)
Retrieve information for the given nodegroup in a cluster.

        :param id: cluster id.
        :param resource: nodegroup id.
Retrieve information for the given nodegroup in a cluster.
Retrieve information for the given nodegroup in a cluster .
def get_one(self, cluster_id, nodegroup_id):
        """Retrieve information for the given nodegroup in a cluster.

        :param id: cluster id.
        :param resource: nodegroup id.
        """
        context = pecan.request.context
        policy.enforce(context, 'nodegroup:get', action='nodegroup:get')
        if context.is_admin:
            policy.enforce(context, "nodegroup:get_one_all_projects",
                           action="nodegroup:get_one_all_projects")
            context.all_tenants = True
        cluster = api_utils.get_resource('Cluster', cluster_id)
        nodegroup = objects.NodeGroup.get(context, cluster.uuid, nodegroup_id)
        return NodeGroup.convert(nodegroup)
def get_one ( self , cluster_id , nodegroup_id ) : context = pecan . request . context policy . enforce ( context , 'nodegroup:get' , action = 'nodegroup:get' ) if context . is_admin : policy . enforce ( context , "nodegroup:get_one_all_projects" , action = "nodegroup:get_one_all_projects" ) context . all_tenants = True cluster = api_utils . get_resource ( 'Cluster' , cluster_id ) nodegroup = objects . NodeGroup . get ( context , cluster . uuid , nodegroup_id ) return NodeGroup . convert ( nodegroup )