{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-exchange-exchange-remote-mailbox-schema.json",
  "title": "email.exchange.exchangeRemoteMailbox",
  "description": "Exchange remote mailbox",
  "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.exchangeRemoteMailbox",
  "type": "object",
  "properties": {
    "SAMAccountName": {
      "type": [
        "string",
        "null"
      ],
      "description": "SAM account name",
      "readOnly": true
    },
    "city": {
      "type": [
        "string",
        "null"
      ],
      "description": "city"
    },
    "company": {
      "type": [
        "string",
        "null"
      ],
      "description": "Company name"
    },
    "countryCode": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.CountryCodeEnum"
        }
      ],
      "description": "Country code",
      "nullable": true
    },
    "creationDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Creation date",
      "format": "date-time",
      "readOnly": true
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Description"
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Remote mailbox display name"
    },
    "domain": {
      "type": "string",
      "description": "Remote mailbox domain"
    },
    "exchangeGuid": {
      "type": [
        "string",
        "null"
      ],
      "description": "exchangeGuid for manual configuration",
      "readOnly": true
    },
    "fax": {
      "allOf": [
        {
          "$ref": "#/$defs/phoneNumber"
        }
      ],
      "description": "Fax number",
      "nullable": true
    },
    "firstName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Remote mailbox first name"
    },
    "guid": {
      "type": [
        "string",
        "null"
      ],
      "description": "GUID for user in active directory",
      "readOnly": true
    },
    "hiddenFromGAL": {
      "type": "boolean",
      "description": "Hide remote mailbox  in Global Address List"
    },
    "id": {
      "type": "integer",
      "description": "Remote mailbox id",
      "readOnly": true
    },
    "initial": {
      "type": [
        "string",
        "null"
      ],
      "description": "Remote mailbox initials"
    },
    "jobDepartment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Job Department"
    },
    "jobTitle": {
      "type": [
        "string",
        "null"
      ],
      "description": "Job title"
    },
    "lastName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Remote mailbox last name"
    },
    "login": {
      "type": "string",
      "description": "Remote mailbox login"
    },
    "mobile": {
      "allOf": [
        {
          "$ref": "#/$defs/phoneNumber"
        }
      ],
      "description": "Mobile phone",
      "nullable": true
    },
    "numberOfAliases": {
      "type": "integer",
      "description": "Count the number of related aliases attached to this account",
      "readOnly": true
    },
    "office": {
      "type": [
        "string",
        "null"
      ],
      "description": "Job office"
    },
    "phone": {
      "allOf": [
        {
          "$ref": "#/$defs/phoneNumber"
        }
      ],
      "description": "Phone number",
      "nullable": true
    },
    "postalCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Postal code"
    },
    "primaryEmailAddress": {
      "type": "string",
      "description": "Default email for this mailbox",
      "readOnly": true
    },
    "region": {
      "type": [
        "string",
        "null"
      ],
      "description": "region"
    },
    "remoteRoutingAddress": {
      "type": "string",
      "description": "Email address of associated mailbox",
      "readOnly": true
    },
    "spamAndVirusConfiguration": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.spamAndVirusConfiguration"
        }
      ],
      "description": "Spam and Antivirus configuration"
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.ObjectStateEnum"
        }
      ],
      "description": "Remote mailbox state",
      "readOnly": true
    },
    "streetAddress": {
      "type": [
        "string",
        "null"
      ],
      "description": "Street address"
    },
    "taskPendingId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Pending task for this remote mailbox",
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.ExchangeRemoteMailboxTypeEnum"
        }
      ],
      "description": "Type of mailbox",
      "readOnly": true
    }
  },
  "$defs": {
    "email.exchange.CountryCodeEnum": {
      "type": "string",
      "description": "Country Code iso",
      "enum": [
        "AC",
        "AD",
        "AE",
        "AF",
        "AG",
        "AI",
        "AL",
        "AM",
        "AO",
        "AQ",
        "AR",
        "AS",
        "AT",
        "AU",
        "AW",
        "AX",
        "AZ",
        "BA",
        "BB",
        "BD",
        "BE",
        "BF",
        "BG",
        "BH",
        "BI",
        "BJ",
        "BL",
        "BM",
        "BN",
        "BO",
        "BQ",
        "BR",
        "BS",
        "BT",
        "BW",
        "BY",
        "BZ",
        "CA",
        "CC",
        "CD",
        "CF",
        "CG",
        "CH",
        "CI",
        "CK",
        "CL",
        "CM",
        "CN",
        "CO",
        "CR",
        "CU",
        "CV",
        "CW",
        "CX",
        "CY",
        "CZ",
        "DE",
        "DG",
        "DJ",
        "DK",
        "DM",
        "DO",
        "DZ",
        "EA",
        "EC",
        "EE",
        "EG",
        "EH",
        "ER",
        "ES",
        "ET",
        "FI",
        "FJ",
        "FK",
        "FM",
        "FO",
        "FR",
        "GA",
        "GB",
        "GD",
        "GE",
        "GF",
        "GG",
        "GH",
        "GI",
        "GL",
        "GM",
        "GN",
        "GP",
        "GQ",
        "GR",
        "GS",
        "GT",
        "GU",
        "GW",
        "GY",
        "HK",
        "HN",
        "HR",
        "HT",
        "HU",
        "IC",
        "ID",
        "IE",
        "IL",
        "IM",
        "IN",
        "IO",
        "IQ",
        "IR",
        "IS",
        "IT",
        "JE",
        "JM",
        "JO",
        "JP",
        "KE",
        "KG",
        "KH",
        "KI",
        "KM",
        "KN",
        "KP",
        "KR",
        "KW",
        "KY",
        "KZ",
        "LA",
        "LB",
        "LC",
        "LI",
        "LK",
        "LR",
        "LS",
        "LT",
        "LU",
        "LV",
        "LY",
        "MA",
        "MC",
        "MD",
        "ME",
        "MF",
        "MG",
        "MH",
        "MK",
        "ML",
        "MM",
        "MN",
        "MO",
        "MP",
        "MQ",
        "MR",
        "MS",
        "MT",
        "MU",
        "MV",
        "MW",
        "MX",
        "MY",
        "MZ",
        "NA",
        "NC",
        "NE",
        "NF",
        "NG",
        "NI",
        "NL",
        "NO",
        "NP",
        "NR",
        "NU",
        "NZ",
        "OM",
        "PA",
        "PE",
        "PF",
        "PG",
        "PH",
        "PK",
        "PL",
        "PM",
        "PN",
        "PR",
        "PS",
        "PT",
        "PW",
        "PY",
        "QA",
        "RE",
        "RO",
        "RS",
        "RU",
        "RW",
        "SA",
        "SB",
        "SC",
        "SD",
        "SE",
        "SG",
        "SH",
        "SI",
        "SJ",
        "SK",
        "SL",
        "SM",
        "SN",
        "SO",
        "SR",
        "SS",
        "ST",
        "SV",
        "SX",
        "SY",
        "SZ",
        "TA",
        "TC",
        "TD",
        "TF",
        "TG",
        "TH",
        "TJ",
        "TK",
        "TL",
        "TM",
        "TN",
        "TO",
        "TR",
        "TT",
        "TV",
        "TW",
        "TZ",
        "UA",
        "UG",
        "UM",
        "US",
        "UY",
        "UZ",
        "VA",
        "VC",
        "VE",
        "VG",
        "VI",
        "VN",
        "VU",
        "WF",
        "WS",
        "XK",
        "YE",
        "YT",
        "ZA",
        "ZM",
        "ZW"
      ]
    },
    "email.exchange.ExchangeRemoteMailboxTypeEnum": {
      "type": "string",
      "description": "Type of the remote mailbox",
      "enum": [
        "equipment",
        "regular",
        "room"
      ]
    },
    "email.exchange.ObjectStateEnum": {
      "type": "string",
      "description": "Current object state",
      "enum": [
        "creating",
        "deleting",
        "internalMigration",
        "ok",
        "reopening",
        "suspended",
        "suspending"
      ]
    },
    "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"
        }
      }
    },
    "phoneNumber": {
      "type": "string",
      "description": "Phone number",
      "format": "phone-number"
    }
  }
}