{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-ip-ip-schema.json",
  "title": "ip.Ip",
  "description": "Your IP",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-ip-openapi.yml#/components/schemas/ip.Ip",
  "type": "object",
  "properties": {
    "bringYourOwnIp": {
      "type": "boolean",
      "description": "Is this IP part of the Bring your own IP program (alpha)",
      "readOnly": true
    },
    "campus": {
      "type": [
        "string",
        "null"
      ],
      "description": "Where is the IP used/usable (alpha)",
      "readOnly": true
    },
    "canBeTerminated": {
      "type": "boolean",
      "description": "Is this IP can be terminated",
      "readOnly": true
    },
    "country": {
      "allOf": [
        {
          "$ref": "#/$defs/coreTypes.CountryEnum"
        }
      ],
      "description": "IP country",
      "nullable": true,
      "readOnly": true
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Custom description on your ip"
    },
    "ip": {
      "allOf": [
        {
          "$ref": "#/$defs/ipBlock"
        }
      ],
      "readOnly": true
    },
    "isAdditionalIp": {
      "type": "boolean",
      "description": "Is this IP an Additional IP (alpha)",
      "readOnly": true
    },
    "organisationId": {
      "type": [
        "string",
        "null"
      ],
      "description": "IP block organisation Id",
      "readOnly": true
    },
    "regions": {
      "type": [
        "array",
        "null"
      ],
      "description": "Where is the IP used/usable, in the form of region codenames (alpha)",
      "items": {
        "$ref": "#/$defs/coreTypes.RegionCodenameEnum"
      },
      "readOnly": true
    },
    "rir": {
      "type": [
        "string",
        "null"
      ],
      "description": "Regional Internet Registry of the IP (alpha)",
      "readOnly": true
    },
    "routedTo": {
      "allOf": [
        {
          "$ref": "#/$defs/ip.RoutedTo"
        }
      ],
      "description": "Routage information",
      "nullable": true,
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/ip.IpTypeEnum"
        }
      ],
      "readOnly": true
    },
    "version": {
      "allOf": [
        {
          "$ref": "#/$defs/ip.IpVersionEnum"
        }
      ],
      "description": "Version of the IP (alpha)",
      "readOnly": true
    }
  },
  "$defs": {
    "coreTypes.CountryEnum": {
      "type": "string",
      "description": "ISO country codes",
      "enum": [
        "ac",
        "ad",
        "ae",
        "af",
        "ag",
        "ai",
        "al",
        "am",
        "an",
        "ao",
        "aq",
        "ar",
        "as",
        "at",
        "au",
        "aw",
        "ax",
        "az",
        "ba",
        "bb",
        "bd",
        "be",
        "bf",
        "bg",
        "bh",
        "bi",
        "bj",
        "bl",
        "bm",
        "bn",
        "bo",
        "bq",
        "br",
        "bs",
        "bt",
        "bv",
        "bw",
        "by",
        "bz",
        "ca",
        "cc",
        "cd",
        "cf",
        "cg",
        "ch",
        "ci",
        "ck",
        "cl",
        "cm",
        "cn",
        "co",
        "cr",
        "cs",
        "cu",
        "cv",
        "cw",
        "cx",
        "cy",
        "cz",
        "de",
        "dj",
        "dk",
        "dm",
        "do",
        "dz",
        "ec",
        "ee",
        "eg",
        "eh",
        "er",
        "es",
        "et",
        "fc",
        "fd",
        "fi",
        "fj",
        "fk",
        "fm",
        "fo",
        "fr",
        "fx",
        "ga",
        "gb",
        "gd",
        "ge",
        "gf",
        "gg",
        "gh",
        "gi",
        "gl",
        "gm",
        "gn",
        "gp",
        "gq",
        "gr",
        "gs",
        "gt",
        "gu",
        "gw",
        "gy",
        "hk",
        "hm",
        "hn",
        "hr",
        "ht",
        "hu",
        "id",
        "ie",
        "il",
        "im",
        "in",
        "io",
        "iq",
        "ir",
        "is",
        "it",
        "je",
        "jm",
        "jo",
        "jp",
        "ke",
        "kg",
        "kh",
        "ki",
        "km",
        "kn",
        "kp",
        "kr",
        "kw",
        "ky",
        "kz",
        "la",
        "lb",
        "lc",
        "li",
        "lk",
        "lr",
        "ls",
        "lt",
        "lu",
        "lv",
        "ly",
        "ma",
        "mc",
        "md",
        "me",
        "mf",
        "mg",
        "mh",
        "mk",
        "ml",
        "mm",
        "mn",
        "mo",
        "mp",
        "mq",
        "mr",
        "ms",
        "mt",
        "mu",
        "mv",
        "mw",
        "mx",
        "my",
        "mz",
        "na",
        "nc",
        "ne",
        "nf",
        "ng",
        "ni",
        "nl",
        "no",
        "np",
        "nr",
        "nu",
        "nz",
        "om",
        "pa",
        "pe",
        "pf",
        "pg",
        "ph",
        "pk",
        "pl",
        "pm",
        "pn",
        "pr",
        "ps",
        "pt",
        "pw",
        "py",
        "qa",
        "qc",
        "re",
        "ro",
        "rs",
        "ru",
        "rw",
        "sa",
        "sb",
        "sc",
        "sd",
        "se",
        "sg",
        "sh",
        "si",
        "sj",
        "sk",
        "sl",
        "sm",
        "sn",
        "so",
        "sr",
        "ss",
        "st",
        "sv",
        "sx",
        "sy",
        "sz",
        "tc",
        "td",
        "tf",
        "tg",
        "th",
        "tj",
        "tk",
        "tl",
        "tm",
        "tn",
        "to",
        "tp",
        "tr",
        "tt",
        "tv",
        "tw",
        "tz",
        "ua",
        "ug",
        "uk",
        "um",
        "us",
        "uy",
        "uz",
        "va",
        "vc",
        "ve",
        "vg",
        "vi",
        "vn",
        "vu",
        "we",
        "wf",
        "ws",
        "ye",
        "yt",
        "yu",
        "za",
        "zm",
        "zw"
      ]
    },
    "coreTypes.RegionCodenameEnum": {
      "type": "string",
      "description": "Region names",
      "enum": [
        "af-central-lz-abj",
        "af-north-lz-rba",
        "ap-south-lz-akl",
        "ap-south-lz-blr",
        "ap-south-lz-icd",
        "ap-south-mum",
        "ap-southeast-sgp",
        "ap-southeast-syd",
        "ca-east-bhs",
        "ca-east-tor",
        "eu-central-lz-buh",
        "eu-central-lz-sof",
        "eu-central-waw",
        "eu-east-lz-prg",
        "eu-north-lz-cph",
        "eu-north-lz-hel",
        "eu-north-lz-osl",
        "eu-north-lz-sto",
        "eu-south-lz-lis",
        "eu-south-lz-mad",
        "eu-south-lz-mil",
        "eu-south-mil",
        "eu-west-eri",
        "eu-west-gra",
        "eu-west-lim",
        "eu-west-lz-ams",
        "eu-west-lz-bru",
        "eu-west-lz-dln",
        "eu-west-lz-lux",
        "eu-west-lz-mnc",
        "eu-west-lz-mrs",
        "eu-west-lz-vie",
        "eu-west-lz-zrh",
        "eu-west-par",
        "eu-west-rbx",
        "eu-west-sbg",
        "me-south-lz-dxb",
        "sa-central-lz-mex",
        "sa-east-lz-sao",
        "sa-west-lz-bue",
        "sa-west-lz-scl",
        "us-central-lz-slc",
        "us-central-lz-stl",
        "us-east-lz-atl",
        "us-east-lz-bos",
        "us-east-lz-chi",
        "us-east-lz-dal",
        "us-east-lz-mia",
        "us-east-lz-nyc",
        "us-east-vin",
        "us-west-hil",
        "us-west-lz-den",
        "us-west-lz-lax",
        "us-west-lz-pao",
        "us-west-lz-phx",
        "us-west-lz-sea"
      ]
    },
    "ip.IpTypeEnum": {
      "type": "string",
      "description": "Possible values for ip type",
      "enum": [
        "cdn",
        "cloud",
        "dedicated",
        "failover",
        "hosted_ssl",
        "housing",
        "loadBalancing",
        "mail",
        "overthebox",
        "pcc",
        "pci",
        "private",
        "vpn",
        "vps",
        "vrack",
        "xdsl"
      ]
    },
    "ip.IpVersionEnum": {
      "type": "integer",
      "description": "Possible values for IP version",
      "enum": [
        4,
        6
      ]
    },
    "ip.RoutedTo": {
      "type": "object",
      "description": "Information about routing",
      "properties": {
        "serviceName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Service where ip is routed to"
        }
      }
    },
    "ipBlock": {
      "type": "string",
      "description": "IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)",
      "format": "ip-block"
    }
  }
}