user1578872
user1578872

Reputation: 9068

Jfrog API for list docker tags

Getting 302 for the JFrog REST api for listing docker tags.

Documentation:

Usage:

GET /api/docker/{repo-key}/v2/{image name}/tags/list?n=<n from the request>&last=<last tag value from previous response>

My query:

So myquery is:

Response:

<html>
<head><title>302 Found</title></head>
<body>
    <center><h1>302 Found</h1></center>
    <hr><center>nginx/1.17.5</center>
</body>
</html>

Upvotes: 7

Views: 12512

Answers (1)

molu8bits
molu8bits

Reputation: 91

Artifactory API is exposed under /artifactory/api... path. At least for my Pro and JCR versions configured with nginx subdomains.

Try following paths:

  1. Using general artifactory url:

    curl -u user:pass https://jfrog.test.com/artifactory/api/docker/docker-local/v2/my-docker-image/tags/list?
    
  2. If you're using subdomain and reverse proxies e.g. image is available at docker-local.test.com/my-docker-image:latest than following path should be correct as well:

    curl -u user:pass https://docker-local.test.com/artifactory/api/docker/docker-local/v2/my-docker-image/tags/list?
    

For both cases /artifactory/api/docker are always. docker-local is the name of the repo (local or virtual) and my-docker-image is the name of the image. Probably for your path you should replace my-docker-image with eric/com.jfrog/test-app.

Upvotes: 8

Related Questions