Description: Generates a signed url for the provided repository path, providing temporary access to download artifacts. User may provide expiry or valid_for_secs optional parameter. With a maximum timeframe of one year (365 days). Default expiry is 24 hours.
Note
This API is available only to Artifactory Cloud Enterprise and Cloud Enterprise+ users.
The JSON included in the request URL cannot include %20.
Since: Artifactory 7.5.0
Security: Requires a privileged user (admin or manage permission type)
Usage: POST /artifactory/api/signed/url
Produces: application/json (the string with the signed URL)
Sample Usage:
curl -X POST "https://hts1.jfrog.io/artifactory/api/signed/url" -H "Content-Type: application/json" <username:password> -d '{ "repo_path": "/example/openssl-1.0.1a.tgz", "valid_for_secs":10000 }' https://hts1.jfrog.io/artifactory/example/openssl-1.0.1a.tgz?sig=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJyYXN1bCIsInVpLnJlcXVlc3QiOiJmYWxzZSIsInN1bSI6IjgwMTFmYWYzMTczNTUyYTdmMDkwYzM1NjQzMzFhMTFlNzJlMWU2YjdmNzRmYjkyMWE3M2MzY2VkOGRmMDE2NTkiLCJleHAiOjE3NDAwODQ3ODEsImlhdCI6MTc0MDA3NDc4MX0.KRk904Qr8tPlx5Xf7wWTQgshYjowi2XnlVHfDd-MufE%
| Full path to the artifact. |
| Number of seconds since generation before the URL expires. |
| An expiry date for the URL after which the URL will be invalid, expiry value is in Unix epoch time in milliseconds. |
Example Download resource using the signed URL:
curl "https://name.jfrog.io/artifactory/example-repo-local/1.java?sig=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJlbGlnIiwic3VtIjoiY2QwZjRiMGY4ODQ0Y2VjN2M2OWI2NWI4ZTA4NTVjNmE0ZDgzMDE1OTE0NDEwN2E5YTczOThlNWM5MDY3MTBiNyIsImV4cCI6MTU0NzM5MTgyNiwiaWF0IjoxNTQ3MzgxODI2fQ.PLCBySll85H9fOAtxabrMBbCZ2lBTcJmYORWxXS6Mmw"