{"openapi":"3.0.0","info":{"title":"OVHcloud API specification","description":"Specification for OVHcloud API","version":"1.0","contact":{"name":"OVH","email":"api@ml.ovh.net"}},"servers":[{"url":"https://api.eu.ovhcloud.com/1.0"}],"components":{"schemas":{"any":{"description":"Can be anything (text, int, bool, json, html, etc.)","example":"This is a content of any type !"},"duration":{"type":"string","description":"Duration (e.g., P1Y2M3DT4H6M9S)","example":"P1Y2M3DT4H6M9S"},"email":{"type":"string","description":"Email address (e.g., api@ml.ovh.net)","format":"email","example":"api@ml.ovh.net"},"email.exchange.Account":{"type":"object","description":"Exchange mailbox","properties":{"SAMAccountName":{"type":"string","description":"SAM account name","nullable":true,"readOnly":true},"accountLicense":{"allOf":[{"$ref":"#/components/schemas/email.exchange.OvhLicenceEnum"}],"description":"Exchange account type"},"authenticationPolicyId":{"type":"integer","description":"ID of the authentication policy to apply on this account","nullable":true},"city":{"type":"string","description":"city","nullable":true},"company":{"type":"string","description":"Company name","nullable":true},"configured":{"type":"boolean","description":"Indicates if the account is configured","readOnly":true},"countryCode":{"allOf":[{"$ref":"#/components/schemas/email.exchange.CountryCodeEnum"}],"description":"Country code","nullable":true},"creationDate":{"type":"string","description":"Creation date","nullable":true,"format":"date-time","readOnly":true},"currentUsage":{"type":"integer","description":"Mailbox usage","nullable":true,"readOnly":true},"customIsolationId":{"type":"integer","description":"custom isolation apply on this account","nullable":true,"readOnly":true},"deleteAtExpiration":{"type":"boolean","description":"delete at expiration","nullable":true},"deleteOutlookAtExpiration":{"type":"boolean","description":"delete outlook at expiration","nullable":true},"description":{"type":"string","description":"Description","nullable":true},"displayName":{"type":"string","description":"Account display name","nullable":true},"domain":{"type":"string","description":"Email domain"},"exchangeGuid":{"type":"string","description":"exchangeGuid for manual configuration","nullable":true,"readOnly":true},"expirationDate":{"type":"string","description":"expiration date","nullable":true,"format":"date-time","readOnly":true},"expirationOutlookDate":{"type":"string","description":"expiration date","nullable":true,"format":"date-time","readOnly":true},"fax":{"allOf":[{"$ref":"#/components/schemas/phoneNumber"}],"description":"Fax number","nullable":true},"firstName":{"type":"string","description":"Account first name","nullable":true},"forwardingEmail":{"type":"string","description":"Email address to forward email","nullable":true},"guid":{"type":"string","description":"GUID for user in active directory","nullable":true,"readOnly":true},"hiddenFromGAL":{"type":"boolean","description":"Hide account in Global Address List"},"id":{"type":"integer","description":"Account id","readOnly":true},"initial":{"type":"string","description":"Account initials","nullable":true},"jobDepartment":{"type":"string","description":"Job Department","nullable":true},"jobTitle":{"type":"string","description":"Job title","nullable":true},"lastLogoffDate":{"type":"string","description":"Last logoff","nullable":true,"format":"date-time","readOnly":true},"lastLogonDate":{"type":"string","description":"Last logon","nullable":true,"format":"date-time","readOnly":true},"lastName":{"type":"string","description":"Account last name","nullable":true},"lastUpdateDate":{"type":"string","description":"Last update","nullable":true,"format":"date-time","readOnly":true},"litigation":{"type":"boolean","description":"Litigation hold feature enabled on this mailbox"},"litigationPeriod":{"type":"integer","description":"Litigation hold period in days (0 means unlimited). This setting covers all items in the mailbox.","nullable":true},"login":{"type":"string","description":"Account login"},"mailSenderDisplay":{"type":"string","description":"Email display as sender","nullable":true},"mailingFilter":{"type":"array","description":"Enable or disable anti-virus and anti-spam","nullable":true,"items":{"$ref":"#/components/schemas/email.exchange.MailingFilterEnum"}},"mobile":{"allOf":[{"$ref":"#/components/schemas/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","description":"Job office","nullable":true},"outlookLicense":{"type":"boolean","description":"Outlook licence"},"owaLimited":{"type":"boolean","description":"OWA policy restriction is applied","readOnly":true},"passwordLastUpdate":{"type":"string","description":"Time of account's password last update","nullable":true,"format":"date-time","readOnly":true},"phone":{"allOf":[{"$ref":"#/components/schemas/phoneNumber"}],"description":"Phone number","nullable":true},"postalCode":{"type":"string","description":"Postal code","nullable":true},"primaryEmailAddress":{"type":"string","description":"Default email for this mailbox","readOnly":true},"quota":{"type":"integer","description":"Account maximum size"},"region":{"type":"string","description":"region","nullable":true},"renewOutlookPeriod":{"allOf":[{"$ref":"#/components/schemas/email.exchange.renewPeriodEnum"}],"description":"change the renew period for outlook","nullable":true},"renewPeriod":{"allOf":[{"$ref":"#/components/schemas/email.exchange.renewPeriodEnum"}],"description":"change the renew period","nullable":true},"sbrDestination":{"type":"string","description":"Relay domain address that will be used to all e-mails send from this account","nullable":true},"sendConnectorId":{"type":"integer","description":"Custom sendConnectorId used to send mails when SBR is configured","nullable":true},"spamAndVirusConfiguration":{"allOf":[{"$ref":"#/components/schemas/email.exchange.spamAndVirusConfiguration"}],"description":"Spam and Antivirus configuration"},"spamDetected":{"type":"boolean","description":"Account was sending spam","readOnly":true},"spamTicketNumber":{"type":"integer","description":"Ticket number of spam detection","nullable":true,"readOnly":true},"state":{"allOf":[{"$ref":"#/components/schemas/email.exchange.ObjectStateEnum"}],"description":"Account state","readOnly":true},"storeCopyOfEmail":{"type":"boolean","description":"Store copy of email when forward is enable"},"streetAddress":{"type":"string","description":"Street address","nullable":true},"taskPendingId":{"type":"integer","description":"Pending task for this account","nullable":true,"readOnly":true}}},"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.Export":{"type":"object","description":"Export PST file request","properties":{"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"percentComplete":{"type":"integer","description":"Percentage of export PST request completion","readOnly":true},"taskPendingId":{"type":"integer","description":"Task pending id","readOnly":true}}},"email.exchange.ExportUrl":{"type":"object","description":"Export PST file url","properties":{"expiration":{"type":"string","description":"Url expiration date","format":"date-time","readOnly":true},"url":{"type":"string","description":"Export url","readOnly":true}}},"email.exchange.LanguageEnum":{"type":"string","description":"Outlook language","enum":["ar","bg","cz","da","de","el","en","es","et","fi","fr","he","hr","hu","id","in","it","ja","ko","kz","lt","lv","ms","nb","nl","pl","pt","pt-BR","ro","rs","ru","sk","sl","sv","th","tr","uk","vi","zh-CN"]},"email.exchange.MailingFilterEnum":{"type":"string","description":"Mailing filter options availlable","enum":["vaderetro"]},"email.exchange.ObjectStateEnum":{"type":"string","description":"Current object state","enum":["creating","deleting","internalMigration","ok","reopening","suspended","suspending"]},"email.exchange.OutlookUrl":{"type":"object","description":"Outlook url","properties":{"expiration":{"type":"string","description":"Url expiration date","format":"date-time","readOnly":true},"serial":{"type":"string","description":"Serial number","readOnly":true},"url":{"type":"string","description":"Outlook url","readOnly":true}}},"email.exchange.OutlookVersionEnum":{"type":"string","description":"Outlook version","enum":["mac_x86_2016","mac_x86_2019","mac_x86_2021","windows_x64_2016","windows_x64_2019","windows_x64_2021","windows_x86_2016","windows_x86_2019","windows_x86_2021"]},"email.exchange.OvhLicenceEnum":{"type":"string","description":"OVH licence account","enum":["basic","enterprise","standard"]},"email.exchange.Task":{"type":"object","description":"Exchange task details","properties":{"finishDate":{"type":"string","description":"Completion date","nullable":true,"format":"date-time","readOnly":true},"function":{"allOf":[{"$ref":"#/components/schemas/email.exchange.TaskFunctionEnum"}],"description":"Function name","readOnly":true},"id":{"type":"integer","description":"Task id","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/email.exchange.TaskStatusEnum"}],"description":"Task status","readOnly":true},"todoDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true}}},"email.exchange.TaskFunctionEnum":{"type":"string","description":"function enumeration for exchange task","enum":["activateSharepoint","addAccount","addAccountArchive","addAccountImpersonation","addActiveSyncMailNotification","addAlias","addDistributionGroup","addDistributionGroupManager","addDistributionGroupMember","addDistributionGroupSendAs","addDistributionGroupSendOnBehalfTo","addDomain","addDomainDisclaimer","addExchangeCustomIsolation","addExchangeDomainDKIM","addExchangeRemoteMailbox","addExchangeServiceAuthorizedIp","addExportPstRequest","addExternalContact","addFullAccess","addOutlookLicense","addPublicFolder","addPublicFolderPermission","addResourceAccount","addResourceDelegate","addSendAs","addSendConnector","addSendOnBehalfTo","addSharedAccount","addSharedAccountFullAccess","addSharedAccountSendAs","addSharedAccountSendOnBehalfTo","changeHostname","changePassword","clearDataOnDevice","cloneTemplateExchangePrivate","configureExchangeCustomer","configureExchangeOwaMfa","copyMailbox","createExternalAntiSpamReceiveConnector","deleteAccount","deleteAccountArchive","deleteAccountImpersonation","deleteActiveSyncMailNotification","deleteAlias","deleteDistributionGroup","deleteDistributionGroupManager","deleteDistributionGroupMember","deleteDistributionGroupSendAs","deleteDistributionGroupSendOnBehalfTo","deleteDomain","deleteDomainDisclaimer","deleteExchangeCustomIsolation","deleteExchangeDomainDKIM","deleteExchangeRemoteMailbox","deleteExchangeService","deleteExchangeServiceAuthorizedIp","deleteExportPstRequest","deleteExternalAntiSpamReceiveConnector","deleteExternalContact","deleteFullAccess","deleteOutlookLicense","deletePublicFolder","deletePublicFolderPermission","deleteResourceAccount","deleteResourceDelegate","deleteSendAs","deleteSendConnector","deleteSendOnBehalfTo","deleteSharedAccount","deleteSharedAccountFullAccess","deleteSharedAccountSendAs","deleteSharedAccountSendOnBehalfTo","destroyPrivateVm","diagnoseAccount","disableExchangeDKIM","enableExchangeDKIM","expandDrive","generateOutlookUrl","generatePstUrl","installExchange","installSSL","maintenance","migrationAccount","migrationDisclaimer","migrationExternalContact","migrationHistory","migrationMailingList","migrationResourceAccount","migrationService","reOpenHostedAccount","reOpenOutlookLicense","reOpenPrivateAccount","reOpenPrivateVm","setAccount","setAccountArchive","setAlias","setDistributionGroup","setDns","setDomain","setDomainDisclaimer","setExchangeAccountProtocol","setExchangeRemoteMailbox","setExchangeServiceDevice","setExternalAntiSpamReceiveConnector","setExternalContact","setPublicFolder","setPublicFolderPermission","setResourceAccount","setSendConnector","setService","setSharedAccount","suspendAccount","suspendExchangeService","suspendHostedAccount","suspendOutlookLicense","suspendPrivateAccount","suspendPrivateVm","unsuspendAccount","unsuspendExchangeService","unsuspendHostedAccount","updateExchangeServiceDevice","upgrade2016"]},"email.exchange.TaskStatusEnum":{"type":"string","description":"Exchange task status","enum":["cancelled","doing","done","error","todo"]},"email.exchange.exchangeAccountAlias":{"type":"object","description":"Aliases on this mailbox","properties":{"alias":{"type":"string","description":"Alias","readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id","readOnly":true}}},"email.exchange.exchangeAccountArchive":{"type":"object","description":"Exchange Account Archive","properties":{"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"currentUsage":{"type":"integer","description":"Archive mailbox usage","nullable":true,"readOnly":true},"guid":{"type":"string","description":"GUID of archive mailbox","nullable":true,"readOnly":true},"quota":{"type":"integer","description":"Archive mailbox maximum size in GB"},"state":{"allOf":[{"$ref":"#/components/schemas/email.exchange.ObjectStateEnum"}],"description":"Archive mailbox state","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task for this archive mailbox","nullable":true,"readOnly":true}}},"email.exchange.exchangeAccountFullAccess":{"type":"object","description":"Users having full access on this mailbox","properties":{"allowedAccountId":{"type":"integer","description":"Account id to give full access","readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id","readOnly":true}}},"email.exchange.exchangeAccountProtocol":{"type":"object","description":"Get protocol status on that mailbox","properties":{"IMAP":{"type":"boolean","description":"IMAP protocol enabled on that mailbox"},"POP":{"type":"boolean","description":"POP protocol enabled on that mailbox"},"activeSync":{"type":"boolean","description":"Mobile access enabled on that mailbox"},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"lastUpdate":{"type":"string","description":"Last update date","nullable":true,"format":"date-time","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id","readOnly":true},"webMail":{"type":"boolean","description":"Web mail enabled on that mailbox"}}},"email.exchange.exchangeAccountSendAs":{"type":"object","description":"Users authorized to send mails from this mailbox","properties":{"allowedAccountId":{"type":"integer","description":"Account id to give send as","readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id","readOnly":true}}},"email.exchange.exchangeAccountSendOnBehalfTo":{"type":"object","description":"Get users authorized to Send On Behalf To mails from this mailbox","properties":{"allowedAccountId":{"type":"integer","description":"Account id to give send on behalf to","readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id","readOnly":true}}},"email.exchange.renewPeriodEnum":{"type":"string","description":"Renew period","enum":["monthly","yearly"]},"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"}}},"internationalPhoneNumber":{"type":"string","description":"International phone number","format":"phone-number"},"ip":{"type":"string","description":"IP address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipBlock":{"type":"string","description":"IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)","format":"ip-block","example":"192.0.2.0/24"},"ipInterface":{"type":"string","description":"IP address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipv4":{"type":"string","description":"IPv4 address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipv4Block":{"type":"string","description":"IPv4 CIDR notation (e.g., 192.0.2.0/24)","format":"ipv4-block","example":"192.0.2.0/24"},"ipv6":{"type":"string","description":"IPv6 address (e.g., 2001:41d0:1:1994::1)","format":"ipv6","example":"2001:41d0:1:1994::1"},"ipv6Block":{"type":"string","description":"IPv6 CIDR notation (e.g., 2001:41d0::/128)","format":"ipv6-block","example":"2001:41d0::/128"},"macAddress":{"type":"string","description":"MAC address (e.g., 00:00:5e:00:53:01)","format":"mac-address","example":"00:00:5e:00:53:01"},"msServices.Account":{"type":"object","description":"Active Directory Account","properties":{"SAMAccountName":{"type":"string","description":"SAM account name","nullable":true,"readOnly":true},"city":{"type":"string","description":"city","nullable":true},"company":{"type":"string","description":"Company name","nullable":true},"countryCode":{"allOf":[{"$ref":"#/components/schemas/email.exchange.CountryCodeEnum"}],"description":"Country code","nullable":true},"creationDate":{"type":"string","description":"Creation date","nullable":true,"format":"date-time","readOnly":true},"description":{"type":"string","description":"Description","nullable":true},"displayName":{"type":"string","description":"Account display name","nullable":true},"entraIdSynced":{"type":"boolean","description":"Is synced to Entra ID","nullable":true},"fax":{"allOf":[{"$ref":"#/components/schemas/phoneNumber"}],"description":"Fax number","nullable":true},"firstName":{"type":"string","description":"Account first name","nullable":true},"guid":{"type":"string","description":"GUID for user in active directory","nullable":true,"readOnly":true},"id":{"type":"integer","description":"Account id","readOnly":true},"initials":{"type":"string","description":"Account initials","nullable":true},"jobDepartment":{"type":"string","description":"Job Department","nullable":true},"jobTitle":{"type":"string","description":"Job title","nullable":true},"lastLogoffDate":{"type":"string","description":"Last logoff","nullable":true,"format":"date-time","readOnly":true},"lastLogonDate":{"type":"string","description":"Last logon","nullable":true,"format":"date-time","readOnly":true},"lastName":{"type":"string","description":"Account last name","nullable":true},"lastUpdateDate":{"type":"string","description":"Last update","nullable":true,"format":"date-time","readOnly":true},"mobile":{"allOf":[{"$ref":"#/components/schemas/phoneNumber"}],"description":"Mobile phone","nullable":true},"office":{"type":"string","description":"Job office","nullable":true},"passwordLastUpdate":{"type":"string","description":"Time of account's password last update","nullable":true,"format":"date-time","readOnly":true},"phone":{"allOf":[{"$ref":"#/components/schemas/phoneNumber"}],"description":"Phone number","nullable":true},"postalCode":{"type":"string","description":"Postal code","nullable":true},"region":{"type":"string","description":"region","nullable":true},"state":{"allOf":[{"$ref":"#/components/schemas/msServices.ObjectStateEnum"}],"description":"Account state","readOnly":true},"streetAddress":{"type":"string","description":"Street address","nullable":true},"taskPendingId":{"type":"integer","description":"Pending task for this account","readOnly":true},"userPrincipalName":{"type":"string","description":"User Principal Name"}}},"msServices.ExchangeInformation":{"type":"object","description":"Exchange mailbox information","properties":{"accountLicense":{"allOf":[{"$ref":"#/components/schemas/msServices.ExchangeLicenceEnum"}],"description":"Exchange account license"},"configured":{"type":"boolean","description":"Indicates if the account is configured","readOnly":true},"creationDate":{"type":"string","description":"Creation date","nullable":true,"format":"date-time","readOnly":true},"currentUsage":{"type":"integer","description":"Mailbox usage in KB","nullable":true,"readOnly":true},"deleteAtExpiration":{"type":"boolean","description":"Delete mailbox at expiration date","nullable":true},"deleteOutlookAtExpiration":{"type":"boolean","description":"Delete Outlook license at expiration date","nullable":true},"exchangeGuid":{"type":"string","description":"Property needed for mailbox manual configuration (GUID)","nullable":true,"readOnly":true},"expirationDate":{"type":"string","description":"Expiration date","nullable":true,"format":"date-time","readOnly":true},"expirationOutlookDate":{"type":"string","description":"Expiration date of Outlook license","nullable":true,"format":"date-time","readOnly":true},"hiddenFromGAL":{"type":"boolean","description":"Visibility in Global Address List"},"id":{"type":"integer","description":"Account id","readOnly":true},"litigation":{"type":"boolean","description":"Litigation hold feature enabled on this mailbox"},"litigationPeriod":{"type":"integer","description":"Litigation hold period in days (0 means unlimited). This setting covers all items in the mailbox.","nullable":true},"mailingFilter":{"type":"array","description":"Enable or disable anti-virus and anti-spam","nullable":true,"items":{"$ref":"#/components/schemas/msServices.MailingFilterEnum"}},"numberOfAliases":{"type":"integer","description":"Count the number of related aliases attached to this account","readOnly":true},"outlookLicense":{"type":"boolean","description":"Outlook licence attached"},"owaLimited":{"type":"boolean","description":"OWA policy restriction is applied","readOnly":true},"primaryEmailAddress":{"type":"string","description":"Primary address of the mailbox","readOnly":true},"quota":{"type":"integer","description":"Maximum mailbox usage in GB (overall size)"},"renewOutlookPeriod":{"allOf":[{"$ref":"#/components/schemas/msServices.RenewPeriodEnum"}],"description":"Frequency of Outlook license renewals","nullable":true},"renewPeriod":{"allOf":[{"$ref":"#/components/schemas/msServices.RenewPeriodEnum"}],"description":"Frequency of mailbox license renewals","nullable":true},"spamAndVirusConfiguration":{"allOf":[{"$ref":"#/components/schemas/msServices.SpamAndVirusConfiguration"}],"description":"Spam and Antivirus configuration"},"spamDetected":{"type":"boolean","description":"Spam activity detected on this mailbox","readOnly":true},"spamTicketNumber":{"type":"integer","description":"Ticket number of spam detection","nullable":true,"readOnly":true},"state":{"allOf":[{"$ref":"#/components/schemas/msServices.ObjectStateEnum"}],"description":"Mailbox state","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id for this account","readOnly":true}}},"msServices.ExchangeLicenceEnum":{"type":"string","description":"Exchange account licence","enum":["basic","enterprise","standard"]},"msServices.MailingFilterEnum":{"type":"string","description":"Mailing filter options availlable","enum":["vaderetro"]},"msServices.MfaInformation":{"type":"object","description":"Multi Factor Authentication informations","properties":{"activated":{"type":"boolean","description":"Indicates if Multi Factor Authentication is activated on this account","readOnly":true},"state":{"allOf":[{"$ref":"#/components/schemas/msServices.ObjectStateEnum"}],"description":"Current status of Multi Factor Authentication feature","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task for Multi Factor Authentication","readOnly":true}}},"msServices.ObjectStateEnum":{"type":"string","description":"Current object state","enum":["creating","deleting","disabled","modifying","ok","reopening","suspended","suspending"]},"msServices.RenewPeriodEnum":{"type":"string","description":"Renew period","enum":["monthly","yearly"]},"msServices.SpamAndVirusConfiguration":{"type":"object","description":"Spam and Antivirus 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"}}},"msServices.Task":{"type":"object","description":"Active Directory task details","properties":{"finishDate":{"type":"string","description":"Completion date","nullable":true,"format":"date-time","readOnly":true},"function":{"allOf":[{"$ref":"#/components/schemas/msServices.TaskFunctionEnum"}],"description":"Function name","readOnly":true},"id":{"type":"integer","description":"Task id","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/msServices.TaskStatusEnum"}],"description":"Task status","readOnly":true},"todoDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true}}},"msServices.TaskFunctionEnum":{"type":"string","description":"function enumeration for Active Directory task","enum":["activateADSync","activateSharepoint","addADAccount","addADOU","addADSyncAccount","addADUPNSuffix","alterMfaOnAllUsers","changeADPassword","changeADSyncPassword","deactivateADSync","delADOU","deleteADAccount","deleteADSyncAccount","deleteADUPNSuffix","disableADAccountMfa","disableADAccountMfaTemporary","enableADAccountMfa","enableADSyncAccount","generateADSyncClientUrl","resetADAccountMfa","setADAccount","setPasswordPolicy"]},"msServices.TaskStatusEnum":{"type":"string","description":"ActiveDirectory task status","enum":["cancelled","doing","done","error","todo"]},"phoneNumber":{"type":"string","description":"Phone number","format":"phone-number"},"time":{"type":"string","description":"Time (e.g., 15:04:05)","format":"time","example":"15:04:05"}},"securitySchemes":{"oAuth2AuthCode":{"type":"oauth2","description":"Oauth2","x-client-id":"1bb9c7df371741c0","x-client-secret":"a5b4de870aca620d10fbf63cd18d205b","flows":{"authorizationCode":{"authorizationUrl":"https://auth.eu.ovhcloud.com/oauth2/authorize","tokenUrl":"https://auth.eu.ovhcloud.com/oauth2/token","scopes":{"account/all":"Manage your account","all":"Manage your whole account and all your services","services/all":"Manage your services lifecycle and billing"}}}}}},"paths":{"/email/exchange/{organizationName}/service/{exchangeService}/account":{"get":{"summary":"List email accounts","description":"List email accounts. Returns the primary email addresses of the email accounts. Filter them by `primaryEmailAddress`, `id`, `accountLicense` or `company`.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"accountLicense","description":"Filter the value of accountLicense property (=)","schema":{"$ref":"#/components/schemas/email.exchange.OvhLicenceEnum"}},{"in":"query","name":"company","description":"Filter the value of company property (like)","schema":{"type":"string"}},{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"query","name":"id","description":"Filter the value of id property (like)","schema":{"type":"integer"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"query","name":"primaryEmailAddress","description":"Filter the value of primaryEmailAddress property (like)","schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@10"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@10"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@10"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/get","required":true}],"x-expanded-response":"EmailExchangeAccount"},"post":{"summary":"Create an email account","description":"Create an email account. Creates an email account from a `login`, a `domain`, a `password` and a `license`, and returns the task. Set `quota` in GB.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"SAMAccountName":{"type":"string","description":"SAM account name (exchange 2010 login)"},"authenticationPolicyId":{"type":"integer","description":"ID of the authentication policy"},"city":{"type":"string","description":"City"},"company":{"type":"string","description":"Company name"},"countryCode":{"description":"Country code","$ref":"#/components/schemas/email.exchange.CountryCodeEnum"},"description":{"type":"string","description":"Description"},"displayName":{"type":"string","description":"Account display name"},"domain":{"type":"string","description":"Email domain"},"fax":{"description":"Fax number","$ref":"#/components/schemas/phoneNumber"},"firstName":{"type":"string","description":"Account first name"},"forwardingEmail":{"type":"string","description":"Email address to forward email"},"hiddenFromGAL":{"type":"boolean","description":"Hide the account in Global Address List"},"initials":{"type":"string","description":"Account initials"},"jobDepartment":{"type":"string","description":"Job department"},"jobTitle":{"type":"string","description":"Job title"},"lastName":{"type":"string","description":"Account last name"},"license":{"description":"Exchange license","$ref":"#/components/schemas/email.exchange.OvhLicenceEnum"},"litigation":{"type":"boolean","description":"Litigation status"},"litigationPeriod":{"type":"integer","description":"Litigation length in days, 0 means unlimited"},"login":{"type":"string","description":"Account login"},"mailSenderDisplay":{"type":"string","description":"Email display as sender"},"mailingFilter":{"type":"array","description":"Enable mailing filtrering","items":{"$ref":"#/components/schemas/email.exchange.MailingFilterEnum"}},"mobile":{"description":"Mobile phone number","$ref":"#/components/schemas/phoneNumber"},"office":{"type":"string","description":"office"},"outlookLicense":{"type":"boolean","description":"Buy outlook license"},"password":{"type":"string","description":"Account password","format":"password"},"phone":{"description":"Phone Number","$ref":"#/components/schemas/phoneNumber"},"postalCode":{"type":"string","description":"Postal code"},"quota":{"type":"integer","description":"Quota specified in GB. Check pricing table before use"},"region":{"type":"string","description":"Region"},"sbrDestination":{"type":"string","description":"Sender base routing destination domain"},"sendConnectorId":{"type":"integer","description":"Send connector id used to send mails when SBR is defined"},"spamAndVirusConfiguration":{"description":"Antispam and Antivirus configuration","$ref":"#/components/schemas/email.exchange.spamAndVirusConfiguration"},"storeCopyOfEmail":{"type":"boolean","description":"Store copy of email when forward is enable"},"streetAddress":{"type":"string","description":"Street address"}},"required":["domain","license","login","password"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@30"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@30"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: string\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account\",\n\tSAMAccountName = None, # SAM account name (exchange 2010 login) (type: string, nullable)\n\tauthenticationPolicyId = None, # ID of the authentication policy (type: long, nullable)\n\tcity = None, # City (type: string, nullable)\n\tcompany = None, # Company name (type: string, nullable)\n\tcountryCode = None, # Country code (type: email.exchange.CountryCodeEnum, nullable)\n\tdescription = None, # Description (type: string, nullable)\n\tdisplayName = None, # Account display name (type: string, nullable)\n\tdomain = None, # Email domain (type: string)\n\tfax = None, # Fax number (type: phoneNumber, nullable)\n\tfirstName = None, # Account first name (type: string, nullable)\n\tforwardingEmail = None, # Email address to forward email (type: string, nullable)\n\thiddenFromGAL = None, # Hide the account in Global Address List (type: boolean, nullable)\n\tinitials = None, # Account initials (type: string, nullable)\n\tjobDepartment = None, # Job department (type: string, nullable)\n\tjobTitle = None, # Job title (type: string, nullable)\n\tlastName = None, # Account last name (type: string, nullable)\n\tlicense = None, # Exchange license (type: email.exchange.OvhLicenceEnum)\n\tlitigation = None, # Litigation status (type: boolean, nullable)\n\tlitigationPeriod = None, # Litigation length in days, 0 means unlimited (type: long, nullable)\n\tlogin = None, # Account login (type: string)\n\tmailSenderDisplay = None, # Email display as sender (type: string, nullable)\n\tmailingFilter = None, # Enable mailing filtrering (type: email.exchange.MailingFilterEnum[], nullable)\n\tmobile = None, # Mobile phone number (type: phoneNumber, nullable)\n\toffice = None, # office (type: string, nullable)\n\toutlookLicense = None, # Buy outlook license (type: boolean, nullable)\n\tpassword = None, # Account password (type: password)\n\tphone = None, # Phone Number (type: phoneNumber, nullable)\n\tpostalCode = None, # Postal code (type: string, nullable)\n\tquota = None, # Quota specified in GB. Check pricing table before use (type: long, nullable)\n\tregion = None, # Region (type: string, nullable)\n\tsbrDestination = None, # Sender base routing destination domain (type: string, nullable)\n\tsendConnectorId = None, # Send connector id used to send mails when SBR is defined (type: long, nullable)\n\tspamAndVirusConfiguration = None, # Antispam and Antivirus configuration (type: email.exchange.spamAndVirusConfiguration, nullable)\n\tstoreCopyOfEmail = None, # Store copy of email when forward is enable (type: boolean, nullable)\n\tstreetAddress = None, # Street address (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: string\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account\", array(\n\tSAMAccountName => null, // SAM account name (exchange 2010 login) (type: string, nullable)\n\tauthenticationPolicyId => null, // ID of the authentication policy (type: long, nullable)\n\tcity => null, // City (type: string, nullable)\n\tcompany => null, // Company name (type: string, nullable)\n\tcountryCode => null, // Country code (type: email.exchange.CountryCodeEnum, nullable)\n\tdescription => null, // Description (type: string, nullable)\n\tdisplayName => null, // Account display name (type: string, nullable)\n\tdomain => null, // Email domain (type: string)\n\tfax => null, // Fax number (type: phoneNumber, nullable)\n\tfirstName => null, // Account first name (type: string, nullable)\n\tforwardingEmail => null, // Email address to forward email (type: string, nullable)\n\thiddenFromGAL => null, // Hide the account in Global Address List (type: boolean, nullable)\n\tinitials => null, // Account initials (type: string, nullable)\n\tjobDepartment => null, // Job department (type: string, nullable)\n\tjobTitle => null, // Job title (type: string, nullable)\n\tlastName => null, // Account last name (type: string, nullable)\n\tlicense => null, // Exchange license (type: email.exchange.OvhLicenceEnum)\n\tlitigation => null, // Litigation status (type: boolean, nullable)\n\tlitigationPeriod => null, // Litigation length in days, 0 means unlimited (type: long, nullable)\n\tlogin => null, // Account login (type: string)\n\tmailSenderDisplay => null, // Email display as sender (type: string, nullable)\n\tmailingFilter => null, // Enable mailing filtrering (type: email.exchange.MailingFilterEnum[], nullable)\n\tmobile => null, // Mobile phone number (type: phoneNumber, nullable)\n\toffice => null, // office (type: string, nullable)\n\toutlookLicense => null, // Buy outlook license (type: boolean, nullable)\n\tpassword => null, // Account password (type: password)\n\tphone => null, // Phone Number (type: phoneNumber, nullable)\n\tpostalCode => null, // Postal code (type: string, nullable)\n\tquota => null, // Quota specified in GB. Check pricing table before use (type: long, nullable)\n\tregion => null, // Region (type: string, nullable)\n\tsbrDestination => null, // Sender base routing destination domain (type: string, nullable)\n\tsendConnectorId => null, // Send connector id used to send mails when SBR is defined (type: long, nullable)\n\tspamAndVirusConfiguration => null, // Antispam and Antivirus configuration (type: email.exchange.spamAndVirusConfiguration, nullable)\n\tstoreCopyOfEmail => null, // Store copy of email when forward is enable (type: boolean, nullable)\n\tstreetAddress => null, // Street address (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/create","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}":{"delete":{"summary":"Delete an email account","description":"Delete an email account. Deletes the email account and returns the task. On Hosted Exchange, the account is reset instead: its content is deleted and it becomes an unconfigured slot in `configureme.me` that keeps its subscription.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@30"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@40"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@40"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/delete","required":true}]},"get":{"summary":"Get an email account","description":"Get an email account. Returns the login, names, license, quota, usage, state, spam settings, forwarding, litigation hold and contact details of the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Account"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@20"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@20"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@20"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/get","required":true}]},"put":{"summary":"Update an email account","description":"Update an email account. Updates the names, license, quota, renewal, forwarding, litigation hold, spam settings, authentication policy and contact details of the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Account"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@40"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@50"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@50"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: email.exchange.Account\nresult = client.put(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}\",\n\taccountLicense = None, # Exchange account type (type: email.exchange.OvhLicenceEnum)\n\tauthenticationPolicyId = None, # ID of the authentication policy to apply on this account (type: integer, nullable)\n\tcity = None, # city (type: string, nullable)\n\tcompany = None, # Company name (type: string, nullable)\n\tcountryCode = None, # Country code (type: email.exchange.CountryCodeEnum, nullable)\n\tdeleteAtExpiration = None, # delete at expiration (type: boolean, nullable)\n\tdeleteOutlookAtExpiration = None, # delete outlook at expiration (type: boolean, nullable)\n\tdescription = None, # Description (type: string, nullable)\n\tdisplayName = None, # Account display name (type: string, nullable)\n\tdomain = None, # Email domain (type: string)\n\tfax = None, # Fax number (type: phoneNumber, nullable)\n\tfirstName = None, # Account first name (type: string, nullable)\n\tforwardingEmail = None, # Email address to forward email (type: string, nullable)\n\thiddenFromGAL = None, # Hide account in Global Address List (type: boolean)\n\tinitial = None, # Account initials (type: string, nullable)\n\tjobDepartment = None, # Job Department (type: string, nullable)\n\tjobTitle = None, # Job title (type: string, nullable)\n\tlastName = None, # Account last name (type: string, nullable)\n\tlitigation = None, # Litigation hold feature enabled on this mailbox (type: boolean)\n\tlitigationPeriod = None, # Litigation hold period in days (0 means unlimited). This setting covers all items in the mailbox. (type: integer, nullable)\n\tlogin = None, # Account login (type: string)\n\tmailSenderDisplay = None, # Email display as sender (type: string, nullable)\n\tmailingFilter = None, # Enable or disable anti-virus and anti-spam (type: array, nullable)\n\tmobile = None, # Mobile phone (type: phoneNumber, nullable)\n\toffice = None, # Job office (type: string, nullable)\n\toutlookLicense = None, # Outlook licence (type: boolean)\n\tphone = None, # Phone number (type: phoneNumber, nullable)\n\tpostalCode = None, # Postal code (type: string, nullable)\n\tquota = None, # Account maximum size (type: integer)\n\tregion = None, # region (type: string, nullable)\n\trenewOutlookPeriod = None, # change the renew period for outlook (type: email.exchange.renewPeriodEnum, nullable)\n\trenewPeriod = None, # change the renew period (type: email.exchange.renewPeriodEnum, nullable)\n\tsbrDestination = None, # Relay domain address that will be used to all e-mails send from this account (type: string, nullable)\n\tsendConnectorId = None, # Custom sendConnectorId used to send mails when SBR is configured (type: integer, nullable)\n\tspamAndVirusConfiguration = None, # Spam and Antivirus configuration (type: email.exchange.spamAndVirusConfiguration)\n\tstoreCopyOfEmail = None, # Store copy of email when forward is enable (type: boolean)\n\tstreetAddress = None, # Street address (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: email.exchange.Account\n$result = $ovh->put(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}\", array(\n\taccountLicense => null, // Exchange account type (type: email.exchange.OvhLicenceEnum)\n\tauthenticationPolicyId => null, // ID of the authentication policy to apply on this account (type: integer, nullable)\n\tcity => null, // city (type: string, nullable)\n\tcompany => null, // Company name (type: string, nullable)\n\tcountryCode => null, // Country code (type: email.exchange.CountryCodeEnum, nullable)\n\tdeleteAtExpiration => null, // delete at expiration (type: boolean, nullable)\n\tdeleteOutlookAtExpiration => null, // delete outlook at expiration (type: boolean, nullable)\n\tdescription => null, // Description (type: string, nullable)\n\tdisplayName => null, // Account display name (type: string, nullable)\n\tdomain => null, // Email domain (type: string)\n\tfax => null, // Fax number (type: phoneNumber, nullable)\n\tfirstName => null, // Account first name (type: string, nullable)\n\tforwardingEmail => null, // Email address to forward email (type: string, nullable)\n\thiddenFromGAL => null, // Hide account in Global Address List (type: boolean)\n\tinitial => null, // Account initials (type: string, nullable)\n\tjobDepartment => null, // Job Department (type: string, nullable)\n\tjobTitle => null, // Job title (type: string, nullable)\n\tlastName => null, // Account last name (type: string, nullable)\n\tlitigation => null, // Litigation hold feature enabled on this mailbox (type: boolean)\n\tlitigationPeriod => null, // Litigation hold period in days (0 means unlimited). This setting covers all items in the mailbox. (type: integer, nullable)\n\tlogin => null, // Account login (type: string)\n\tmailSenderDisplay => null, // Email display as sender (type: string, nullable)\n\tmailingFilter => null, // Enable or disable anti-virus and anti-spam (type: array, nullable)\n\tmobile => null, // Mobile phone (type: phoneNumber, nullable)\n\toffice => null, // Job office (type: string, nullable)\n\toutlookLicense => null, // Outlook licence (type: boolean)\n\tphone => null, // Phone number (type: phoneNumber, nullable)\n\tpostalCode => null, // Postal code (type: string, nullable)\n\tquota => null, // Account maximum size (type: integer)\n\tregion => null, // region (type: string, nullable)\n\trenewOutlookPeriod => null, // change the renew period for outlook (type: email.exchange.renewPeriodEnum, nullable)\n\trenewPeriod => null, // change the renew period (type: email.exchange.renewPeriodEnum, nullable)\n\tsbrDestination => null, // Relay domain address that will be used to all e-mails send from this account (type: string, nullable)\n\tsendConnectorId => null, // Custom sendConnectorId used to send mails when SBR is configured (type: integer, nullable)\n\tspamAndVirusConfiguration => null, // Spam and Antivirus configuration (type: email.exchange.spamAndVirusConfiguration)\n\tstoreCopyOfEmail => null, // Store copy of email when forward is enable (type: boolean)\n\tstreetAddress => null, // Street address (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/edit","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias":{"get":{"summary":"List account aliases","description":"List account aliases. Returns the aliases of the email account: extra addresses that deliver to the same mailbox.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@200"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@210"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@210"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/alias/get","required":true}],"x-expanded-response":"EmailExchangeExchangeAccountAlias"},"post":{"summary":"Create an account alias","description":"Create an account alias. Adds the `alias` address to the email account, so that it receives its emails, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"alias":{"type":"string","description":"Alias"}},"required":["alias"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@220"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@230"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@230"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: string\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias\",\n\talias = None, # Alias (type: string)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: string\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias\", array(\n\talias => null, // Alias (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/alias/create","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias/{alias}":{"delete":{"summary":"Delete an account alias","description":"Delete an account alias. Removes the alias address from the email account, which no longer receives its emails, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"alias","description":"Alias","required":true,"schema":{"type":"string"}},{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@230"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@240"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@240"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias/{alias}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias/{alias}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/alias/delete","required":true}]},"get":{"summary":"Get an account alias","description":"Get an account alias. Returns the alias address, its creation date and the ID of its pending task, if any (`taskPendingId`).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"alias","description":"Alias","required":true,"schema":{"type":"string"}},{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.exchangeAccountAlias"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@210"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@220"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@220"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias/{alias}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/alias/{alias}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/alias/get","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/archive":{"delete":{"summary":"Delete the archive mailbox","description":"Delete the archive mailbox. Deletes the archive mailbox of the email account with the emails archived in it, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@70"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@80"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@80"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/archive\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/archive\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/archive/delete","required":true}]},"get":{"summary":"Get the archive mailbox","description":"Get the archive mailbox. Returns the quota in GB, the usage, the state and the creation date of the archive mailbox.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.exchangeAccountArchive"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@50"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@60"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@60"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/archive\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/archive\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/archive/get","required":true}]},"post":{"summary":"Create an archive mailbox","description":"Create an archive mailbox. Creates the archive mailbox of the email account and returns the task. Without `quota`, the archive gets the quota of the mailbox.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quota":{"type":"integer","description":"Archive mailbox quota (if not provided mailbox quota will be taken)"}}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@60"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@70"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@70"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: long\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/archive\",\n\tquota = None, # Archive mailbox quota (if not provided mailbox quota will be taken) (type: long, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: long\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/archive\", array(\n\tquota => null, // Archive mailbox quota (if not provided mailbox quota will be taken) (type: long, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/archive/create","required":true}]},"put":{"summary":"Update the archive mailbox quota","description":"Update the archive mailbox quota. Sets the maximum size of the archive mailbox of the email account (`quota`, in GB).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.exchangeAccountArchive"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@80"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@90"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@90"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: email.exchange.exchangeAccountArchive\nresult = client.put(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/archive\",\n\tquota = None, # Archive mailbox maximum size in GB (type: integer)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: email.exchange.exchangeAccountArchive\n$result = $ovh->put(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/archive\", array(\n\tquota => null, // Archive mailbox maximum size in GB (type: integer)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/archive/edit","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/changePassword":{"post":{"summary":"Change an email account password","description":"Change an email account password. Changes the password and returns the task. Set `forcePasswordChangeAtNextLogon` to make the user change it at the next logon.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"forcePasswordChangeAtNextLogon":{"type":"boolean","description":"The password will need to be changed at the next time you log on"},"password":{"type":"string","description":"New password","format":"password"}}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@90"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@100"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@100"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/changePassword\",\n\tforcePasswordChangeAtNextLogon = None, # The password will need to be changed at the next time you log on (type: boolean, nullable)\n\tpassword = None, # New password (type: password, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/changePassword\", array(\n\tforcePasswordChangeAtNextLogon => null, // The password will need to be changed at the next time you log on (type: boolean, nullable)\n\tpassword => null, // New password (type: password, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/changePassword","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/export":{"delete":{"summary":"Delete the PST export","description":"Delete the PST export. Deletes the PST file exported from the email account and its download URL, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@120"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@130"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@130"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/export\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/export\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/export/delete","required":true}]},"get":{"summary":"Get the PST export","description":"Get the PST export. Returns the creation date and the completion percentage of the PST export of the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Export"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@100"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@110"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@110"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/export\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/export\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/export/get","required":true}]},"post":{"summary":"Request a PST export","description":"Request a PST export. Starts the export of the email account to a PST file, and returns the task. Follow its progress in `percentComplete`.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@110"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@120"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@120"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/export\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/export\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/export/create","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/exportURL":{"get":{"summary":"Get the PST export URL","description":"Get the PST export URL. Returns the temporary URL to download the PST export of the email account, and its expiration date.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.ExportUrl"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@130"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@140"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@140"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/exportURL\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/exportURL\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/exportURL/get","required":true}]},"post":{"summary":"Generate a PST export URL","description":"Generate a PST export URL. Generates a temporary URL to download the PST export of the email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@140"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@150"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@150"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/exportURL\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/exportURL\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/exportURL/create","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess":{"get":{"summary":"List full access permissions","description":"List full access permissions. Returns the IDs of the accounts that have full access to the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@240"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@250"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@250"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/fullAccess/get","required":true}],"x-expanded-response":"EmailExchangeExchangeAccountFullAccess"},"post":{"summary":"Add a full access permission","description":"Add a full access permission. Gives the account given by `allowedAccountId` full access to the email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allowedAccountId":{"type":"integer","description":"User to give full access"}},"required":["allowedAccountId"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@260"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@270"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@270"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: long\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess\",\n\tallowedAccountId = None, # User to give full access (type: long)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: long\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess\", array(\n\tallowedAccountId => null, // User to give full access (type: long)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/fullAccess/grant","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess/{allowedAccountId}":{"delete":{"summary":"Remove a full access permission","description":"Remove a full access permission. Withdraws the access of the allowed account to the mailbox of this email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Account id to give full access","required":true,"schema":{"type":"integer"}},{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@270"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@280"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@280"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess/{allowedAccountId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/fullAccess/revoke","required":true}]},"get":{"summary":"Get a full access permission","description":"Get a full access permission. Returns the ID of the account allowed to open the mailbox of this email account, and the creation date of the right.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Account id to give full access","required":true,"schema":{"type":"integer"}},{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.exchangeAccountFullAccess"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@250"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@260"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@260"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess/{allowedAccountId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/fullAccess/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/fullAccess/get","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/outlookURL":{"get":{"summary":"Get the Outlook download URL","description":"Get the Outlook download URL. Returns the temporary Outlook download URL, its expiration date and the license serial number.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.OutlookUrl"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@150"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@160"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@160"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/outlookURL\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/outlookURL\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/outlookURL/get","required":true}]},"post":{"summary":"Generate an Outlook download URL","description":"Generate an Outlook download URL. Generates a temporary Outlook download URL for the given `version` and `language`, and returns the task. The email account needs an Outlook license.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"language":{"description":"Language of outlook","$ref":"#/components/schemas/email.exchange.LanguageEnum"},"version":{"description":"Version of outlook","$ref":"#/components/schemas/email.exchange.OutlookVersionEnum"}},"required":["language","version"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@160"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@170"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@170"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/outlookURL\",\n\tlanguage = None, # Language of outlook (type: email.exchange.LanguageEnum)\n\tversion = None, # Version of outlook (type: email.exchange.OutlookVersionEnum)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/outlookURL\", array(\n\tlanguage => null, // Language of outlook (type: email.exchange.LanguageEnum)\n\tversion => null, // Version of outlook (type: email.exchange.OutlookVersionEnum)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/outlookURL/create","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/protocol":{"get":{"summary":"Get the account protocols","description":"Get the account protocols. Returns whether POP, IMAP, webmail and ActiveSync are enabled on the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.exchangeAccountProtocol"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@170"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@180"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@180"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/protocol\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/protocol\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/protocol/get","required":true}]},"put":{"summary":"Update the account protocols","description":"Update the account protocols. Enables or disables POP, IMAP, webmail and ActiveSync on the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.exchangeAccountProtocol"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@180"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@190"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@190"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: email.exchange.exchangeAccountProtocol\nresult = client.put(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/protocol\",\n\tIMAP = None, # IMAP protocol enabled on that mailbox (type: boolean)\n\tPOP = None, # POP protocol enabled on that mailbox (type: boolean)\n\tactiveSync = None, # Mobile access enabled on that mailbox (type: boolean)\n\twebMail = None, # Web mail enabled on that mailbox (type: boolean)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: email.exchange.exchangeAccountProtocol\n$result = $ovh->put(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/protocol\", array(\n\tIMAP => null, // IMAP protocol enabled on that mailbox (type: boolean)\n\tPOP => null, // POP protocol enabled on that mailbox (type: boolean)\n\tactiveSync => null, // Mobile access enabled on that mailbox (type: boolean)\n\twebMail => null, // Web mail enabled on that mailbox (type: boolean)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/protocol/edit","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs":{"get":{"summary":"List send as permissions","description":"List send as permissions. Returns the IDs of the accounts allowed to send emails as the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@280"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@290"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@290"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/sendAs/get","required":true}],"x-expanded-response":"EmailExchangeExchangeAccountSendAs"},"post":{"summary":"Add a send as permission","description":"Add a send as permission. Allows the account given by `allowAccountId` to send emails as the email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allowAccountId":{"type":"integer","description":"Account id to allow to send mails from this mailbox"}},"required":["allowAccountId"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@300"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@310"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@310"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: long\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs\",\n\tallowAccountId = None, # Account id to allow to send mails from this mailbox (type: long)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: long\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs\", array(\n\tallowAccountId => null, // Account id to allow to send mails from this mailbox (type: long)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/sendAs/grant","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs/{allowedAccountId}":{"delete":{"summary":"Remove a send as permission","description":"Remove a send as permission. Withdraws the right of the allowed account to send emails as this email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Account id to give send as","required":true,"schema":{"type":"integer"}},{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@310"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@320"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@320"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs/{allowedAccountId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/sendAs/revoke","required":true}]},"get":{"summary":"Get a send as permission","description":"Get a send as permission. Returns the ID of the account allowed to send emails as this email account, and the creation date of the right.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Account id to give send as","required":true,"schema":{"type":"integer"}},{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.exchangeAccountSendAs"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@290"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@300"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@300"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs/{allowedAccountId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendAs/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/sendAs/get","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo":{"get":{"summary":"List send on behalf permissions","description":"List send on behalf permissions. Returns the IDs of the accounts allowed to send emails on behalf of the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@320"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@330"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@330"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/sendOnBehalfTo/get","required":true}],"x-expanded-response":"EmailExchangeExchangeAccountSendOnBehalfTo"},"post":{"summary":"Add a send on behalf permission","description":"Add a send on behalf permission. Allows the account given by `allowAccountId` to send emails on behalf of the email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allowAccountId":{"type":"integer","description":"Account id to allow to send On Behalf To mails from this mailbox"}},"required":["allowAccountId"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@340"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@350"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@350"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: long\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo\",\n\tallowAccountId = None, # Account id to allow to send On Behalf To mails from this mailbox (type: long)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: long\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo\", array(\n\tallowAccountId => null, // Account id to allow to send On Behalf To mails from this mailbox (type: long)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/sendOnBehalfTo/grant","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo/{allowedAccountId}":{"delete":{"summary":"Remove a send on behalf permission","description":"Remove a send on behalf permission. Withdraws the right of the allowed account to send emails on behalf of this email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Account id to give send on behalf to","required":true,"schema":{"type":"integer"}},{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@350"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@360"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@360"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo/{allowedAccountId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/sendOnBehalfTo/revoke","required":true}]},"get":{"summary":"Get a send on behalf permission","description":"Get a send on behalf permission. Returns the ID of the account allowed to send emails on behalf of this email account, and the creation date of the right.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Account id to give send on behalf to","required":true,"schema":{"type":"integer"}},{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.exchange.exchangeAccountSendOnBehalfTo"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@330"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@340"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@340"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo/{allowedAccountId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/sendOnBehalfTo/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/sendOnBehalfTo/get","required":true}]}},"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/terminate":{"post":{"summary":"Terminate an email account at expiration","description":"Terminate an email account at expiration. Sets the email account to be suspended at its expiration date, and returns a message giving that date. Set `deleteAtExpiration` to false on the account to cancel.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"exchangeService","description":"The internal name of your exchange service","required":true,"schema":{"type":"string"}},{"in":"path","name":"organizationName","description":"The internal name of your exchange organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"primaryEmailAddress","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"string"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@190"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@200"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@200"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/terminate\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/terminate\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailExchange:apiovh:service/account/terminate","required":true}]}},"/msServices/{serviceName}/account":{"get":{"summary":"List Active Directory accounts","description":"List Active Directory accounts. Returns the user principal names of the accounts of the Active Directory service. Filter them by `company`, `id` or `userPrincipalName`.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"company","description":"Filter the value of company property (like)","schema":{"type":"string"}},{"in":"query","name":"id","description":"Filter the value of id property (like)","schema":{"type":"integer"}},{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"query","name":"userPrincipalName","description":"Filter the value of userPrincipalName property (like)","schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@360"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@370"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@370"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/msServices/{serviceName}/account\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/msServices/{serviceName}/account\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/get","required":true}],"x-expanded-response":"MsServicesAccount"}},"/msServices/{serviceName}/account/{userPrincipalName}":{"get":{"summary":"Get an Active Directory account","description":"Get an Active Directory account. Returns the identity, contact details, job information, state and last logon and logoff dates of the account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Account"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@370"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@380"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@380"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/msServices/{serviceName}/account/{userPrincipalName}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/msServices/{serviceName}/account/{userPrincipalName}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/get","required":true}]},"put":{"summary":"Update an Active Directory account","description":"Update an Active Directory account. Updates the user principal name, names, contact details and job information of the account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Account"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@380"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@390"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@390"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: msServices.Account\nresult = client.put(\"/msServices/{serviceName}/account/{userPrincipalName}\",\n\tcity = None, # city (type: string, nullable)\n\tcompany = None, # Company name (type: string, nullable)\n\tcountryCode = None, # Country code (type: email.exchange.CountryCodeEnum, nullable)\n\tdescription = None, # Description (type: string, nullable)\n\tdisplayName = None, # Account display name (type: string, nullable)\n\tentraIdSynced = None, # Is synced to Entra ID (type: boolean, nullable)\n\tfax = None, # Fax number (type: phoneNumber, nullable)\n\tfirstName = None, # Account first name (type: string, nullable)\n\tinitials = None, # Account initials (type: string, nullable)\n\tjobDepartment = None, # Job Department (type: string, nullable)\n\tjobTitle = None, # Job title (type: string, nullable)\n\tlastName = None, # Account last name (type: string, nullable)\n\tmobile = None, # Mobile phone (type: phoneNumber, nullable)\n\toffice = None, # Job office (type: string, nullable)\n\tphone = None, # Phone number (type: phoneNumber, nullable)\n\tpostalCode = None, # Postal code (type: string, nullable)\n\tregion = None, # region (type: string, nullable)\n\tstreetAddress = None, # Street address (type: string, nullable)\n\tuserPrincipalName = None, # User Principal Name (type: string)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: msServices.Account\n$result = $ovh->put(\"/msServices/{serviceName}/account/{userPrincipalName}\", array(\n\tcity => null, // city (type: string, nullable)\n\tcompany => null, // Company name (type: string, nullable)\n\tcountryCode => null, // Country code (type: email.exchange.CountryCodeEnum, nullable)\n\tdescription => null, // Description (type: string, nullable)\n\tdisplayName => null, // Account display name (type: string, nullable)\n\tentraIdSynced => null, // Is synced to Entra ID (type: boolean, nullable)\n\tfax => null, // Fax number (type: phoneNumber, nullable)\n\tfirstName => null, // Account first name (type: string, nullable)\n\tinitials => null, // Account initials (type: string, nullable)\n\tjobDepartment => null, // Job Department (type: string, nullable)\n\tjobTitle => null, // Job title (type: string, nullable)\n\tlastName => null, // Account last name (type: string, nullable)\n\tmobile => null, // Mobile phone (type: phoneNumber, nullable)\n\toffice => null, // Job office (type: string, nullable)\n\tphone => null, // Phone number (type: phoneNumber, nullable)\n\tpostalCode => null, // Postal code (type: string, nullable)\n\tregion => null, // region (type: string, nullable)\n\tstreetAddress => null, // Street address (type: string, nullable)\n\tuserPrincipalName => null, // User Principal Name (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/edit","required":true}]}},"/msServices/{serviceName}/account/{userPrincipalName}/changePassword":{"post":{"summary":"Change the Active Directory password","description":"Change the Active Directory password. Changes the password of the Active Directory account and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"new password","format":"password"}},"required":["password"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@390"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@400"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@400"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: password\nresult = client.post(\"/msServices/{serviceName}/account/{userPrincipalName}/changePassword\",\n\tpassword = None, # new password (type: password)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: password\n$result = $ovh->post(\"/msServices/{serviceName}/account/{userPrincipalName}/changePassword\", array(\n\tpassword => null, // new password (type: password)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/changePassword","required":true}]}},"/msServices/{serviceName}/account/{userPrincipalName}/exchange":{"get":{"summary":"Get an account mailbox","description":"Get an account mailbox. Returns the Exchange mailbox of the Active Directory account: primary address, license, quota, usage, Outlook license, renewal and expiration settings, and spam and antivirus configuration.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.ExchangeInformation"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@400"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@410"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@410"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/msServices/{serviceName}/account/{userPrincipalName}/exchange\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/msServices/{serviceName}/account/{userPrincipalName}/exchange\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/exchange/get","required":true}]},"put":{"summary":"Update an account mailbox","description":"Update an account mailbox. Updates the license, quota, Outlook license, renewal and deletion at expiration settings, litigation hold, Global Address List visibility and spam and antivirus configuration of the mailbox.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.ExchangeInformation"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@410"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@420"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@420"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: msServices.ExchangeInformation\nresult = client.put(\"/msServices/{serviceName}/account/{userPrincipalName}/exchange\",\n\taccountLicense = None, # Exchange account license (type: msServices.ExchangeLicenceEnum)\n\tdeleteAtExpiration = None, # Delete mailbox at expiration date (type: boolean, nullable)\n\tdeleteOutlookAtExpiration = None, # Delete Outlook license at expiration date (type: boolean, nullable)\n\thiddenFromGAL = None, # Visibility in Global Address List (type: boolean)\n\tlitigation = None, # Litigation hold feature enabled on this mailbox (type: boolean)\n\tlitigationPeriod = None, # Litigation hold period in days (0 means unlimited). This setting covers all items in the mailbox. (type: integer, nullable)\n\tmailingFilter = None, # Enable or disable anti-virus and anti-spam (type: array, nullable)\n\toutlookLicense = None, # Outlook licence attached (type: boolean)\n\tquota = None, # Maximum mailbox usage in GB (overall size) (type: integer)\n\trenewOutlookPeriod = None, # Frequency of Outlook license renewals (type: msServices.RenewPeriodEnum, nullable)\n\trenewPeriod = None, # Frequency of mailbox license renewals (type: msServices.RenewPeriodEnum, nullable)\n\tspamAndVirusConfiguration = None, # Spam and Antivirus configuration (type: msServices.SpamAndVirusConfiguration)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: msServices.ExchangeInformation\n$result = $ovh->put(\"/msServices/{serviceName}/account/{userPrincipalName}/exchange\", array(\n\taccountLicense => null, // Exchange account license (type: msServices.ExchangeLicenceEnum)\n\tdeleteAtExpiration => null, // Delete mailbox at expiration date (type: boolean, nullable)\n\tdeleteOutlookAtExpiration => null, // Delete Outlook license at expiration date (type: boolean, nullable)\n\thiddenFromGAL => null, // Visibility in Global Address List (type: boolean)\n\tlitigation => null, // Litigation hold feature enabled on this mailbox (type: boolean)\n\tlitigationPeriod => null, // Litigation hold period in days (0 means unlimited). This setting covers all items in the mailbox. (type: integer, nullable)\n\tmailingFilter => null, // Enable or disable anti-virus and anti-spam (type: array, nullable)\n\toutlookLicense => null, // Outlook licence attached (type: boolean)\n\tquota => null, // Maximum mailbox usage in GB (overall size) (type: integer)\n\trenewOutlookPeriod => null, // Frequency of Outlook license renewals (type: msServices.RenewPeriodEnum, nullable)\n\trenewPeriod => null, // Frequency of mailbox license renewals (type: msServices.RenewPeriodEnum, nullable)\n\tspamAndVirusConfiguration => null, // Spam and Antivirus configuration (type: msServices.SpamAndVirusConfiguration)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/exchange/edit","required":true}]}},"/msServices/{serviceName}/account/{userPrincipalName}/mfa":{"delete":{"summary":"Delete the account MFA","description":"Delete the account MFA. Removes the MFA of the Active Directory account and returns the task. The user signs in with a password only.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@440"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@450"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@450"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/mfa/delete","required":true}]},"get":{"summary":"Get the account MFA","description":"Get the account MFA. Returns whether MFA is activated on the Active Directory account, and its state.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.MfaInformation"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@420"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@430"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@430"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/mfa/get","required":true}]},"post":{"summary":"Create the account MFA","description":"Create the account MFA. Creates MFA for the Active Directory account and returns the task. MFA is enabled by default when created.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@430"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@440"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@440"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/mfa/create","required":true}]}},"/msServices/{serviceName}/account/{userPrincipalName}/mfa/disable":{"post":{"summary":"Disable the account MFA","description":"Disable the account MFA. Disables MFA on the Active Directory account for `period` hours, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"integer","description":"Multi Factor Authentication disable period in hours"}},"required":["period"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@450"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@460"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@460"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: long\nresult = client.post(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa/disable\",\n\tperiod = None, # Multi Factor Authentication disable period in hours (type: long)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: long\n$result = $ovh->post(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa/disable\", array(\n\tperiod => null, // Multi Factor Authentication disable period in hours (type: long)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/mfa/disable","required":true}]}},"/msServices/{serviceName}/account/{userPrincipalName}/mfa/enable":{"post":{"summary":"Enable the account MFA","description":"Enable the account MFA. Enables MFA on the Active Directory account and returns the task. MFA is enabled by default when created.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@460"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@470"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@470"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa/enable\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa/enable\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/mfa/enable","required":true}]}},"/msServices/{serviceName}/account/{userPrincipalName}/mfa/reset":{"post":{"summary":"Reset the account MFA","description":"Reset the account MFA. Resets the MFA of the Active Directory account, so that the user registers again at the next sign-in. Returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}},{"in":"path","name":"userPrincipalName","description":"User Principal Name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@470"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@480"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@480"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa/reset\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/msServices/{serviceName}/account/{userPrincipalName}/mfa/reset\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:account/mfa/reset","required":true}]}},"/msServices/{serviceName}/createMfaOnAllUsers":{"post":{"summary":"Create MFA on all accounts","description":"Create MFA on all accounts. Creates MFA for all the accounts of the Active Directory service and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@480"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@490"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@490"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/msServices/{serviceName}/createMfaOnAllUsers\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/msServices/{serviceName}/createMfaOnAllUsers\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:createMfaOnAllUsers","required":true}]}},"/msServices/{serviceName}/removeMfaOnAllUsers":{"post":{"summary":"Remove MFA from all accounts","description":"Remove MFA from all accounts. Removes MFA from all the accounts of the Active Directory service and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"The internal name of your Active Directory organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/msServices.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Hosted Exchange","Email Accounts@@@490"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Private Exchange","Email Accounts@@@500"],["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Trusted Exchange","Email Accounts@@@500"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/msServices/{serviceName}/removeMfaOnAllUsers\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/msServices/{serviceName}/removeMfaOnAllUsers\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"microsoftServices:apiovh:removeMfaOnAllUsers","required":true}]}}}}
