countObjects

On this page
Back to index

Summary

Retrieves the count of objects specified by the provided filter.
objectType
Stringrequired
The type of object to query for.
filters
Array<Filter>optional
A list of zero or more filter criteria definitions used to define objects to find.
firstResult
Integeroptional
The first result to be retrieved, numbered from 0.
maxIds
Integeroptional
The maximum number of object IDs to return.
viewName
Stringoptional
The name of the view.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.countObjects( objectType: "test-objectType" /* optional arguments */ )