Small correction, the second query should be a PUT request. Here is the
correct one:
*curl -X PUT -uadmin:password
'http://localhost:8081/artifactory/api/storage/libs-release-local/file.jar?properties=os=windows
<http://localhost:8081/artifactory/api/storage/libs-release-local/file.jar?properties=os=windows>'*
On Wed, Nov 4, 2015 at 10:30 PM, Shay Bagants <[email protected]> wrote:
> Hi,
>
> Sure, you can easily tag artifacts with properties, see here
> <https://www.jfrog.com/confluence/display/RTF/Properties>
>
> Property/ies can be added to an artifact through both the REST-API and the
> Web-UI. You can even set the property during the deployment.
>
> Here are some examples:
>
> 1. Deploying a file with 'curl' and setting a property during the
> deployment by using matrix params.
> <https://www.jfrog.com/confluence/display/RTF/Using+Properties+in+Deployment+and+Resolution>
>
> curl -uadmin:password -T file.jar '
> http://localhost:8081/artifactory/libs-release-local/file.jar;property=propertyValue
> '
>
> 2. Setting a property to an existing file in Artifactory by using the Set
> Item Property REST-API
> <https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SetItemProperties>
> query:
>
> curl -uadmin:password '
> http://localhost:8081/artifactory/api/storage/libs-release-local/file.jar?properties=os=windows
> '
>
> You can later search these artifacts by properties with the property
> search REST-API query
> <https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-PropertySearch>,
> property search Web-UI screen
> <https://www.jfrog.com/confluence/display/RTF/Searching+for+Artifacts#SearchingforArtifacts-PropertySearch>,
> and even by using AQL
> <https://www.jfrog.com/confluence/display/RTF/Artifactory+Query+Language>
> (Artifactory Query Language).
>
> I hope that helps,
> Shay
>
> On Thu, Oct 15, 2015 at 12:56 AM, jacpen [via Artifactory] <
> [email protected]> wrote:
>
>> Hi everyone,
>>
>> Is there a way to add certain tags to a file deployed to artifactory, so
>> that if I search that certain tag the files deployed with that tag will
>> show up? Thank you.
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://forums.jfrog.org/Setting-a-tag-to-a-deployed-file-tp7580519.html
>> To start a new topic under Artifactory - Users, email
>> [email protected]
>> To unsubscribe from Artifactory, click here
>> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2380776&code=c2hheWJAamZyb2cuY29tfDIzODA3NzZ8MTU0NDg2MTQ3OA==>
>> .
>> NAML
>> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
--
View this message in context:
http://forums.jfrog.org/Setting-a-tag-to-a-deployed-file-tp7580519p7580556.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users