{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-find-image-response-schema.json",
  "title": "FindImageResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-images-api-openapi.yml#/components/schemas/FindImageResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ImageResponse"
      }
    },
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/SelfLinks"
        }
      ]
    }
  },
  "required": [
    "data",
    "_links"
  ],
  "$defs": {
    "ImageResponse": {
      "type": "object",
      "properties": {
        "imageId": {
          "type": "string",
          "description": "Image's id"
        },
        "tenantId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer tenant id",
          "enum": [
            "DE",
            "INT"
          ]
        },
        "customerId": {
          "type": "string",
          "minLength": 1,
          "description": "Customer ID"
        },
        "name": {
          "type": "string",
          "description": "Image Name"
        },
        "description": {
          "type": "string",
          "description": "Image Description"
        },
        "url": {
          "type": "string",
          "description": "URL from where the image has been downloaded / provided."
        },
        "sizeMb": {
          "type": "number",
          "description": "Image Size in MB"
        },
        "uploadedSizeMb": {
          "type": "number",
          "description": "Image Uploaded Size in MB"
        },
        "osType": {
          "type": "string",
          "description": "Type of operating system (OS)"
        },
        "version": {
          "type": "string",
          "description": "Version number to distinguish the contents of an image. Could be the version of the operating system for example."
        },
        "format": {
          "type": "string",
          "description": "Image format",
          "enum": [
            "iso",
            "qcow2"
          ]
        },
        "status": {
          "type": "string",
          "description": "Image status (e.g. if image is still downloading)"
        },
        "errorMessage": {
          "type": "string",
          "description": "Image download error message"
        },
        "standardImage": {
          "type": "boolean",
          "description": "Flag indicating that image is either a standard (true) or a custom image (false)"
        },
        "gpu": {
          "type": "boolean",
          "description": "Flag indicating that image can be used for GPU product."
        },
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "description": "The creation date time for the image"
        },
        "lastModifiedDate": {
          "type": "string",
          "format": "date-time",
          "description": "The last modified date time for the image"
        }
      },
      "required": [
        "imageId",
        "tenantId",
        "customerId",
        "name",
        "description",
        "url",
        "sizeMb",
        "uploadedSizeMb",
        "osType",
        "version",
        "format",
        "status",
        "errorMessage",
        "standardImage",
        "gpu",
        "creationDate",
        "lastModifiedDate"
      ]
    },
    "SelfLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to current resource."
        }
      },
      "required": [
        "self"
      ]
    }
  }
}