Search
Search
The platform provides system methods to search and filter results by their metadata. For example, /system/findDataObjects can return a list of all data objects that you can access, filtered by name, tags, types, regions, properties, and other metadata attributes.
Regular Expressions and Globbing
In some of these routes, you can restrict your search to names matching a particular regular expression or a glob (wildcard pattern). For the glob pattern, the wildcard * matches a string of any length and the wildcard ? matches a single character. (The bracket notation [] is not supported.) If you are searching for the actual characters "_", "?", or "\", escape them with a backslash, for example, "\_a\?xfoo\" matches the exact string "*a?xfoo\".
Pagination of Results
The limit and starting input parameters, together with the next output field, can be used to paginate the results. The limit parameter determines the maximum number of returned results. If there are more results than limit allowed for, then next is non-null and may be used as the starting argument for a subsequent call. If the call is repeated with the starting input parameter set to the previous call's next return value, then the next unique subset of results is returned. Repeat this process until next is null to retrieve all results.
Search API Method Specifications
API method: /system/findDataObjects
/system/findDataObjectsSpecification
Searches for data objects satisfying particular constraints. By default this returns all entities and objects for which the user has at least "VIEW" permission (permission acquired by PUBLIC nature of a project is not counted in this criterion). This constraint cannot be removed. However, additional constraints can be specified that can further restrict the objects that are returned.
Ordering of results: Data objects from the same project always appear together in the search results in descending order of their last modified timestamp, unless overwritten by the sortBy input field. Ties are broken in ascending order of their IDs.
Inputs
classstring (optional) The entity type to restrict the search by. Must be one of "record", "file", "applet", "workflow".statestring (optional, default "any") One of the values: "open", "closing", "closed", or "any".visibilitystring (optional, default "visible") One of the values: "hidden", "visible", or "either".namestring or mapping (optional) If a string, the exact case-sensitive name that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the name of all results must matchflagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expressionglobstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the name of all results must match. The valid wildcard characters are '*' (0 or more characters) and '?' (1 character).
idarray of strings (optional) If provided, results must have object IDs among the provided list of IDs. If the ID is not accessible to the user or does not exist, that ID is not included in the results array. The array may have no more than 1000 elements. The number of results may exceed the number of IDs provided here because an object appears once in the results for each accessible project it is found in, unlessscope.projectis set.typestring or mapping (optional) Specifies the types that matching results must have. Can be provided in the following ways:A string to match a single type exactly, for example,
"gene".An AND condition requiring all specified types to match, for example,
{"$and": ["gene", "coding"]}.An OR condition requiring at least one specified type to match, for example,
{"$or": ["gene", "transcript"]}.Complex nested conditions:
{"$or": ["gene", {"$and": ["transcript", "protein"]}]}.
tagsstring or mapping (optional) Specifies the tags that matching results must have. Can be provided in the following ways:A string to match a single tag exactly, for example,
"validated".An AND condition requiring all specified tags to match, for example,
{"$and": ["validated", "curated"]}.An OR condition requiring at least one specified tag to match, for example,
{"$or": ["validated", "provisional"]}.Complex nested conditions:
{"$or": ["validated", {"$and": ["curated", "published"]}]}.
regionstring or array of strings (optional) If a string, then the result set contains only entities whose associatedregionmatches the string. If an array, then the result set contains only entities whose associatedregionis one of the specified strings.propertiesmapping (optional) Specifies the properties that matching results must have. Can be provided in the following ways:A mapping of key-value pairs where each key is a property name and each value can be:
A string: The property must have exactly this value, for example,
{"species": "human"}.A boolean
true: The property must exist with any value, for example,{"sequenced": true}.A boolean
false: The property must not exist, for example,{"deprecated": false}.The mapping
{$ne: value}: The property must not equal the specified value, for example,{"species": {$ne: "mouse"}}.
An AND condition requiring all specified property constraints to match, for example,
{"$and": [{"species": "human"}, {"sequenced": true}]}.An OR condition requiring at least one specified property constraint to match, for example,
{"$or": [{"species": "human"}, {"species": "mouse"}]}.Complex nested conditions:
{"$or": [{"species": "human"}, {"$and": [{"sequenced": true}, {"quality": "high"}]}]}.
linkstring (optional) An object ID to which matching objects must link to in their detailsscopemapping (optional) Restrict the search to a particular projectprojectstring ID of the project in which all results must residefolderstring (optional, default "/") Folder path inprojectin which all results must residerecurseboolean (optional, default true) Whether the search should be performed recursively on subfolders as well
sortBymapping (optional) Changes the ordering that the result set is returned in. Must be specified with thescopefield.fieldstring The field that determines the sort order of the result set. Acceptable values:createdorderingstring The arrangement of the result set based on the field. One ofascendingordescending
levelstring (optional, default "VIEW") One of: "VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER", representing the minimum permissions level by which to restrict the list of projects searchedmodifiedmapping (optional) If at least one of the following keys is specified, the resulting data objects must have been last modified in the indicated time period. If not specified, there is no constraint on when the data object was last modified. If amodifiedhash does not contain at least one of the following keys, an error is thrown.aftertimestamp (optional) If specified, only return results that were last modified at or after this timebeforetimestamp (optional) If specified, only return results that were last modified at or before this time
createdmapping (optional) If at least one of the following keys is specified, the resulting data objects must have been created in the indicated time period. If not specified, there is no constraint on data object creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.aftertimestamp (optional) If specified, only return results created at or after this timebeforetimestamp (optional) If specified, only return results created at or before this time
describeboolean or mapping (optional, default false) Either false to indicate that no extra metadata should be retrieved with the results, or a mapping representing the input that would be used for calling "describe" on each of the returned results.startingmapping (optional) Continue a previous query that had reached its limit. The non-null value that was returned asnextin the query's output should be provided here.limitint (optional, default 1000) Maximum number of results that may be returned. Must be between 1 and 1000 (inclusive).archivalStatestring (optional, default "any") One of the values: "archived", "live", "archival", "unarchiving", or "any". Requires the additional input class having the value "file".scope.projectandscope.foldermust also be set.
Outputs
resultsarray of mappings List of results, each with the following fields:projectstring ID of the project in which the result was foundidstring ID of the resultdescribemapping The output of the result's corresponding describe method ifdescribedwas supplied as an input.
nextmapping or null If null, all results were reported inresults. If a mapping, represents the next result that could not be returned becauselimitresults have already been returned. This value should be passed directly tostartingin a subsequent query if more results are desired.
Errors
InvalidInput
The input is not a hash
class(if supplied) is not one of: "record", "file", "applet", or "workflow"state(if supplied) is not one of: "open", "closing", "closed", or "any"visibility(if supplied) is not one of: "hidden", "visible", or "either"level(if supplied) is not one of: "VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER"name(if supplied) is not a string or a mapping such that any of the following is satisfiedflagsis present, but keyregexpis missing or the value supplied toflagsis not "i".Mutually exclusive keys
globandregexpare provided togetherNeither
globnorregexpis present
id(if supplied) is an array containing greater than 1000 elementstype,properties, ortags(if supplied) do not take any of the specified valuesregion(if supplied) is not a supported region. See Regions for more informationmodifiedorcreated(if supplied) does not contain either anafterorbeforetimestamplimitis not between 1 and 1000sortBywas specified without also specifyingscopearchivalStateif supplied, is not one of "archived", "live", "archival", "unarchiving", or "any". Also returns error if the value of class is not "file",scope.projectis not set, orscope.folderis not set.
PermissionDenied
VIEW access to the project specified in
scope.projectis required ifscope.projectis supplied.
API method: /system/findDatabases
/system/findDatabasesSpecification
Searches for database data objects satisfying particular constraints. By default this returns all database objects from projects for which the user has at least "VIEW" permission and which are accessible through the license. Permission acquired by PUBLIC nature of a project is counted in this criterion only when public key of the input is set to true. Additional constraints can be specified that can further restrict the objects that are returned.
Ordering of results: Database data objects from the same project always appear together in the search results in descending order of their last modified timestamp, with ties broken in ascending order of their IDs.
Inputs
databaseNamestring or mapping (optional) If a string, the exact case-sensitivedatabaseNamethat the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that thedatabaseNameof all results must matchflagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expressionglobstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that thedatabaseNameof all results must match. The valid wildcard characters are '*' (0 or more characters) and '?' (1 character).
uniqueDatabaseNamestring or mapping (optional) If a string, the exact case-sensitive uniqueDatabaseName that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the uniqueDatabaseName of all results must matchflagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expressionglobstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the uniqueDatabaseName of all results must match. The valid wildcard characters are '*' (0 or more characters) and '?' (1 character).
visibilitystring (optional, default "visible") One of the values: "hidden", "visible", or "either"regionstring or array of strings (optional) If a string, then the result set contains only entities whose associatedregionmatches the string. If an array, then the result set contains only entities whose associatedregionis one of the specified strings.scopemapping (optional) Restrict the search to a particular projectprojectstring ID of the project in which all results must residefolderstring (optional, default "/") Folder path inprojectin which all results must residerecurseboolean (optional, default true) Whether the search should be performed recursively on subfolders as well
levelstring (optional, default "VIEW") One of: "VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER", representing the minimum permissions level by which to restrict the list of projects searchedpublicboolean (optional, default false) Whether the search should be performed also on PUBLIC projectsmodifiedmapping (optional) If at least one of the following keys is specified, the resulting data objects must have been last modified in the indicated time period. If not specified, there is no constraint on when the data object was last modified. If amodifiedhash does not contain at least one of the following keys, an error is thrown.aftertimestamp (optional) If specified, only return results that were last modified at or after this timebeforetimestamp (optional) If specified, only return results that were last modified at or before this time
createdmapping (optional) If at least one of the following keys is specified, the resulting data objects must have been created in the indicated time period. If not specified, there is no constraint on data object creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.aftertimestamp (optional) If specified, only return results created at or after this timebeforetimestamp (optional) If specified, only return results created at or before this time
describeboolean or mapping (optional, default false) Either false to indicate that no extra metadata should be retrieved with the results, or a mapping representing the input that would be used for calling "describe" on each of the returned results.startingmapping (optional) Continue a previous query that had reached its limit. The non-null value that was returned asnextin the query's output should be provided herelimitint (optional, default 1000) Maximum number of results that may be returned. Must be between 1 and 1000 (inclusive)
Outputs
resultsarray of mappings List of results, each with the following fields:projectstring ID of the project in which the result was foundidstring ID of the resultlevelstring permission level of the project in which the result was founddescribemapping The output of the result's corresponding describe method ifdescribewas supplied as an input
nextmapping or null If null, all results were reported inresults. If a mapping, represents the next result that could not be returned becauselimitresults have already been returned. This value should be passed directly tostartingin a subsequent query if more results are desired.
Errors
InvalidInput
databaseNameoruniqueDatabaseName(if supplied) is not a string or a mapping such that any of the following is satisfied *flagsis present, but keyregexpis missing or the value supplied toflagsis not "i".Mutually exclusive keys
globandregexpare provided togetherNeither
globnorregexpis present
level(if supplied) is not one of: "VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER"region(if supplied) is not one of the supported regions. See Regions for more informationmodifiedorcreated(if supplied) does not contain either anafterorbeforetimestamplimitis not between 1 and 1000
ResourceNotFound
Project specified in
scope.projectorstarting.projectneeds to be under license to be accessible for this action
PermissionDenied
VIEW access to the project specified in
scope.projectis required ifscope.projectis suppliedVIEW access to the project specified in
starting.projectis required ifstartingis supplied
API method: /system/findExecutions
/system/findExecutionsSpecification
Searches for execution (job or analysis) objects.
Ordering of results: Jobs and analyses returned by /system/findExecutions, /system/findJobs, and /system/findAnalyses are sorted by their created timestamp (in descending order, that is, the latest execution appears first). Ties are broken in ascending order of their IDs. Job tries with the same created timestamp and same job ID are returned in an undefined order that is consistent across API calls.
Inputs
classstring (optional) Entity type to restrict the search by. Must be either "job" or "analysis"includeSubjobsboolean (optional, default true) If set to false, only non-subjob executions are returned, which includes master jobs, origin jobs, or analysesincludeRestartedboolean (optional, default false) If set to true, returns information about initial job tries for restarted jobs and jobs within execution subtrees rooted in these initial tries (for jobs belonging to root executions launched after July 12, 2023 00:13 UTC) also to the final job tries and execution subtrees rooted in the final job tries which are returned for bothtrueandfalsevalues of this input argument. When settingincludeRestartedflag to true, use thedescribeinput argument to output the values oftryto distinguish between different tries of the same output job ID.launchedBystring (optional) ID of the user who launched the jobnamestring or mapping (optional) If a string, the exact case-sensitive name that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the name of all results must matchflagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expressionglobstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the name of all results must match. The valid wildcard characters are '*' (0 or more characters) and '?' (1 character).
idarray of strings (optional) If provided, results must have execution IDs among the provided list of IDs. The array may have no more than 1000 elements. Job IDs (if provided) output information for the latest tries./system/describeExecutionscan be used to fetch information about specific job tries.executablestring (optional) ID of the executable (app or applet) that the results were responsible for runningprojectstring (optional) ID of the project context, or the project in which the job was launchedtagsstring or mapping (optional) Specifies the tags that matching results must have. Can be provided in the following ways:A string to match a single tag exactly, for example,
"completed".An AND condition requiring all specified tags to match, for example,
{"$and": ["completed", "verified"]}.An OR condition requiring at least one specified tag to match, for example,
{"$or": ["completed", "in_progress"]}.Complex nested conditions:
{"$or": ["completed", {"$and": ["verified", "reviewed"]}]}.
propertiesmapping (optional) Specifies the properties that matching results must have. Can be provided in the following ways:A mapping of key-value pairs where each key is a property name and each value can be:
A string: The property must have exactly this value, for example,
{"status": "success"}.A boolean
true: The property must exist with any value, for example,{"benchmark": true}.
An AND condition requiring all specified property constraints to match, for example,
{"$and": [{"status": "success"}, {"benchmark": true}]}.An OR condition requiring at least one specified property constraint to match, for example,
{"$or": [{"status": "success"}, {"status": "partial_success"}]}.Complex nested conditions:
{"$or": [{"status": "success"}, {"$and": [{"benchmark": true}, {"quality": "high"}]}]}.
statestring or array of strings (optional) States that the results must be in. Possible values by execution type:Execution typeStatesJob
idle,waiting_on_input,runnable,running,waiting_on_output,done,restarted,restartable,debug_hold,failed,terminating,terminatedAnalysis
in_progress,done,partially_failed,failed,terminating,terminatedQueries to
/system/findExecutionscan use states from either list.rootExecutionstring or array of strings (optional) One or more IDs of the top-level (user-initiated) execution. The results are constrained to executions in those execution trees. IfincludeRestartedinput is set to true, trees for all tries with the specified root executions (all tries of the root executions, and everything rooted in all the tries) are returned for root executions launched after July 12, 2023 00:13 UTC.originJobstring or array of strings (optional) Restrict results to executions which have one of the provided string IDs as an origin job. an origin job is one launched via/app-xxxx/runor/applet-xxxx/run, or as a stage in an analysis. IfincludeRestartedinput is set to true, trees for all tries with the specified origin jobs are returned for origin jobs that belong to root executions launched after July 12, 2023 00:13 UTC.parentJobstring or null (optional) If the value is a string, then all results must be executions directly launched byparentJob. If the value is null, then only executions with no parent job are searched. Use null values for this field andparentAnalysisto restrict the search to root executions only.parentJobTrynon-negative integer (optional) IfincludeRestartedis true andparentJobTryis specified, only the children ofparentJobTryofparentJobare returned. IfparentJobstring is specified butparentJobTryis not specified, only the children of the latestparentJobtry are returned.parentAnalysisstring or null (optional) If the value is a string, then all results must be executions launched as stages ofparentAnalysis. If the value is null, then only executions which do not have a parent analysis are searched. Use null values for this field andparentJobto restrict the search to root executions only.createdmapping (optional) If at least one of the following keys is specified, the resulting execution objects must have been created in the indicated time period. If not specified, there is no constraint on execution object creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.aftertimestamp (optional) If specified, only return results created at or after this timebeforetimestamp (optional) If specified, only return results created at or before this time
describeboolean or mapping (optional, default false) False indicates that no extra metadata should be retrieved with the results. A mapping represents the input that would be used for calling the corresponding "describe" API method on each of the returned results. A value of true is equivalent to the empty hash input. The mapping should be of the format{"fields": {"field1": true, "field2": true, ...}}.startingstring (optional) Continue a previous query that had reached its limit. The non-null value that was returned asnextin the query's output should be provided herelimitint (optional, default 1000) Maximum number of results that may be returned. Must be between 1 and 1000 (inclusive)
Outputs
resultsarray of mappings List of results, each with the following fields:idstring ID of the resultdescribemapping The output of the result's corresponding describe method ifdescribewas set as an input
nextstring or null If null, all results were reported inresults. If a string, represents the next result that could not be returned becauselimitresults have already been returned. This value should be passed directly tostartingin a subsequent query if more results are desired.
Errors
InvalidInput
idinput cannot be specified withincludeRestartedset totrueparentJobTrycannot be specified without specifyingparentJobinputparentJobTrycannot be specified withoutincludeRestartedset totrue
See Errors (Protocols) for additional information.
API method: /system/findAnalyses
/system/findAnalysesThis method is the same as /system/findExecutions with the class constraint set to "analysis".
API method: /system/findJobs
/system/findJobsThis method is the same as /system/findExecutions with the class constraint set to "job".
API method: /system/findApps
/system/findAppsSpecification
This route provides functionality to search for apps. The ordering of results is arbitrary. Only apps for which the requesting user has access to are returned. This includes apps where the user is on the authorized users list.
Inputs
namestring or mapping (optional) If a string, the exact case-sensitive name that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the name of all results must matchflagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expressionglobstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the name of all results must match. The valid wildcard characters are '*' (0 or more characters) and '?' (1 character).
categorystring or mapping (optional) Specifies the category or categories that matching apps must have. Can be provided in the following ways:A string to match a single category exactly, for example,
"Alignment".An AND condition requiring all specified categories to match, for example,
{"$and": ["Alignment", "NGS"]}.An OR condition requiring at least one specified category to match, for example,
{"$or": ["Alignment", "Variant Calling"]}.Complex nested conditions:
{"$or": ["Alignment", {"$and": ["NGS", "RNA-Seq"]}]}.
allVersionsboolean (optional, default false) Whether to remove the restriction that only app versions tagged with "default" are returnedpublishedboolean (optional) If true, only published apps are returned. If false, only unpublished apps are returnedbillTostring or array of strings (optional) If a string, then the result set contains only apps whosebillTomatches the string. If an array, then the result set contains only apps whosebillTois one of the specified entities.createdBystring (optional) ID of the user who created the appdeveloperstring (optional) ID of a developer the app must haveauthorizedUserstring (optional) userID, orgID or "PUBLIC" that must exist in each app'sauthorizedUserslistmodifiedmapping (optional) If at least one of the following keys is specified, the resulting apps must have been last modified in the indicated time period. If not specified, there is no constraint on when the app was last modified. If amodifiedhash does not contain at least one of the following keys, an error is thrown.aftertimestamp (optional) If specified, only return results that were last modified at or after this timebeforetimestamp (optional) If specified, only return results that were last modified at or before this time
createdmapping (optional) If at least one of the following keys is specified, the resulting apps must have been created in the indicated time period. If not specified, there is no constraint on app creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.aftertimestamp (optional) If specified, only return results created at or after this timebeforetimestamp (optional) If specified, only return results created at or before this time
describeboolean or mapping (optional, default false) False indicates that no extra metadata should be retrieved with the results. A mapping represents the input that would be used for calling /app-xxxx/describe on each of the returned results. a value of true is equivalent to the empty hash input.startingstring (optional) Continue a previous query that had reached its limit. the value that was returned asnextin the query's output should be provided herelimitint (optional, default 1000) Maximum number of results that may be returned. Must be between 1 and 1000 (inclusive)
Outputs
resultsarray of mappings List of results, each with the following fields:idstring ID of the resultdescribemapping The output of the result's corresponding describe method if thedescribemethod was set as an input
nextstring or null If null, all results were reported inresults. If a string, represents the next result that could not be returned becauselimitresults have already been returned. This value should be passed directly tostartingin a subsequent query if more results are desired.
Errors
API method: /system/findProjects
/system/findProjectsSpecification
Find projects accessible to a user or job at a given permission level.
Ordering of results is:
Descending by last modified time stamp, then
Ascending by ID
Inputs
namestring or mapping (optional) If a string, the exact case-sensitive name that the results must have. If a mapping, then it can have a subset of the following fields:regexpstring (mutually exclusive withglob, required ifglobis not present) A PCRE (external link) regular expression that the name of all results must matchflagsstring (optional, can only be present ifregexpis present) This field can only have value "i", which denotes that case-insensitive matching should be performed with the regular expressionglobstring (mutually exclusive withregexp, required ifregexpis not present) A wildcard pattern that the name of all results must match. The valid wildcard characters are '*' (0 or more characters) and '?' (1 character).
idarray of strings (optional) If provided, results must have project IDs among the provided list of IDs. The array may have no more than 1000 elements.billTostring or array of strings (optional) If a string, then the result set contains only projects whosebillTomatches the string. If an array, then the result set contains only projects whosebillTois one of the specified strings.cloudAccountstring (optional) If specified, the result set contains only projects that are associated with the provided cloud account ID.providerstring (optional) If specified, the result set contains only projects that are associated with the provider ID.regionstring or array of strings (optional) If a string, then the result set contains only projects whoseregionmatches the string. If an array, then the result set contains only projects whoseregionis one of the specified strings.tagsstring or mapping (optional) Specifies the tags that matching results must have. Can be provided in the following ways:A string to match a single tag exactly, for example,
"production".An AND condition requiring all specified tags to match, for example,
{"$and": ["production", "validated"]}.An OR condition requiring at least one specified tag to match, for example,
{"$or": ["production", "development"]}.Complex nested conditions:
{"$or": ["production", {"$and": ["validated", "reviewed"]}]}.
propertiesmapping (optional) Specifies the properties that matching results must have. Can be provided in the following ways:A mapping of key-value pairs where each key is a property name and each value can be:
A string: The property must have exactly this value, for example,
{"department": "genomics"}.A boolean
true: The property must exist with any value, for example,{"confidential": true}.
An AND condition requiring all specified property constraints to match, for example,
{"$and": [{"department": "genomics"}, {"confidential": true}]}.An OR condition requiring at least one specified property constraint to match, for example,
{"$or": [{"department": "genomics"}, {"department": "proteomics"}]}.Complex nested conditions:
{"$or": [{"department": "genomics"}, {"$and": [{"confidential": true}, {"status": "active"}]}]}.
levelstring (optional, default "CONTRIBUTE") Must be one of "VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER" to represent the minimum permissions level of the project results to be returnedexplicitPermissionboolean (optional) If a value of true is provided, then the results are restricted to projects for which there is at least one explicit or implicit permission. If false, then the results are restricted to public projects for which the user has neither explicit nor implicit permissionspublicboolean (optional) If set to true, then only public projects are included in result. If false, then no public project is included in result.createdmapping (optional) If at least one of the following keys is specified, the resulting projects must have been created in the indicated time period. If not specified, there is no constraint on project creation time. If acreatedhash does not contain at least one of the following keys, an error is thrown.aftertimestamp (optional) If specified, only return results created at or after this timebeforetimestamp (optional) If specified, only return results created at or before this time
describeboolean or mapping (optional, default false) False indicates that no extra metadata should be retrieved with the results. A mapping represents the input that would be used for calling /project-xxxx/describe on each of the returned results. a value of true is equivalent to the empty hash input.startingstring (optional) Continue a previous query that had reached its limit. the value that was returned asnextin the query's output should be provided herecontainsPHIboolean (optional) If set to true, only projects that contain PHI data are retrieved. If set to false, only projects that do not contain PHI data are retrieved.externalUploadRestrictedboolean (optional) If provided, only projects with the specifiedexternalUploadRestrictedsetting are retrieved.limitint (optional, default 1000) Maximum number of results that may be returned. Must be between 1 and 1000 (inclusive)sharedWithstring (optional) If specified, the results are restricted to projects that are explicitly shared with the specified user ID, organization ID, or the string "PUBLIC" for public projects
Outputs
resultsarray of mappings List of results, each with the following fields:idstring ID of the resultlevelstring Maximal permission level (one of "VIEW", "UPLOAD", "CONTRIBUTE", "ADMINISTER") held by the requesting user/job (either directly or through an organization)permissionSourcesarray of strings (present only if an unrestricted login token is used to make this API call) IDs of the sources that were granted the maximal permission levellevelthrough which the requesting user has access. Possible values are the user's ID, organization IDs, or the string "PUBLIC" for public projectspublicboolean Whether the project is publicdescribemapping The output of the result's corresponding describe method ifdescribewas set as an input
nextstring or null If null, all results were reported inresults. If a string, represents the next result that could not be returned becauselimitresults have already been returned. This value should be passed directly tostartingin a subsequent query if more results are desired.
Errors
API method: /system/findProjectMembers
/system/findProjectMembersSpecification
Returns a list of all the members (user, team, or organization) of a project.
Ordering of results is:
Ascending by member ID.
Inputs
projectstring ID of the projectlevelstring (optional, default "VIEW") Must be one of "VIEW", "UPLOAD", "CONTRIBUTE", or "ADMINISTER", to represent the minimum permissions level that the members must have (granted directly to them)describeboolean (optional, default false) Whether describe should be called for all resultsstartingstring (optional) Continue a previous query that had reached its limit. the value that was returned asnextin the query's output should be provided herelimitint (optional, default 1000) Maximum number of results that may be returned. Must be between 1 and 1000 (inclusive)
Outputs
resultsarray of mappings List of results, each with the following fields:idstring ID of the project memberlevelstring Permission level for the given project granted directly to the memberdescribemapping Metadata about the project member if thedescribeinput was set containing the following fields:idstring ID of the memberclassstring Either "user" or "org"permittedRegionsarray of strings The regions this member can operate inThe following keys are present if
classis "user":firststring The user's first namelaststring The user's last namemiddlestring The user's middle namehandlestring The user's username or handleThe following key is present if
classis "org":namestring Organization name
publicboolean Whether the project is publicnextstring or null If null, all results were reported inresults. If a string, represents the next result that could not be returned becauselimitresults have already been returned. This value should be passed directly tostartingin a subsequent query if more results are desired.
Errors
InvalidInput
The input is not a hash
level, if provided, is not a recognized permissions level
PermissionDenied
VIEW access to the project is required
API method: /system/findOrgs
/system/findOrgsSpecification
Lists orgs in which the requesting user has at least the specified membership level, subject to additional query constraints.
Ordering of results: Orgs are returned in ascending order by their IDs.
Inputs
idarray of strings (optional) If provided, results are limited to the org IDs included in the array. The array may have no more than 1000 elements.levelstring one of "ADMIN" or "MEMBER". The results contain only orgs in which the requesting user has at least the specified membership level.allowBillableActivitiesboolean (optional) if a boolean, then the results contain only orgs in which the requesting user either has (true) or does not have (false) theallowBillableActivitiesmembership permission.describeboolean or mapping (optional, default false) if a mapping, then it represents the input that is used to describe each of the results. true indicates that the empty mapping is used. A value of false indicates that no extra metadata be retrieved with the results.startingmapping (optional) mapping used to continue a previous query that had reached its limit. the non-null value that was returned asnextin the output of that query should be specified here.limitint (optional, default 1000) maximum number of results that may be returned. Must be between 1 and 1000 (inclusive)
Outputs
resultsarray of mappings list of results, each with the following fields:idstring org ID.describemapping the output of describing the corresponding org ifdescribeis set as an input
nextmapping or null if null, then all results were returned inresults. Otherwise, represents the next result that could not be returned becauselimitresults have already been returned. If a mapping, then this value should be specified as thestartinginput in a subsequent query if more results are desired.
Errors
PermissionDenied
The requesting user does not have a full scope token
Last updated
Was this helpful?