Retrieve All Accepted Mail Domains
Applies To: Windows Server 2012 Essentials
Retrieves all accepted mail domains.
URI Template
POST services/builtin/MailboxManagement.svc/domains
Sample Request
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
Sample Response
On-Premises Exchange Server
HTTP/1.1 200 OK
<ArrayOfstring
xmlns="https://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="https://schemas.microsoft.com/2003/10/Serialization/Arrays"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<string>tt2000.onmicrosoft.com</string>
</ArrayOfstring>
Error Codes
Error Code | Error Message |
---|---|
400 | One or more parameters are not valid. |
500 | An internal server error occurred. |