Sharon-
You should be able to use a robot account within your organization to do this. If you don't have one already, set one up with at least "Read" permission on all repos that you want to expose. Then you can grab the docker credentials config from quay.io's web page (click on Robot account, then "Docker Configuration", click the little link "View xyz-auth.json". You'll see the auth token there inside the JSON fragment.
To get the proper V2 token (assume $TOKEN has the robot token)_:
$ curl -L -X GET -H "Authorization: Basic $TOKEN" "https://quay.io/v2/auth?service=quay.io&scope=repository:<yourorg>/<somerepo>:pull,push"
{"token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZC..
Grab that token (assume it's in $DTOKEN), and you can use it with the /v2 API - this will show all repos that robot token can see:
$ curl -L -X GET -H "Authorization: Bearer $DTOKEN" https://quay.io/v2/_catalog {"repositories":["<yourorg>/<repo1>","<yourorg>/<repo2>","<yourorg>/<repo3>","<yourorg>/<repo4>"]}
Hope that helps.
Bill
--
You received this message because you are subscribed to the Google Groups "quay-sig" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quay-sig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quay-sig/0035e468-78de-45dc-a4a9-0fcf34da01f4n%40googlegroups.com.
-- Bill Dettelback Engineering Manager - Red Hat Quay, OpenShift Image Registry M: 732-991-0052 https://www.redhat.com/en/technologies/cloud-computing/quay Red Hat respects your work life balance. Therefore there is no need to answer this email out of your office hours.