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 best solutions below
Related Questions in ARTIFACTORY
- How to add multiple jars under one dependency in jfrog Atrifactory
- Pulling previous Artifactory builds into Jenkins workspace for use in comparing SHA-256 hashes
- Maven local artifactory file edit
- Is it possible to use CocoaPods through Nexus repository?
- Deploy custom Maven archetype to Artifactory
- Gradle: updated dependencies not used
- chef cookbook delivery - chef server vs. artifactory + berkshelf
- Artifactory environment variables on CentOS
- Docker Registry vs Nexus/Artifactory
- Publish to artifactory and overwrite existing version with SBT
- Maven + Jenkins + Artifactory
- Artifactory jenkins Integration using gradle
- Jenkins Artifactory Plugin Service Unavailable
- Push\Pull docker images to Artifactory
- unable to troubleshoot err_too_many_redirects error
Related Questions in ARTIFACT
- Resolve workspace artifacts option in Eclipse generates error when one of the resolving projects is opened
- How do I get Travis-CI to show build artifacts?
- IntelliJ android app artifact java.lang.assertionError
- Drools 6 No Connector available to access repository
- how to attach additional binary artifacts without type with maven build-helper-maven-plugin
- Close and release artifact on maven central using gradle
- Intellij's artifacts and log4j - how to run
- Teamcity artifact paths with archive
- Artifacts when Fading problem with IE and Jquery
- Canvas draws artifacts in Safari for animated, filled bezier curves
- is there a way in hudson or with any plugins to archive artifacts from the last X number of successful builds?
- Maven release plugin remove old versions
- Creating a Maven Artifact from (Eclipse) Project, and Generating New Project from it
- Build with dependency in gcp artifact registry
- Creating runable Jar from IntelliJ, trying to run in cmd gives 'Error: Could not find or load main class com.....'
Related Questions in ARTIFACTORY-QUERY-LANG
- Artifactory AQL search for builds on promotion.status
- Artifactory REST API Latest Release Version
- Artifactory AQL Display Checksums
- List all artifacts for a package version using the Artifactory API
- Delete artifacts which are not downloaded for 6 months
- How to quickly return all artifacts and their properties in an Aritfactory repo?
- How to find artifacts from Artifactory that have a specific property value using REST API
- 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?
- Is there any automated way to get artifact download URL back from artifactory?
- How do I ignore certain classifiers when performing gavc search on Artifactory through REST?
- Semantic Versioning in Artifactory Generic Repositories: Range Query
- Create multiple artifactory repositories from json
- Get artifacts with a custom property on its folder
- Looking for Artifactory Query Language example in Java
- JFrog CLI search with json filespec ignoring the include?
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)
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?
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):