The all() method retrieves the entire set of model objects for all the models in scope. This convenience method is a wrapper for SplunkQuerySet.all().
Use this method in combination with SplunkQuerySet.filter(), SplunkQuerySet.filter_by_app(), SplunkQuerySet.filter_by_user(), and SplunkQuerySet.search() to populate lists or locate specific entities from the pool of models in scope.
qsObj = all()
|
Object |
A SplunkQuerySet object containing a list of all models in scope. |
from splunk.models.base import SplunkRESTModel
class MyAppModel(SplunkRESTModel):
def index(self):
apps = self.all()
class MyAppModel(SplunkRESTModel):
def index(self):
apps = self.all().filter(is_disabled=False)
from splunk.models.base import SplunkRESTModel
class MyAppModel(SplunkRESTModel):
def index(self):
apps = self.all().filter(is_disabled=False)