{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-create-object-storage-request-schema.json",
  "title": "CreateObjectStorageRequest",
  "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/CreateObjectStorageRequest",
  "type": "object",
  "properties": {
    "region": {
      "type": "string",
      "minLength": 1,
      "description": "Region where the object storage should be located. Default is EU. Available regions: EU, US-central, SIN",
      "default": "EU"
    },
    "autoScaling": {
      "description": "Autoscaling settings",
      "allOf": [
        {
          "$ref": "#/$defs/AutoScalingTypeRequest"
        }
      ]
    },
    "totalPurchasedSpaceTB": {
      "type": "number",
      "format": "double",
      "description": "Amount of purchased / requested object storage in TB.",
      "default": "0.25"
    },
    "displayName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Display name helps to differentiate between object storages, especially if they are in the same region. If display name is not provided, it will be generated. Display name can be changed any time."
    }
  },
  "required": [
    "region",
    "totalPurchasedSpaceTB"
  ],
  "$defs": {
    "AutoScalingTypeRequest": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "State of the autoscaling for the current object storage.",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "sizeLimitTB": {
          "type": "number",
          "format": "double",
          "description": "Autoscaling size limit for the current object storage."
        }
      },
      "required": [
        "state",
        "sizeLimitTB"
      ]
    }
  }
}