I read the REST api again and again but couldn't figure out the exact syntax of how to search for an artifact in the artifactory using curl.
This is what I am doing:
result=$(curl -u ${ArtifactoryUsername}:${ArtifactoryAPIKey} -X GET "${artifactory_repo}/api/search/artifact?name=${generated_package_name}")
echo "${result}"
Here, artifactory_repo is
https://xxx.artifactory.xxx.com:443/artifactory/hyc-ca-container-helm-local
and hyc-ca-container-helm-local is my repo which I already appended on the end of my artifactory url
The file is there in the artifactory but I am getting the message file not found. I am sure the reason is that the syntax I am using is incorrect.
Can anyone guide me here?