Red Hat OpenShift Image Streams API

ImageStream and ImageStreamTag resources for container image management

OpenAPI Specification

red-hat-openshift-image-streams-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Red Hat OpenShift Container Platform Add-ons Image Streams API
  description: The OpenShift Container Platform REST API extends the Kubernetes API with OpenShift-specific resources for builds, image streams, routes, deployment configs, and project management. The API is organized into groups served at /apis/{group}/{version}. All operations require authentication via Bearer token obtained from the OAuth server. This specification covers the core OpenShift-specific API groups including apps.openshift.io, build.openshift.io, image.openshift.io, route.openshift.io, project.openshift.io, and security.openshift.io.
  version: '4.0'
  contact:
    name: Red Hat OpenShift Support
    url: https://access.redhat.com/support
  termsOfService: https://www.redhat.com/en/about/agreements
servers:
- url: https://api.{cluster}:6443
  description: OpenShift API Server
  variables:
    cluster:
      default: cluster.example.com
      description: OpenShift cluster API hostname
security:
- bearerAuth: []
tags:
- name: Image Streams
  description: ImageStream and ImageStreamTag resources for container image management
paths:
  /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams:
    get:
      operationId: listImageStreams
      summary: List Image Streams
      description: Returns a list of ImageStreams in the specified namespace. ImageStreams provide an abstraction for container image versioning and reference management.
      tags:
      - Image Streams
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/labelSelector'
      responses:
        '200':
          description: List of image streams returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageStreamList'
    post:
      operationId: createImageStream
      summary: Create Image Stream
      description: Creates a new ImageStream for tracking container image versions.
      tags:
      - Image Streams
      parameters:
      - $ref: '#/components/parameters/namespace'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageStream'
      responses:
        '201':
          description: ImageStream created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageStream'
components:
  schemas:
    ImageStreamList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ImageStream'
    ObjectMeta:
      type: object
      properties:
        name:
          type: string
        namespace:
          type: string
        uid:
          type: string
        resourceVersion:
          type: string
        creationTimestamp:
          type: string
          format: date-time
        labels:
          type: object
          additionalProperties:
            type: string
        annotations:
          type: object
          additionalProperties:
            type: string
    ImageStream:
      type: object
      properties:
        apiVersion:
          type: string
          default: image.openshift.io/v1
        kind:
          type: string
          default: ImageStream
        metadata:
          $ref: '#/components/schemas/ObjectMeta'
        spec:
          type: object
        status:
          type: object
  parameters:
    labelSelector:
      name: labelSelector
      in: query
      description: Label selector to filter resources (e.g., app=myapp)
      schema:
        type: string
    namespace:
      name: namespace
      in: path
      required: true
      description: Kubernetes namespace
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
externalDocs:
  description: OpenShift Container Platform API Reference
  url: https://docs.openshift.com/container-platform/latest/rest_api/index.html