{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-custom-images-stats-response-schema.json",
  "title": "CustomImagesStatsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-images-api-openapi.yml#/components/schemas/CustomImagesStatsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CustomImagesStatsResponseData"
      }
    },
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/SelfLinks"
        }
      ]
    }
  },
  "required": [
    "data",
    "_links"
  ],
  "$defs": {
    "CustomImagesStatsResponseData": {
      "type": "object",
      "properties": {
        "tenantId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer tenant id"
        },
        "customerId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer number"
        },
        "currentImagesCount": {
          "type": "number",
          "description": "The number of existing custom images"
        },
        "totalSizeMb": {
          "type": "number",
          "description": "Total available disk space in MB"
        },
        "usedSizeMb": {
          "type": "number",
          "description": "Used disk space in MB"
        },
        "freeSizeMb": {
          "type": "number",
          "description": "Free disk space in MB"
        }
      },
      "required": [
        "tenantId",
        "customerId",
        "currentImagesCount",
        "totalSizeMb",
        "usedSizeMb",
        "freeSizeMb"
      ]
    },
    "SelfLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to current resource."
        }
      },
      "required": [
        "self"
      ]
    }
  }
}