ImageStreamLayers [image.openshift.io/v1]

Description

ImageStreamLayers describes information about the layers referenced by images in this image stream.

Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).

Type

object

Required

  • blobs

  • images

Specification

PropertyTypeDescription

apiVersion

string

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

blobs

object

blobs is a map of blob name to metadata about the blob.

blobs{}

object

ImageLayerData contains metadata about an image layer.

images

object

images is a map between an image name and the names of the blobs and config that comprise the image.

images{}

object

ImageBlobReferences describes the blob references within an image.

kind

string

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadata

ObjectMeta_v3

.blobs

Description

blobs is a map of blob name to metadata about the blob.

Type

object

.blobs{}

Description

ImageLayerData contains metadata about an image layer.

Type

object

Required

  • size

  • mediaType

PropertyTypeDescription

mediaType

string

MediaType of the referenced object.

size

integer

Size of the layer in bytes as defined by the underlying store. This field is optional if the necessary information about size is not available.

.images

Description

images is a map between an image name and the names of the blobs and config that comprise the image.

Type

object

.images{}

Description

ImageBlobReferences describes the blob references within an image.

Type

object

PropertyTypeDescription

config

string

config, if set, is the blob that contains the image config. Some images do not have separate config blobs and this field will be set to nil if so.

imageMissing

boolean

imageMissing is true if the image is referenced by the image stream but the image object has been deleted from the API by an administrator. When this field is set, layers and config fields may be empty and callers that depend on the image metadata should consider the image to be unavailable for download or viewing.

layers

array (string)

layers is the list of blobs that compose this image, from base layer to top layer. All layers referenced by this array will be defined in the blobs map. Some images may have zero layers.

API endpoints

The following API endpoints are available:

  • /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams/{name}/layers

    • GET: read layers of the specified ImageStream

/apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams/{name}/layers

Table 1. Global path parameters
ParameterTypeDescription

name

string

name of the ImageStreamLayers

namespace

string

object name and auth scope, such as for teams and projects

Table 2. Global query parameters
ParameterTypeDescription

pretty

string

If ‘true’, then the output is pretty printed.

HTTP method

GET

Description

read layers of the specified ImageStream

Table 3. HTTP responses
HTTP codeReponse body

200 - OK

ImageStreamLayers schema

401 - Unauthorized

Empty