{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-license-directadmin-direct-admin-with-iam-schema.json",
  "title": "license.directadmin.DirectAdminWithIAM",
  "description": "Your DirectAdmin license",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-license-directadmin-openapi.yml#/components/schemas/license.directadmin.DirectAdminWithIAM",
  "type": "object",
  "properties": {
    "clientId": {
      "type": "integer",
      "description": "The client id on license provider side",
      "readOnly": true
    },
    "creation": {
      "type": "string",
      "description": "This license creation date",
      "format": "date-time",
      "readOnly": true
    },
    "deleteAtExpiration": {
      "type": "boolean",
      "description": "Shall we delete this on expiration ?"
    },
    "domain": {
      "type": "string",
      "description": "The internal name of your license",
      "readOnly": true
    },
    "iam": {
      "allOf": [
        {
          "$ref": "#/$defs/iam.ResourceMetadata"
        }
      ],
      "description": "IAM resource metadata",
      "nullable": true,
      "readOnly": true
    },
    "ip": {
      "allOf": [
        {
          "$ref": "#/$defs/ipv4"
        }
      ],
      "description": "The ip on which this license is attached",
      "readOnly": true
    },
    "licenseId": {
      "type": "string",
      "description": "The license id on license provider side",
      "readOnly": true
    },
    "os": {
      "allOf": [
        {
          "$ref": "#/$defs/license.DirectAdminOsEnum"
        }
      ],
      "description": "This license operating system"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/license.StateEnum"
        }
      ],
      "description": "This license state",
      "readOnly": true
    },
    "version": {
      "allOf": [
        {
          "$ref": "#/$defs/license.DirectAdminVersionEnum"
        }
      ],
      "description": "This license version",
      "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"
      ]
    },
    "ipv4": {
      "type": "string",
      "description": "IPv4 address (e.g., 192.0.2.0)",
      "format": "ipv4"
    },
    "license.DirectAdminOsEnum": {
      "type": "string",
      "description": "All operating systems available for DirectAdmin products",
      "enum": [
        "CentOs_5.0_32",
        "CentOs_5.0_64",
        "CentOs_6_32",
        "CentOs_6_64",
        "CentOs_7_64",
        "CentOs_8_64",
        "Debian_10.0_64",
        "Debian_11.0_64",
        "Debian_5.0_32",
        "Debian_5.0_64",
        "Debian_6.0_32",
        "Debian_6.0_64",
        "Debian_7.0_64",
        "Debian_8.0_64",
        "Debian_9.0_64",
        "FreeBSD_11.x_64",
        "FreeBSD_12.x_64",
        "FreeBSD_7.x_32",
        "FreeBSD_7.x_64",
        "FreeBSD_8.x_64",
        "FreeBSD_9.x_64"
      ]
    },
    "license.DirectAdminVersionEnum": {
      "type": "string",
      "description": "All versions for DirectAdmin products",
      "enum": [
        "DIRECTADMIN_1",
        "directadmin-license"
      ]
    },
    "license.StateEnum": {
      "type": "string",
      "description": "All states a license can be in",
      "enum": [
        "ok",
        "released",
        "terminated",
        "toDeliver"
      ]
    }
  }
}