How can I assemble curl URL for https://registry-1.docker.io/v2/

I want to get Docker-Content-Digest header.
How can I assemble curl URL for https://registry-1.docker.io/v2/ ?

I wrote the text on gist, because forums says “1) Sorry, new users can only put one embedded media item in a post. 2) Sorry, new users can only put 2 links in a post.”.

Simple mistake.

“dtagdevsec/logstash” instead of “library/dtagdevsec/logstash” was the correct choice.

tadashi@S1056419:~$ TOKEN=$(curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:dtagdevsec/logstash:pull" | jq -r '.token')

tadashi@S1056419:~$ curl --head -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/dtagdevsec/logstash/manifests/2204
HTTP/1.1 200 OK
content-length: 950
content-type: application/vnd.docker.distribution.manifest.v2+json
docker-content-digest: sha256:01ae60146d910da0a779d892a9fe08415778ba4ee20d5c94d5a3d7d5ebc5bdc3