def cluster_nodes(self, state=None, healthy=None):
        path = '/ws/v1/cluster/nodes'
        # TODO: validate state argument

        legal_healthy = ['true', 'false']
        if healthy is not None and healthy not in legal_healthy:
            msg = 'Valid Healthy arguments are true, false'
            raise IllegalArgumentError(msg)

        loc_args = (
            ('state', state),
            ('healthy', healthy),
        )
        params = self.construct_parameters(loc_args)

        return self.request(path, **params)
With the Nodes API, you can obtain a collection of resources, each of
dataset/ETHPy150Open toidi/hadoop-yarn-api-python-client/yarn_api_client/resource_manager.py/ResourceManager.cluster_nodes