{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-mxplan-domain-schema.json",
  "title": "email.mxplan.Domain",
  "description": "Domain",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-email-mxplan-openapi.yml#/components/schemas/email.mxplan.Domain",
  "type": "object",
  "properties": {
    "cnameToCheck": {
      "type": [
        "string",
        "null"
      ],
      "description": "Cname that will be checked to prove the domain ownership",
      "readOnly": true
    },
    "domainAliases": {
      "type": "array",
      "description": "List of aliases for this domain",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "domainValidated": {
      "type": "boolean",
      "description": "Domain validation status",
      "readOnly": true
    },
    "expectedMX": {
      "type": "array",
      "description": "Expected MX record(s) on this domain",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "isAliasDomain": {
      "type": "boolean",
      "description": "Indicate if this domain is an alias for another domain",
      "readOnly": true
    },
    "mxIsValid": {
      "type": "boolean",
      "description": "If true your dns mx configuration is valid",
      "readOnly": true
    },
    "mxRecord": {
      "type": "array",
      "description": "Domain MX record configured in DNS",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "mxRelay": {
      "type": [
        "string",
        "null"
      ],
      "description": "If specified, emails to not existing address will be redirected to that domain"
    },
    "name": {
      "type": "string",
      "description": "Domain name",
      "readOnly": true
    },
    "srvIsValid": {
      "type": "boolean",
      "description": "If true your dns srv record is valid",
      "readOnly": true
    },
    "srvRecord": {
      "type": "array",
      "description": "Domain SRV record configured in DNS",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.ObjectStateEnum"
        }
      ],
      "description": "Domain state",
      "readOnly": true
    },
    "taskPendingId": {
      "type": "integer",
      "description": "Pending taks id",
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.DomainTypeEnum"
        }
      ],
      "description": "Domain type"
    }
  },
  "$defs": {
    "email.pro.DomainTypeEnum": {
      "type": "string",
      "description": "Domain type",
      "enum": [
        "authoritative",
        "nonAuthoritative"
      ]
    },
    "email.pro.ObjectStateEnum": {
      "type": "string",
      "description": "Current object state",
      "enum": [
        "creating",
        "deleting",
        "ok",
        "reopening",
        "suspended",
        "suspending",
        "unknown"
      ]
    }
  }
}