{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-mxplan-service-schema.json",
  "title": "email.mxplan.Service",
  "description": "MXPlan service",
  "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.Service",
  "type": "object",
  "properties": {
    "complexityEnabled": {
      "type": "boolean",
      "description": "enable policy for strong and secure passwords"
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "service displayName"
    },
    "domain": {
      "type": "string",
      "description": "Domain name of your service",
      "readOnly": true
    },
    "hostname": {
      "type": [
        "string",
        "null"
      ],
      "description": "Hostname of your service",
      "readOnly": true
    },
    "isZimbra": {
      "type": "boolean",
      "description": "Service use Zimbra as backend",
      "readOnly": true
    },
    "lastUpdateDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Update date",
      "format": "date-time",
      "readOnly": true
    },
    "lockoutDuration": {
      "type": "integer",
      "description": "number of minutes account will remain locked if it occurs"
    },
    "lockoutObservationWindow": {
      "type": "integer",
      "description": "number of minutes that must elapse after a failed logon to reset lockout trigger"
    },
    "lockoutThreshold": {
      "type": [
        "integer",
        "null"
      ],
      "description": "number of attempts before account to be locked"
    },
    "maxPasswordAge": {
      "type": [
        "integer",
        "null"
      ],
      "description": "maximum number of days that account's password is valid before expiration"
    },
    "maxReceiveSize": {
      "type": "integer",
      "description": "Maximum message size that You can receive in MB"
    },
    "maxSendSize": {
      "type": "integer",
      "description": "Maximum message size that You can send in MB"
    },
    "minPasswordAge": {
      "type": [
        "integer",
        "null"
      ],
      "description": "minimum number of days before able to change account's password"
    },
    "minPasswordLength": {
      "type": [
        "integer",
        "null"
      ],
      "description": "minimum number of characters password must contain"
    },
    "offer": {
      "allOf": [
        {
          "$ref": "#/$defs/email.mxplan.ServiceOfferEnum"
        }
      ],
      "description": "Type of your offer",
      "readOnly": true
    },
    "spamAndVirusConfiguration": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.spamAndVirusConfiguration"
        }
      ],
      "description": "Spam and Antivirus configuration"
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.ServiceStateEnum"
        }
      ],
      "description": "State of your service",
      "readOnly": true
    },
    "taskPendingId": {
      "type": "integer",
      "description": "Task pending id",
      "readOnly": true
    },
    "webUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL for web interface",
      "readOnly": true
    }
  },
  "$defs": {
    "email.mxplan.ServiceOfferEnum": {
      "type": "string",
      "description": "Service Offer name",
      "enum": [
        "MXPLAN"
      ]
    },
    "email.pro.ServiceStateEnum": {
      "type": "string",
      "description": "Service State",
      "enum": [
        "creating",
        "deleting",
        "inMaintenance",
        "ok",
        "reopening",
        "suspended",
        "suspending"
      ]
    },
    "email.pro.spamAndVirusConfiguration": {
      "type": "object",
      "description": "Spam and Antyvirus configuration",
      "properties": {
        "checkDKIM": {
          "type": "boolean",
          "description": "Check DKIM of message"
        },
        "checkSPF": {
          "type": "boolean",
          "description": "Check SPF of message"
        },
        "deleteSpam": {
          "type": "boolean",
          "description": "If message is a spam delete it"
        },
        "deleteVirus": {
          "type": "boolean",
          "description": "If message is a virus delete it"
        },
        "putInJunk": {
          "type": "boolean",
          "description": "If message is a spam or virus put in junk. Overridden by deleteSpam or deleteVirus"
        },
        "tagSpam": {
          "type": "boolean",
          "description": "If message is a spam change its subject"
        },
        "tagVirus": {
          "type": "boolean",
          "description": "If message is a virus change its subject"
        }
      }
    }
  }
}