{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dedicated-server-network-specifications-schema.json",
  "title": "dedicated.server.NetworkSpecifications",
  "description": "A structure describing network informations about this dedicated server",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-dedicated-server-openapi.yml#/components/schemas/dedicated.server.NetworkSpecifications",
  "type": "object",
  "properties": {
    "bandwidth": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.server.BandwidthDetails"
        }
      ],
      "description": "Bandwidth details",
      "nullable": true
    },
    "connection": {
      "allOf": [
        {
          "$ref": "#/$defs/complexType.UnitAndValue_long"
        }
      ],
      "description": "Network connection flow rate",
      "nullable": true
    },
    "ola": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.server.OlaDetails"
        }
      ],
      "description": "OLA details",
      "nullable": true
    },
    "routing": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.server.RoutingDetails"
        }
      ],
      "description": "Routing details",
      "nullable": true
    },
    "switching": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.server.SwitchingDetails"
        }
      ],
      "description": "Switching details",
      "nullable": true
    },
    "traffic": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.server.TrafficDetails"
        }
      ],
      "description": "Traffic details",
      "nullable": true
    },
    "vmac": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.server.VmacDetails"
        }
      ],
      "description": "A structure describing VMAC Infos for this dedicated server"
    },
    "vrack": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.server.BandwidthvRackDetails"
        }
      ],
      "description": "vRack details",
      "nullable": true
    }
  },
  "$defs": {
    "complexType.UnitAndValue_long": {
      "type": "object",
      "description": "A numeric value tagged with its unit",
      "properties": {
        "unit": {
          "type": "string"
        },
        "value": {
          "type": "integer"
        }
      }
    },
    "dedicated.server.BandwidthDetails": {
      "type": "object",
      "description": "A structure describing bandwidth informations about this dedicated server",
      "properties": {
        "InternetToOvh": {
          "allOf": [
            {
              "$ref": "#/$defs/complexType.UnitAndValue_long"
            }
          ],
          "description": "bandwidth limitation Internet to OVH",
          "nullable": true
        },
        "OvhToInternet": {
          "allOf": [
            {
              "$ref": "#/$defs/complexType.UnitAndValue_long"
            }
          ],
          "description": "bandwidth limitation OVH to Internet",
          "nullable": true
        },
        "OvhToOvh": {
          "allOf": [
            {
              "$ref": "#/$defs/complexType.UnitAndValue_long"
            }
          ],
          "description": "bandwidth limitation OVH to OVH",
          "nullable": true
        },
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/dedicated.server.BandwidthTypeEnum"
            }
          ],
          "description": "bandwidth offer type",
          "nullable": true
        }
      }
    },
    "dedicated.server.BandwidthTypeEnum": {
      "type": "string",
      "description": " Different Bandwidth type",
      "enum": [
        "improved",
        "included",
        "platinum",
        "premium",
        "standard",
        "ultimate"
      ]
    },
    "dedicated.server.BandwidthvRackDetails": {
      "type": "object",
      "description": "A structure describing vRack bandwidth informations about this dedicated server",
      "properties": {
        "bandwidth": {
          "allOf": [
            {
              "$ref": "#/$defs/complexType.UnitAndValue_long"
            }
          ],
          "description": "vrack bandwidth limitation",
          "nullable": true
        },
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/dedicated.server.BandwidthvRackTypeEnum"
            }
          ],
          "description": "bandwidth offer type",
          "nullable": true
        }
      }
    },
    "dedicated.server.BandwidthvRackTypeEnum": {
      "type": "string",
      "description": " Different Bandwidth type",
      "enum": [
        "included",
        "standard"
      ]
    },
    "dedicated.server.OlaAvailableModes": {
      "type": "object",
      "description": "A structure describing OVH Link Aggregation available modes",
      "properties": {
        "default": {
          "type": "boolean",
          "description": "Is it the default configuration of the server"
        },
        "interfaces": {
          "type": "array",
          "description": "Interface layout",
          "items": {
            "$ref": "#/$defs/dedicated.server.OlaInterface"
          }
        },
        "name": {
          "type": "string",
          "description": "Mode name"
        }
      }
    },
    "dedicated.server.OlaDetails": {
      "type": "object",
      "description": "A structure describing OVH Link Aggregation available modes for this dedicated server",
      "properties": {
        "available": {
          "type": "boolean",
          "description": "Is the OLA feature available"
        },
        "availableModes": {
          "type": "array",
          "description": "What modes are supported",
          "items": {
            "$ref": "#/$defs/dedicated.server.OlaAvailableModes"
          }
        },
        "supportedModes": {
          "type": [
            "array",
            "null"
          ],
          "description": "(DEPRECATED) What modes are supported",
          "items": {
            "$ref": "#/$defs/dedicated.virtualNetworkInterface.VirtualNetworkInterfaceModeEnum"
          }
        }
      }
    },
    "dedicated.server.OlaInterface": {
      "type": "object",
      "description": "A structure describing OVH Link Aggregation interface configuration",
      "properties": {
        "aggregation": {
          "type": "boolean",
          "description": "Interface aggregation status"
        },
        "count": {
          "type": "integer",
          "description": "Interface count"
        },
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/dedicated.server.OlaInterfaceModeEnum"
            }
          ],
          "description": "Interface mode"
        }
      }
    },
    "dedicated.server.OlaInterfaceModeEnum": {
      "type": "string",
      "description": "An enum describing OVH Link Aggregation interface types",
      "enum": [
        "public",
        "vrack"
      ]
    },
    "dedicated.server.RoutingDetails": {
      "type": "object",
      "description": "A structure describing routing informations about this dedicated server",
      "properties": {
        "ipv4": {
          "allOf": [
            {
              "$ref": "#/$defs/dedicated.server.RoutingDetailsIpv4"
            }
          ],
          "description": "Ipv4 routing details",
          "nullable": true
        },
        "ipv6": {
          "allOf": [
            {
              "$ref": "#/$defs/dedicated.server.RoutingDetailsIpv6"
            }
          ],
          "description": "Ipv6 routing details",
          "nullable": true
        }
      }
    },
    "dedicated.server.RoutingDetailsIpv4": {
      "type": "object",
      "description": "A structure describing IPv4 routing informations about this dedicated server",
      "properties": {
        "gateway": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv4"
            }
          ],
          "description": "Server gateway",
          "nullable": true
        },
        "ip": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv4"
            }
          ],
          "description": "Server main IP",
          "nullable": true
        },
        "network": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv4Block"
            }
          ],
          "description": "Server network",
          "nullable": true
        }
      }
    },
    "dedicated.server.RoutingDetailsIpv6": {
      "type": "object",
      "description": "A structure describing IPv6 routing informations about this dedicated server",
      "properties": {
        "gateway": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv6"
            }
          ],
          "description": "Server gateway",
          "nullable": true
        },
        "ip": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv6Block"
            }
          ],
          "description": "Server main IP",
          "nullable": true
        },
        "network": {
          "allOf": [
            {
              "$ref": "#/$defs/ipv6Block"
            }
          ],
          "description": "Server network",
          "nullable": true
        }
      }
    },
    "dedicated.server.SwitchingDetails": {
      "type": "object",
      "description": "A structure describing switching informations about this dedicated server",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Switch name"
        }
      }
    },
    "dedicated.server.TrafficDetails": {
      "type": "object",
      "description": "A structure describing traffic informations about this dedicated server",
      "properties": {
        "inputQuotaSize": {
          "allOf": [
            {
              "$ref": "#/$defs/complexType.UnitAndValue_long"
            }
          ],
          "description": "Monthly input traffic quota allowed",
          "nullable": true
        },
        "inputQuotaUsed": {
          "allOf": [
            {
              "$ref": "#/$defs/complexType.UnitAndValue_long"
            }
          ],
          "description": "Monthly input traffic consumed this month",
          "nullable": true
        },
        "isThrottled": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Is bandwidth throttleted for being over quota"
        },
        "outputQuotaSize": {
          "allOf": [
            {
              "$ref": "#/$defs/complexType.UnitAndValue_long"
            }
          ],
          "description": "Monthly output traffic quota allowed",
          "nullable": true
        },
        "outputQuotaUsed": {
          "allOf": [
            {
              "$ref": "#/$defs/complexType.UnitAndValue_long"
            }
          ],
          "description": "Monthly output traffic consumed this month",
          "nullable": true
        },
        "resetQuotaDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Next reset quota date for traffic counter"
        }
      }
    },
    "dedicated.server.VmacDetails": {
      "type": "object",
      "description": "A structure describing VMAC Infos for this dedicated server",
      "properties": {
        "quota": {
          "type": "integer",
          "description": "Maximum number of VirtualMacs allowed on this server"
        },
        "supported": {
          "type": "boolean",
          "description": "Server is compatible vmac or not"
        }
      }
    },
    "dedicated.virtualNetworkInterface.VirtualNetworkInterfaceModeEnum": {
      "type": "string",
      "description": "Available VirtualNetworkInterface modes",
      "enum": [
        "public",
        "public_aggregation",
        "vrack",
        "vrack_aggregation"
      ]
    },
    "ipv4": {
      "type": "string",
      "description": "IPv4 address (e.g., 192.0.2.0)",
      "format": "ipv4"
    },
    "ipv4Block": {
      "type": "string",
      "description": "IPv4 CIDR notation (e.g., 192.0.2.0/24)",
      "format": "ipv4-block"
    },
    "ipv6": {
      "type": "string",
      "description": "IPv6 address (e.g., 2001:41d0:1:1994::1)",
      "format": "ipv6"
    },
    "ipv6Block": {
      "type": "string",
      "description": "IPv6 CIDR notation (e.g., 2001:41d0::/128)",
      "format": "ipv6-block"
    }
  }
}