Retrieve All Accepted Mail Domains

 

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Retrieves all accepted mail domains.

POST services/builtin/MailboxManagement.svc/domains

POST https://www.contoso.com/services/builtin/MailboxManagement.svc/domains HTTP/1.1  
Content-Type: application/xml  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Length: 0  

On-Premises Exchange Server

HTTP/1.1 200 OK  

<ArrayOfstring  
    xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"  
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <string>contoso.com</string>  
</ArrayOfstring>  

Microsoft Office 365

HTTP/1.1 200 OK  

<ArrayOfstring  
    xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"  
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <string>tt2000.onmicrosoft.com</string>  
</ArrayOfstring>  

Error CodeError Message
400One or more parameters are not valid.
500An internal server error occurred.

Web Service Methods

Community Additions

ADD
Show: