{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-list-object-storage-response-schema.json",
  "title": "ListObjectStorageResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-object-storages-api-openapi.yml#/components/schemas/ListObjectStorageResponse",
  "type": "object",
  "properties": {
    "_pagination": {
      "description": "Data about pagination like how many results, pages, page size.",
      "allOf": [
        {
          "$ref": "#/$defs/PaginationMeta"
        }
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ObjectStorageResponse"
      }
    },
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/Links"
        }
      ]
    }
  },
  "required": [
    "_pagination",
    "data",
    "_links"
  ],
  "$defs": {
    "AutoScalingTypeResponse": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "State of the autoscaling for the current object storage.",
          "enum": [
            "enabled",
            "disabled",
            "error"
          ]
        },
        "sizeLimitTB": {
          "type": "number",
          "format": "double",
          "description": "Autoscaling size limit for the current object storage."
        },
        "errorMessage": {
          "type": "string",
          "description": "Error message"
        }
      },
      "required": [
        "state",
        "sizeLimitTB"
      ]
    },
    "Links": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to current resource."
        },
        "first": {
          "type": "string",
          "description": "Link to first page, if applicable."
        },
        "previous": {
          "type": "string",
          "description": "Link to previous page, if applicable."
        },
        "next": {
          "type": "string",
          "description": "Link to next page, if applicable."
        },
        "last": {
          "type": "string",
          "description": "Link to last page, if applicable."
        }
      },
      "required": [
        "self",
        "first",
        "last"
      ]
    },
    "ObjectStorageResponse": {
      "type": "object",
      "properties": {
        "tenantId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer tenant id"
        },
        "customerId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer number"
        },
        "objectStorageId": {
          "type": "string",
          "minLength": 1,
          "description": "Your object storage id"
        },
        "createdDate": {
          "type": "string",
          "format": "date-time",
          "description": "Creation date for object storage."
        },
        "cancelDate": {
          "type": "string",
          "format": "date",
          "description": "Cancellation date for object storage."
        },
        "autoScaling": {
          "description": "Autoscaling settings",
          "allOf": [
            {
              "$ref": "#/$defs/AutoScalingTypeResponse"
            }
          ]
        },
        "dataCenter": {
          "type": "string",
          "minLength": 1,
          "description": "Data center your object storage is located"
        },
        "totalPurchasedSpaceTB": {
          "type": "number",
          "format": "double",
          "description": "Amount of purchased / requested object storage in TB."
        },
        "s3Url": {
          "type": "string",
          "description": "S3 URL to connect to your S3 compatible object storage"
        },
        "s3TenantId": {
          "type": "string",
          "description": "Your S3 tenantId. Only required for public sharing."
        },
        "status": {
          "type": "string",
          "description": "The object storage status",
          "enum": [
            "READY",
            "PROVISIONING",
            "UPGRADING",
            "CANCELLED",
            "ERROR",
            "DISABLED",
            "MANUAL_PROVISIONING",
            "PRODUCT_NOT_AVAILABLE",
            "LIMIT_EXCEEDED",
            "VERIFICATION_REQUIRED",
            "ORDER_PROCESSING",
            "PENDING_PAYMENT",
            "UNKNOWN"
          ]
        },
        "region": {
          "type": "string",
          "description": "The region where your object storage is located"
        },
        "displayName": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "description": "Display name for object storage."
        }
      },
      "required": [
        "tenantId",
        "customerId",
        "objectStorageId",
        "createdDate",
        "cancelDate",
        "autoScaling",
        "dataCenter",
        "totalPurchasedSpaceTB",
        "s3Url",
        "s3TenantId",
        "status",
        "region",
        "displayName"
      ]
    },
    "PaginationMeta": {
      "type": "object",
      "properties": {
        "size": {
          "type": "number",
          "description": "Number of elements per page."
        },
        "totalElements": {
          "type": "number",
          "description": "Number of overall matched elements."
        },
        "totalPages": {
          "type": "number",
          "description": "Overall number of pages."
        },
        "page": {
          "type": "number",
          "description": "Current number of page."
        }
      },
      "required": [
        "size",
        "totalElements",
        "totalPages",
        "page"
      ]
    }
  }
}