Resource: DockerImage
DockerImage represents a docker artifact. The following fields are returned as untyped metadata in the Version resource, using camelcase keys (i.e. metadata.imageSizeBytes): * imageSizeBytes * mediaType * buildTime
| JSON representation |
|---|
{
"name": string,
"uri": string,
"tags": [
string
],
"imageSizeBytes": string,
"uploadTime": string,
"mediaType": string,
"buildTime": string,
"updateTime": string,
"artifactType": string,
"imageManifests": [
{
object ( |
| Fields | |
|---|---|
name |
Required. registry_location, projectId, repository_name and image id forms a unique image name: |
uri |
Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf |
tags[] |
Tags attached to this image. |
imageSizeBytes |
Calculated size of the image. This field is returned as the 'metadata.imageSizeBytes' field in the Version resource. |
uploadTime |
Time the image was uploaded. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
mediaType |
Media type of this image, e.g. "application/vnd.docker.distribution.manifest.v2+json". This field is returned as the 'metadata.mediaType' field in the Version resource. |
buildTime |
The time this image was built. This field is returned as the 'metadata.buildTime' field in the Version resource. The build time is returned to the client as an RFC 3339 string, which can be easily used with the JavaScript Date constructor. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The time when the docker image was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
artifactType |
ArtifactType of this image, e.g. "application/vnd.example+type". If the |
imageManifests[] |
Optional. For multi-arch images (manifest lists), this field contains the list of image manifests. |
ImageManifest
Details of a single image manifest within a multi-arch image.
| JSON representation |
|---|
{ "architecture": string, "os": string, "digest": string, "mediaType": string, "osVersion": string, "osFeatures": [ string ], "variant": string } |
| Fields | |
|---|---|
architecture |
Optional. The CPU architecture of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", "s390x", "riscv64", "mips64le", etc. |
os |
Optional. The operating system of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", etc. |
digest |
Optional. The manifest digest, in the format "sha256: |
mediaType |
Optional. The media type of the manifest, e.g., "application/vnd.docker.distribution.manifest.v2+json" |
osVersion |
Optional. The OS version of the image, for example on Windows |
osFeatures[] |
Optional. The required OS features for the image, for example on Windows |
variant |
Optional. The variant of the CPU in the image, for example |
Methods |
|
|---|---|
|
Gets a docker image. |
|
Lists docker images. |