We have a use case to download or at least list all .xml files from a folder inside a zip in Artifactory from a python script. Is it possible with REST or using AQL ? I am looking for a search query to get all xmls from a folder in zip so that I can use "archive entries download" thing from REST API to make download request for each file individually. Please help me with relevant information about the endpoint or query that I can use to achieve my task(list all xml in a folder in zip). Also please let me know of any other efficient approach to accomplish the task.
Is there a way to fetch list of files belonging to a particular file format from a folder in a zip in Artifactory using REST/AQL?
1.7k views Asked by Anurag Aravala At
1
There are 1 answers
Related Questions in ARTIFACTORY
- Let Artifactory use HTTPS settings
- What is the trigger for JFrog Artifactory to sort a nuget package as "prerelease"?
- Artifactory randomly reports Bad Credentials
- Maven only tries downloading from one repository
- How to list all folders with more then 10 artifacts in artifactory repo using CURL?
- Artifactory Update Error - Migration checksum mismatch for migration 7.25
- Changing the base artifact for gradle plugins
- Download nuspec via NuGet v3 API
- Mount jfrog artifactory with gcs bucket
- "Could not locate artifact" when uploading artifact that already exists?
- Artifactory 404 error from virtual repository where docker pulls fine but crictl does not
- Failed to upload file org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed
- Downloading a Maven dependency from Artifactory results in two JAR and POM files being downloaded
- Jfrog Artifactory REST API Documentation
- Handle replace nodes due to remove or crash at Artifactory
Related Questions in ARTIFACT
- Why do "non-stand-alone" artifacts exist?
- Access df_loaded and/or run_id in Load Data section of best trial notebook of Databricks AutoML run
- Executable generated with gitlab-ci, blocked by Windows Defender (Program:Win32/Wacapew.C!ml)
- JavaFX issues to build an artifact and jar
- Mount jfrog artifactory with gcs bucket
- Merging Sonatype Nexus Repository Volumes for Maven and NPM Artifacts
- Getting error when i try to build image by trigger in kubernetes gcp
- Why adding more artifacts to a gradle publishing section breaks the main artifact?
- How to avoid a gradle build error when a dependency does not exist, compile should be ok anyway
- Azure Devops and uploading a Python package to Artifacts using pipeline | authentication issue
- Azure Artifact - Does not build locally - The type or namespace name 'X' does not exist in the namespace
- Check/Fail Build pipeline if build pipeline artifact has already been published to artifact feed with same version number
- Nuget Pipeline for multi-project repo
- Gradle unable to resolve artifact due to missing POM file in repository
- Updated file is not showing into artifact after successful completion of build pipeline in Azure Devops
Related Questions in ARTIFACTORY-QUERY-LANG
- search property and key value from artifactory
- Artifactory : Not able to publish artifacts (even not anonymously)
- How to sort and fetch the builds in Artifactory using curl/wget
- Is there a way to clean this POST request of backslashes before I send it off?
- AQL match strings with multiple slashes
- How can I output reponame and artefact name in the aql output and if a certain property exists, also output the property?
- JFrog CLI search with json filespec ignoring the include?
- How can I download files from a folder in Artifactory with a specific property using JFrog CLI?
- Write a web frontend for artifactory
- How to get the ADO artifacts API information with curl command and a timestamp?
- How to retrieve a list of projects from Artifactory
- Artifactory AQL sort is ignored when using include
- Sorting artifacts using aql and cleanup old artifacts
- How to return Package name and Checksum in AQL
- Artifactory Query Language - Fetch Artifact Name and Version - Search based on Group
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can use an AQL query to get a list of files from a given path inside an archive.
As an example, lets take the
my-archive.ziparchive deployed in a repository namesmyrepoinsidefolder1folderThe follow AQL query can be used to find all the xml files within this archive under the path
level-1/level-2/level-3:You can run this query using the AQL REST API method and get the following result:
Here is an example of calling this REST API using curl (the query itself is stored in a file called aql.json):