Filter Types

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

The following describes the available filter names you can use to construct a filter for each of the query types.

PackageFilter!

Filter Name

Type

Description

Example

name

Case sensitive pattern

Match package names against a pattern.

name: "arti*"

packageTypeIn

[PackageType!]

Match packages of one of the given types.

packageTypeIn: [BOWER, COCOAPODS]

createdMin

Time

Match packages with a "created date" equal or after provided date.

createdMin: "2019-12-25T00:00:01.000Z"

createdMax

Time

Match packages with a "created date" equal or before provided date.

createdMax: "2019-12-25T00:00:01.000Z"

modifiedMin

Time

Match packages with a "modified date" equal or after provided date.

modifiedMin: "2019-12-25T00:00:01.000Z"

modifiedMax

Time

Match packages with a "modified date" equal or before provided date.

modifiedMax: "2019-12-25T00:00:01.000Z"

latestVersion

Case sensitive pattern

Match packages with the latest version matching the provided pattern.

latestVersion: "*ersion*"

versionCountMin

Int

Match packages with at least a certain amount of versions.

versionCountMin: 1

versionCountMax

Int

Match packages with at most a certain amount of versions.

versionCountMax: 1

VersionFilter!

Filter Name

Type

Description

Example

name

Case sensitive pattern

Match version names against a pattern

name: "*1.1*"

createdMin

Time

Match versions with a "created date" equal or after provided date.

createdMin: "2019-12-25T00:00:01.000Z"

createdMax

Time

Match versions with a "created date" equal or before provided date.

createdMax: "2019-12-25T00:00:01.000Z"

sizeMin

String

Match versions with size greater than or equal to provided size.

sizeMin: "100"

sizeMax

String

Match versions with size less than or equal to provided size.

sizeMax: "100"

licenses

List Filter

Match versions with licenses.

licenses: {patterns: ["*gpl", "apache"]}

tags

List Filter

Match versions with tags.

tags: {patterns: ["tag*","?tag*"]}

properties

[NameValuePattern!]

Match versions with a specific set of properties.

properties: [{name:"*key1", value:"*value1"}, {name:"*key2", value:"*value2"}]

vulnerabilities

[VulnerabilitiesFilter!]

Match versions with vulnerabilities.

vulnerabilities: [{level: LOW, countMin: 3}, {level: HIGH, countMin: 5}]

FileFilter!

Filter Name

Type

Description

Example

name

Case sensitive pattern

Match file names

name: "*1.1*"

sizeMin

String

Match files with size greater than or equal to provided size.

sizeMin: "100"

sizeMax

String

Match files with size less than or equal to provided size

sizeMax: "100"

md5

Case sensitive pattern

Match MD5 hashes against a pattern

md5: "5eb63bbbe01eeed093cb22bb8f5*"

sha1

Case sensitive pattern

Match SHA-1 hashes against a pattern

sha1: "2aae6c35c94fcfb415dbe95f408b9ce91*"

sha256

Case sensitive pattern

Match SHA-256 hashes against a pattern

sha256: "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9*"