{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-domain-domain-service-with-iam-schema.json",
  "title": "email.domain.DomainServiceWithIAM",
  "description": "Domain service",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-email-domain-openapi.yml#/components/schemas/email.domain.DomainServiceWithIAM",
  "type": "object",
  "properties": {
    "allowedAccountSize": {
      "type": [
        "array",
        "null"
      ],
      "description": "List of allowed sizes for this domain in bytes",
      "items": {
        "type": "integer"
      },
      "readOnly": true
    },
    "creationDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Creation date of domain",
      "format": "date-time",
      "readOnly": true
    },
    "domain": {
      "type": "string",
      "description": "Name of domain",
      "readOnly": true
    },
    "filerz": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Filerz of domain",
      "readOnly": true
    },
    "iam": {
      "allOf": [
        {
          "$ref": "#/$defs/iam.ResourceMetadata"
        }
      ],
      "description": "IAM resource metadata",
      "nullable": true,
      "readOnly": true
    },
    "isMXValid": {
      "allOf": [
        {
          "$ref": "#/$defs/email.domain.DiagnoseEnum"
        }
      ],
      "description": "Result of MX check if current MX fit to OVH recommendations",
      "readOnly": true
    },
    "isSPFValid": {
      "allOf": [
        {
          "$ref": "#/$defs/email.domain.DiagnoseEnum"
        }
      ],
      "description": "Result of SPF check if current SPF fit to OVH recommendations",
      "readOnly": true
    },
    "linkTo": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of servicelinked with this domain",
      "readOnly": true
    },
    "migratedMXPlanServiceName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of new MXPlan service",
      "readOnly": true
    },
    "offer": {
      "type": [
        "string",
        "null"
      ],
      "description": "Offer of email service",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.DomainStatusEnum"
        }
      ],
      "description": "Domain Status",
      "readOnly": true
    }
  },
  "$defs": {
    "domain.DomainStatusEnum": {
      "type": "string",
      "description": "Possible values for status domain",
      "enum": [
        "close",
        "ok",
        "readOnly",
        "unknown"
      ]
    },
    "email.domain.DiagnoseEnum": {
      "type": "string",
      "description": "Result value for diagnose",
      "enum": [
        "checkFail",
        "invalid",
        "none",
        "unknown",
        "valid"
      ]
    },
    "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"
      ]
    }
  }
}