{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-exchange-exchange-service-with-iam-schema.json",
  "title": "email.exchange.ExchangeServiceWithIAM",
  "description": "Exchange service",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-email-exchange-openapi.yml#/components/schemas/email.exchange.ExchangeServiceWithIAM",
  "type": "object",
  "properties": {
    "adfsChangePassword": {
      "type": "boolean",
      "description": "Enable or disable password change via ADFS"
    },
    "cnameDcvRecord": {
      "type": [
        "string",
        "null"
      ],
      "description": "DNS Domain Control Validation record, require for order ssl varification process",
      "readOnly": true
    },
    "complexityEnabled": {
      "type": "boolean",
      "description": "enable policy for strong and secure passwords"
    },
    "defaultAuthenticationPolicyId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "ID of the authentication policy to apply on a new Exchange account"
    },
    "defaultSmartHost": {
      "type": [
        "string",
        "null"
      ],
      "description": "Relay domain address that can be used to send all e-mails via default send connector",
      "readOnly": true
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "service displayName"
    },
    "domain": {
      "type": "string",
      "readOnly": true
    },
    "hostname": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "iam": {
      "allOf": [
        {
          "$ref": "#/$defs/iam.ResourceMetadata"
        }
      ],
      "description": "IAM resource metadata",
      "nullable": true,
      "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.exchange.ServiceOfferEnum"
        }
      ],
      "readOnly": true
    },
    "passwordHistoryCount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "number of historical password that cannot be reused"
    },
    "spamAndVirusConfiguration": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.spamAndVirusConfiguration"
        }
      ],
      "description": "Spam and Antivirus configuration"
    },
    "sslExpirationDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "readOnly": true
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.ServiceStateEnum"
        }
      ],
      "readOnly": true
    },
    "taskPendingId": {
      "type": "integer",
      "description": "Task pending id",
      "readOnly": true
    },
    "webUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL for web interface",
      "readOnly": true
    }
  },
  "$defs": {
    "email.exchange.ServiceOfferEnum": {
      "type": "string",
      "description": "Service Offer name",
      "enum": [
        "dedicated",
        "dedicatedCluster",
        "hosted",
        "provider"
      ]
    },
    "email.exchange.ServiceStateEnum": {
      "type": "string",
      "description": "Exchange Service State",
      "enum": [
        "inMaintenance",
        "ok",
        "suspended"
      ]
    },
    "email.exchange.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"
        }
      }
    },
    "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"
      ]
    }
  }
}