class Artifactory::Resource::Artifact

def checksum_search(options = {})

Returns:
  • (Array) -

Options Hash: (**options)
  • :repos (String, Array) --
  • :sha1 (String) --
  • :md5 (String) --
  • :client (Artifactory::Client) --

Parameters:
  • options (Hash) --

Other tags:
    Example: Search for all artifacts with the given SHA1 checksum in a repo -
    Example: Search for all repositories with the given MD5 checksum -
def checksum_search(options = {})
  client = extract_client!(options)
  params = Util.slice(options, :md5, :sha1, :repos)
  format_repos!(params)
  client.get("/api/search/checksum", params)["results"].map do |artifact|
    from_url(artifact["uri"], client: client)
  end
end