Back to index
Summary
This command returns a sorted list of CloudBees CD/RO objects based on an object type and a set of filter criteria. This API can be used to find many, but not all, types of CloudBees CD/RO objects and is used by the CloudBees CD web interface to implement the CloudBees CD/ROSearch
feature.For a list of object types in CloudBees CD/RO, refer to Object types in CloudBees CD/RO. |
objectTypeStringrequiredThe object type to search for. filtersArray<Filter>optionalA list of zero or more filter criteria definitions used to define objects to find. firstResultIntegeroptionalThe first result to be retrieved, numbered from 0. includeAccessBooleanoptionalTrue to fetch the objects' access maps as well. includeEntityRevisionsBooleanoptionalInclude versions/entity revision if it is a revisionable object in the search result. includeLatestRevisionBooleanoptionalInclude the latest revision data for versioned objects. maxIdsIntegeroptionalThe maximum number of object IDs to return. numObjectsIntegeroptionalThe number of objects to return as the first page of results. quickSearchFilterStringoptionalQuick search filter. viewNameStringoptionalThe 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.findObjects( objectType: "test-objectType" /* optional arguments */ )