{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-pro-service-native-with-iam-schema.json",
  "title": "email.pro.ServiceNativeWithIAM",
  "description": "Email pro service",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-email-pro-openapi.yml#/components/schemas/email.pro.ServiceNativeWithIAM",
  "type": "object",
  "properties": {
    "complexityEnabled": {
      "type": "boolean",
      "description": "enable policy for strong and secure passwords",
      "readOnly": true
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "service displayName",
      "readOnly": true
    },
    "domain": {
      "type": "string",
      "description": "Domain name of your service",
      "readOnly": true
    },
    "hostname": {
      "type": [
        "string",
        "null"
      ],
      "description": "Hostname of your service",
      "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",
      "readOnly": true
    },
    "lockoutObservationWindow": {
      "type": "integer",
      "description": "number of minutes that must elapse after a failed logon to reset lockout trigger",
      "readOnly": true
    },
    "lockoutThreshold": {
      "type": [
        "integer",
        "null"
      ],
      "description": "number of attempts before account to be locked",
      "readOnly": true
    },
    "maxPasswordAge": {
      "type": [
        "integer",
        "null"
      ],
      "description": "maximum number of days that account's password is valid before expiration",
      "readOnly": true
    },
    "maxReceiveSize": {
      "type": "integer",
      "description": "Maximum message size that You can receive in MB",
      "readOnly": true
    },
    "maxSendSize": {
      "type": "integer",
      "description": "Maximum message size that You can send in MB",
      "readOnly": true
    },
    "minPasswordAge": {
      "type": [
        "integer",
        "null"
      ],
      "description": "minimum number of days before able to change account's password",
      "readOnly": true
    },
    "minPasswordLength": {
      "type": [
        "integer",
        "null"
      ],
      "description": "minimum number of characters password must contain",
      "readOnly": true
    },
    "offer": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.ServiceOfferEnum"
        }
      ],
      "description": "Type of your offer",
      "readOnly": true
    },
    "spamAndVirusConfiguration": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.spamAndVirusConfiguration"
        }
      ],
      "description": "Spam and Antivirus configuration",
      "readOnly": true
    },
    "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.pro.ServiceOfferEnum": {
      "type": "string",
      "description": "Service Offer name",
      "enum": [
        "emailpro"
      ]
    },
    "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",
          "readOnly": true
        },
        "checkSPF": {
          "type": "boolean",
          "description": "Check SPF of message",
          "readOnly": true
        },
        "deleteSpam": {
          "type": "boolean",
          "description": "If message is a spam delete it",
          "readOnly": true
        },
        "deleteVirus": {
          "type": "boolean",
          "description": "If message is a virus delete it",
          "readOnly": true
        },
        "putInJunk": {
          "type": "boolean",
          "description": "If message is a spam or virus put in junk. Overridden by deleteSpam or deleteVirus",
          "readOnly": true
        },
        "tagSpam": {
          "type": "boolean",
          "description": "If message is a spam change its subject",
          "readOnly": true
        },
        "tagVirus": {
          "type": "boolean",
          "description": "If message is a virus change its subject",
          "readOnly": true
        }
      }
    },
    "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"
      ]
    }
  }
}