{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-license-virtuozzo-virtuozzo-with-iam-schema.json",
  "title": "license.virtuozzo.VirtuozzoWithIAM",
  "description": "Your Virtuozzo license",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-license-virtuozzo-openapi.yml#/components/schemas/license.virtuozzo.VirtuozzoWithIAM",
  "type": "object",
  "properties": {
    "containerNumber": {
      "allOf": [
        {
          "$ref": "#/$defs/license.VirtuozzoContainerNumberEnum"
        }
      ],
      "description": "The amount of containers this license can manage",
      "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
    },
    "informationKey": {
      "type": [
        "string",
        "null"
      ],
      "description": "This license Information key",
      "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
    },
    "productKey": {
      "type": [
        "string",
        "null"
      ],
      "description": "This license product key",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/license.StateEnum"
        }
      ],
      "description": "This license state",
      "readOnly": true
    },
    "version": {
      "allOf": [
        {
          "$ref": "#/$defs/license.VirtuozzoVersionEnum"
        }
      ],
      "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.StateEnum": {
      "type": "string",
      "description": "All states a license can be in",
      "enum": [
        "ok",
        "released",
        "terminated",
        "toDeliver"
      ]
    },
    "license.VirtuozzoContainerNumberEnum": {
      "type": "string",
      "description": "All quantities of container available for a Virtuozzo license",
      "enum": [
        "2_CPU_001_CONTAINER",
        "2_CPU_003_CONTAINER",
        "2_CPU_010_CONTAINER",
        "2_CPU_030_CONTAINER",
        "2_CPU_060_CONTAINER",
        "2_CPU_100_CONTAINER"
      ]
    },
    "license.VirtuozzoVersionEnum": {
      "type": "string",
      "description": "All versions available for Virtuozzo products",
      "enum": [
        "VIRTUOZZO_CONTAINERS_4_FOR_LINUX",
        "VIRTUOZZO_CONTAINERS_4_FOR_WINDOWS"
      ]
    }
  }
}