I'm trying to use the Artifactory Rest API to retrieve the latest published version of a file. The file in question is a simple zip of a bunch of YAML files used for configuration. I can upload and download these files in TeamCity using File Specs, however I can't find any reference of this functionality in the Rest API docs (or indeed, any way to do almost anything that isn't an action on a maven repository)
Use Artifactory Rest API to get most recent (non-maven) file
672 Views Asked by pinkie At
2
There are 2 best solutions below
0
Muhammed Kashif
On
As you are already using the file specs, you can make use of the same file spec and use the Artifactory query language (AQL) to get the list of files. You can refer to example 2 here in this list.
Related Questions in REST
- Query parameter works fine with fastapi application when tested locally but not working when the FastAPI application is deployed on AWS lambda
- Add an http GET/POST entry point to a Django with channels websocket
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Flutter connection to a local api
- Accessing REST API Status Codes using Azure Data Factory Copy Activity (or similar)?
- Mass Resource deletion in REST
- why when I check endpoint /tasks, an error always appears "error : invalid token" even though I have entered the appropriate token that I got
- How to prevent users from creating custom client apps?
- How to create a REST API with .NET Framework?
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- Put Request throwing 401 [no body] Unauthorized
- Converting img src data to octet-stream
- Implementing Email Verification and Notification System in a Full-Stack Application with React Frontend and Node Backend
- Micronaut - Add Controller from external library
- Moving Template or OVA to Datastore using vCenter API
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 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
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 # Hahtags
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 define and use a custom Repository Layout. This way, in order to download the latest version of the file, you can use the
[RELEASE]placeholder. The actual latest version will be automatically resolved by the extracted version value based on the layout.See also: