{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-hosting-web-service-schema.json",
  "title": "hosting.web.Service",
  "description": "Web Hosting",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-hosting-web-openapi.yml#/components/schemas/hosting.web.Service",
  "type": "object",
  "properties": {
    "availableBoostOffer": {
      "type": "array",
      "description": "Available offers for boost option",
      "items": {
        "$ref": "#/$defs/hosting.web.AvailableOfferStruct"
      },
      "readOnly": true
    },
    "boostOffer": {
      "allOf": [
        {
          "$ref": "#/$defs/hosting.web.OfferEnum"
        }
      ],
      "description": "Current boost offer",
      "nullable": true,
      "readOnly": true
    },
    "cluster": {
      "type": "string",
      "description": "Cluster name",
      "readOnly": true
    },
    "clusterIp": {
      "allOf": [
        {
          "$ref": "#/$defs/ipv4"
        }
      ],
      "description": "This direct ip to your cluster ( usefull for application like api )",
      "nullable": true,
      "readOnly": true
    },
    "clusterIpv6": {
      "allOf": [
        {
          "$ref": "#/$defs/ipv6"
        }
      ],
      "description": "This direct ipv6 to your cluster ( usefull for application like api )",
      "nullable": true,
      "readOnly": true
    },
    "countriesIp": {
      "type": [
        "array",
        "null"
      ],
      "description": "Available clusterIp by countries",
      "items": {
        "$ref": "#/$defs/hosting.web.CountriesIp"
      },
      "readOnly": true
    },
    "datacenter": {
      "type": "string",
      "description": "Datacenter where this account is located",
      "readOnly": true
    },
    "defaultAttachedDomain": {
      "type": [
        "string",
        "null"
      ],
      "description": "The default attached domain created along with your hosting",
      "readOnly": true
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set the name displayed in ManagerV6 for your hosting (max 50 chars)"
    },
    "filer": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filer name",
      "readOnly": true
    },
    "hasCdn": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Has a CDN service linked on the hosting",
      "readOnly": true
    },
    "hasHostedSsl": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Has a HostedSSL service linked on the hosting",
      "readOnly": true
    },
    "home": {
      "type": "string",
      "description": "Path of your home",
      "readOnly": true
    },
    "hostingIp": {
      "allOf": [
        {
          "$ref": "#/$defs/ipv4"
        }
      ],
      "description": "The recommended ip for your hosting ( depends on hosting's linked services, e.g CDN or hostedSSL )",
      "nullable": true,
      "readOnly": true
    },
    "hostingIpv6": {
      "allOf": [
        {
          "$ref": "#/$defs/ipv6"
        }
      ],
      "description": "The recommended ipv6 for your hosting ( depends on hosting's linked services, e.g CDN or hostedSSL )",
      "nullable": true,
      "readOnly": true
    },
    "lastOvhConfigScan": {
      "type": [
        "string",
        "null"
      ],
      "description": "/hosting/web/{serviceName}/ovhConfig is stored in cache. This date is the last refresh of this data",
      "format": "date-time",
      "readOnly": true
    },
    "multipleSSL": {
      "type": "boolean",
      "description": "If set to true, service can manage more than only one certificate",
      "readOnly": true
    },
    "objectQuota": {
      "type": [
        "number",
        "null"
      ],
      "description": "objects allowed",
      "readOnly": true
    },
    "objectUsed": {
      "type": [
        "number",
        "null"
      ],
      "description": "objects used",
      "readOnly": true
    },
    "offer": {
      "allOf": [
        {
          "$ref": "#/$defs/hosting.web.OfferEnum"
        }
      ],
      "description": "Hosting offer",
      "readOnly": true
    },
    "operatingSystem": {
      "allOf": [
        {
          "$ref": "#/$defs/hosting.web.OperatingSystemEnum"
        }
      ],
      "description": "Hosting's OS",
      "readOnly": true
    },
    "phpVersions": {
      "type": "array",
      "description": "State of available php versions for this account",
      "items": {
        "$ref": "#/$defs/hosting.web.PhpVersion"
      },
      "readOnly": true
    },
    "primaryLogin": {
      "type": "string",
      "description": "Hosting's main login",
      "readOnly": true
    },
    "quotaSize": {
      "allOf": [
        {
          "$ref": "#/$defs/complexType.UnitAndValue_double"
        }
      ],
      "description": "Space allowed",
      "readOnly": true
    },
    "quotaUsed": {
      "allOf": [
        {
          "$ref": "#/$defs/complexType.UnitAndValue_double"
        }
      ],
      "description": "Space used",
      "nullable": true,
      "readOnly": true
    },
    "recommendedOffer": {
      "allOf": [
        {
          "$ref": "#/$defs/hosting.web.OfferEnum"
        }
      ],
      "description": "If your offer is old, return a recommended offer to migrate on",
      "nullable": true,
      "readOnly": true
    },
    "resourceType": {
      "allOf": [
        {
          "$ref": "#/$defs/hosting.web.ResourceEnum"
        }
      ],
      "description": "Hosting resource type",
      "readOnly": true
    },
    "serviceManagementAccess": {
      "allOf": [
        {
          "$ref": "#/$defs/hosting.web.ServiceAccess"
        }
      ],
      "description": "URLs to use to manage your webhosting",
      "readOnly": true
    },
    "serviceName": {
      "type": "string",
      "description": "Service name",
      "readOnly": true
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/hosting.web.StateEnum"
        }
      ],
      "description": "State of your hosting",
      "readOnly": true
    },
    "token": {
      "type": [
        "string",
        "null"
      ],
      "description": "Use to link an external domain. ( This token has to be insert into a TXT field on your dns zone with ovhcontrol subdomain )",
      "readOnly": true
    },
    "trafficQuotaSize": {
      "allOf": [
        {
          "$ref": "#/$defs/complexType.UnitAndValue_double"
        }
      ],
      "description": "Traffic quota allowed ( null = unlimited )",
      "nullable": true,
      "readOnly": true
    },
    "trafficQuotaUsed": {
      "allOf": [
        {
          "$ref": "#/$defs/complexType.UnitAndValue_double"
        }
      ],
      "description": "Traffic quota used",
      "nullable": true,
      "readOnly": true
    },
    "updates": {
      "type": "array",
      "description": "List of updates on your hosting",
      "items": {
        "type": "string"
      },
      "readOnly": true
    }
  },
  "$defs": {
    "complexType.UnitAndValue_double": {
      "type": "object",
      "description": "A numeric value tagged with its unit",
      "properties": {
        "unit": {
          "type": "string"
        },
        "value": {
          "type": "number"
        }
      }
    },
    "hosting.web.Address": {
      "type": "object",
      "description": "Url and port of a service",
      "properties": {
        "port": {
          "type": "integer",
          "description": "Port to use to access to the service"
        },
        "url": {
          "type": "string",
          "description": "Url to contact the service"
        }
      }
    },
    "hosting.web.AvailableOfferStruct": {
      "type": "object",
      "description": "Struct which describs an boost offer from a service",
      "properties": {
        "offer": {
          "allOf": [
            {
              "$ref": "#/$defs/hosting.web.OfferEnum"
            }
          ],
          "description": "Available boost offer"
        },
        "price": {
          "allOf": [
            {
              "$ref": "#/$defs/order.Price"
            }
          ],
          "description": "The price in month for this boost offer"
        }
      }
    },
    "hosting.web.CountriesIp": {
      "type": "object",
      "description": "Available clusterIp by country",
      "properties": {
        "country": {
          "allOf": [
            {
              "$ref": "#/$defs/hosting.web.CountryEnum"
            }
          ],
          "description": "The whois country of the ip",
          "readOnly": true
        },
        "ip": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv4"
            }
          ],
          "description": "The cluster ip",
          "nullable": true,
          "readOnly": true
        },
        "ipv6": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv6"
            }
          ],
          "description": "The cluster ipv6",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "hosting.web.CountryEnum": {
      "type": "string",
      "description": "Available cluster countries",
      "enum": [
        "BE",
        "CA",
        "CZ",
        "DE",
        "ES",
        "FI",
        "FR",
        "IE",
        "IT",
        "LT",
        "NL",
        "PL",
        "PT",
        "UK"
      ]
    },
    "hosting.web.OfferEnum": {
      "type": "string",
      "description": "Hosting's offer",
      "enum": [
        "1000gp",
        "20gp",
        "240gp",
        "240pack",
        "240plan",
        "300gp",
        "60gp",
        "720pack",
        "720plan",
        "90pack",
        "90plan",
        "CLOUDWEB_1",
        "CLOUDWEB_2",
        "CLOUDWEB_3",
        "KS",
        "PERFORMANCE_1",
        "PERFORMANCE_2",
        "PERFORMANCE_3",
        "PERFORMANCE_4",
        "PERSO",
        "POWER_BETA_1",
        "PRO",
        "START",
        "business",
        "cloudweb1",
        "cloudweb2",
        "cloudweb3",
        "cloudwebbetax1",
        "depro2012",
        "deprol2012",
        "deproxl2012",
        "deproxxl2012",
        "destart2012",
        "destartl2012",
        "destartxl2012",
        "domainpack",
        "hosting-agency",
        "hosting-agency-max",
        "hosting-agency-plus",
        "hosting-free-100m",
        "hosting-performance-1",
        "hosting-performance-2",
        "hosting-performance-3",
        "hosting-performance-4",
        "hosting-perso",
        "hosting-pro",
        "hosting-starter",
        "hosting-starter-ovh",
        "hosting-startup",
        "hostingAtScaleX128",
        "hostingAtScaleX16",
        "hostingAtScaleX20",
        "hostingAtScaleX24",
        "hostingAtScaleX32",
        "hostingAtScaleX64",
        "hostingAtScaleX8",
        "itbusiness2012",
        "itperso2012",
        "itpremium2012",
        "kimsufi2015",
        "mailpack",
        "mailplan",
        "mediapack",
        "mediaplan",
        "ovhpro1To",
        "ovhpro2To",
        "ovhpro5To",
        "paas2014beta",
        "perf2014x1",
        "perf2014x2",
        "perf2014x3",
        "perf2014x4",
        "perso2010",
        "perso2014",
        "powerBeta1",
        "powerbeta1",
        "premium",
        "pro2010",
        "pro2014",
        "start10g",
        "start10m",
        "start1g",
        "start1ges",
        "start1m",
        "start5g",
        "starter",
        "xxlpack",
        "xxlplan"
      ]
    },
    "hosting.web.OperatingSystemEnum": {
      "type": "string",
      "description": "Hosting's OS",
      "enum": [
        "linux"
      ]
    },
    "hosting.web.PhpVersion": {
      "type": "object",
      "description": "State of available php versions for this account",
      "properties": {
        "support": {
          "allOf": [
            {
              "$ref": "#/$defs/hosting.web.PhpVersionStateEnum"
            }
          ],
          "description": "Current support of this php version"
        },
        "version": {
          "type": "string",
          "description": "PHP version"
        }
      }
    },
    "hosting.web.PhpVersionStateEnum": {
      "type": "string",
      "description": "Different support of PHP versions",
      "enum": [
        "BETA",
        "END_OF_LIFE",
        "SECURITY_FIXES",
        "SUPPORTED"
      ]
    },
    "hosting.web.ResourceEnum": {
      "type": "string",
      "description": "Hosting's type",
      "enum": [
        "bestEffort",
        "cloud",
        "dedicated",
        "shared"
      ]
    },
    "hosting.web.ServiceAccess": {
      "type": "object",
      "description": "Different url to manage your service",
      "properties": {
        "ftp": {
          "allOf": [
            {
              "$ref": "#/$defs/hosting.web.Address"
            }
          ],
          "description": "Address with url and port to manage files by ftp"
        },
        "http": {
          "allOf": [
            {
              "$ref": "#/$defs/hosting.web.Address"
            }
          ],
          "description": "Address to see your webhosting without domain"
        },
        "ssh": {
          "allOf": [
            {
              "$ref": "#/$defs/hosting.web.Address"
            }
          ],
          "description": "Address with url and port to manage webhosting by ssh"
        }
      }
    },
    "hosting.web.StateEnum": {
      "type": "string",
      "description": "Hosting's state",
      "enum": [
        "active",
        "blocked",
        "bloqued",
        "hardBlocked",
        "hardBloqued",
        "maintenance"
      ]
    },
    "ipv4": {
      "type": "string",
      "description": "IPv4 address (e.g., 192.0.2.0)",
      "format": "ipv4"
    },
    "ipv6": {
      "type": "string",
      "description": "IPv6 address (e.g., 2001:41d0:1:1994::1)",
      "format": "ipv6"
    },
    "order.CurrencyCodeEnum": {
      "type": "string",
      "description": "Currency code",
      "enum": [
        "AUD",
        "CAD",
        "CZK",
        "EUR",
        "GBP",
        "INR",
        "LTL",
        "MAD",
        "N/A",
        "PLN",
        "SGD",
        "TND",
        "USD",
        "XOF",
        "points"
      ]
    },
    "order.Price": {
      "type": "object",
      "description": "Price with its currency and textual representation",
      "properties": {
        "currencyCode": {
          "allOf": [
            {
              "$ref": "#/$defs/order.CurrencyCodeEnum"
            }
          ],
          "description": "Currency code",
          "readOnly": true
        },
        "priceInUcents": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Price in microcents",
          "readOnly": true
        },
        "text": {
          "type": "string",
          "description": "Textual representation",
          "readOnly": true
        },
        "value": {
          "type": "number",
          "description": "The effective price",
          "readOnly": true
        }
      }
    }
  }
}