{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-all-dom-all-dom-service-with-iam-schema.json",
  "title": "allDom.AllDomServiceWithIAM",
  "description": "General information about a alldom service",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-allDom-openapi.yml#/components/schemas/allDom.AllDomServiceWithIAM",
  "type": "object",
  "properties": {
    "iam": {
      "allOf": [
        {
          "$ref": "#/$defs/iam.ResourceMetadata"
        }
      ],
      "description": "IAM resource metadata",
      "nullable": true,
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Name of the allDom",
      "readOnly": true
    },
    "offer": {
      "allOf": [
        {
          "$ref": "#/$defs/allDom.OfferEnum"
        }
      ],
      "description": "Offer of the allDom",
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/allDom.TypeEnum"
        }
      ],
      "description": "Type of the allDom",
      "readOnly": true
    }
  },
  "$defs": {
    "allDom.OfferEnum": {
      "type": "string",
      "description": "Offer of the allDom",
      "enum": [
        "diamond",
        "gold",
        "platinum"
      ]
    },
    "allDom.TypeEnum": {
      "type": "string",
      "description": "Type of the allDom",
      "enum": [
        "french",
        "french+international",
        "international"
      ]
    },
    "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"
      ]
    }
  }
}