{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-horizon-view-datacenter-with-iam-schema.json",
  "title": "horizonView.DatacenterWithIAM",
  "description": "Cloud Desktop Infrastructure Datacenter",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-horizonView-openapi.yml#/components/schemas/horizonView.DatacenterWithIAM",
  "type": "object",
  "properties": {
    "activeDirectoryIP": {
      "allOf": [
        {
          "$ref": "#/$defs/ip"
        }
      ],
      "description": "IP of the VDI Active Directory",
      "readOnly": true
    },
    "adminDomain": {
      "type": "string",
      "description": "Domain of the admin infrastructure",
      "readOnly": true
    },
    "adminNetworkNextHop": {
      "type": "string",
      "description": "Next hop to contact the private admin network",
      "readOnly": true
    },
    "adminPrivateNetwork": {
      "allOf": [
        {
          "$ref": "#/$defs/ipBlock"
        }
      ],
      "description": "Private network of the admin infrastructure",
      "readOnly": true
    },
    "customerIntercoIP": {
      "allOf": [
        {
          "$ref": "#/$defs/ip"
        }
      ],
      "description": "Customer interco IP allows you to communicate between your private infrastructure and your CDI infrastructure throw the vrack.",
      "readOnly": true
    },
    "customerIntercoMask": {
      "allOf": [
        {
          "$ref": "#/$defs/ip"
        }
      ],
      "description": "Customer interco netmask allows you to communicate between your private infrastructure and your CDI infrastructure throw the vrack.",
      "readOnly": true
    },
    "customerIntercoVlanId": {
      "type": "integer",
      "description": "Customer interco vlan allows you to communicate between your private infrastructure and your CDI infrastructure throw the vrack.",
      "readOnly": true
    },
    "datacenterId": {
      "type": "integer",
      "description": "Datacenter ids",
      "readOnly": true
    },
    "iam": {
      "allOf": [
        {
          "$ref": "#/$defs/iam.ResourceMetadata"
        }
      ],
      "description": "IAM resource metadata",
      "nullable": true,
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Name of the datacenter",
      "readOnly": true
    },
    "serviceName": {
      "type": "string",
      "description": "Domain of your Horizon",
      "readOnly": true
    }
  },
  "$defs": {
    "iam.ResourceMetadata": {
      "type": "object",
      "description": "IAM resource metadata embedded in services models",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Resource display name",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "description": "Unique identifier of the resource",
          "format": "uuid",
          "readOnly": true
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/iam.ResourceMetadata.StateEnum"
            }
          ],
          "description": "Resource state",
          "nullable": true,
          "readOnly": true
        },
        "tags": {
          "type": [
            "object",
            "null"
          ],
          "description": "Resource tags. Tags that were internally computed are prefixed with ovh:",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        },
        "urn": {
          "type": "string",
          "description": "Unique resource name used in policies",
          "readOnly": true
        }
      }
    },
    "iam.ResourceMetadata.StateEnum": {
      "type": "string",
      "description": "Resource state",
      "enum": [
        "EXPIRED",
        "IN_CREATION",
        "OK",
        "SUSPENDED"
      ]
    },
    "ip": {
      "type": "string",
      "description": "IP address (e.g., 192.0.2.0)",
      "format": "ipv4"
    },
    "ipBlock": {
      "type": "string",
      "description": "IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)",
      "format": "ip-block"
    }
  }
}