Create Signed URL

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

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://name.jfrog.io/artifactory/api/signed/url" -H  
"Content-Type: application/json" -uadmin:<your_password> -d  
'{ "repo_path": "/example-repo-local/1.txt", "valid_for_secs":10000 }'
   
201 (Success)

repo_path

Full path to the artifact.

valid_for_secs

Number of seconds since generation before the URL expires.

expiry

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"