You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only downside of the Google Artifact Registry RPC API is that there is no documentation (that I could find) or examples of what a valid format the Parent or Name argument that these calls take.
Most people expect to supply a Docker Registry URL like: docker://us-central1-docker.pkg.dev/gcp-project/myrepo/myapp:mytag@sha256:2dd6956aa4f462badb7aa445f73092b19e55e2be2c03bee4ec230700963b3f55
ListRepositories RPC API wants Parent in the format projects/%s/locations/%s, for example:
projects/gcp-project/locations/us-central1
If you have a Docker URL with a Docker Tag without the Docker SHA256, you can use GetTag and from that response extract the Version. Then you can pass that Version SHA256 to GetDockerImage.
The text was updated successfully, but these errors were encountered:
Thanks for the feedback. This is currently a per-api problem that should be reported to individual services. I would request that you open a similar issue in the public Artifact Registry Issue Tracker. That being said I think there is also potentially more we can do here from the libraries perspective directly. This problem has been identified in the past and we are currently tracking the generic issue here. Please follow that issue for any updates. Thanks again for the feedback.
The only downside of the Google Artifact Registry RPC API is that there is no documentation (that I could find) or examples of what a valid format the Parent or Name argument that these calls take.
Most people expect to supply a Docker Registry URL like:
docker://us-central1-docker.pkg.dev/gcp-project/myrepo/myapp:mytag@sha256:2dd6956aa4f462badb7aa445f73092b19e55e2be2c03bee4ec230700963b3f55
Instead, we have to construct a valid
Name
/Parent
string in a different format for each ofGetTagRequest
,ListDockerImagesRequest
andGetDockerImageRequest
operations.GetTag
response returns aTag
.ListDockerImages
andGetDockerImage
responses are composed ofDockerImage
objects.GetDockerImage
RPC API requires you to pass in a Name in the formatprojects/%s/locations/%s/repositories/%s/packages/%s@%s
. For example:ListDockerImages
RPC API wants Parent in the formatprojects/%s/locations/%s/repositories/%s
, for example:GetTag
RPC API wants Name in the formatprojects/%s/locations/%s/repositories/%s/packages/%s/tags/%s
, for example:ListRepositories
RPC API wants Parent in the formatprojects/%s/locations/%s
, for example:If you have a Docker URL with a Docker Tag without the Docker SHA256, you can use
GetTag
and from that response extract the Version. Then you can pass that Version SHA256 toGetDockerImage
.The text was updated successfully, but these errors were encountered: