【问题标题】:Get domain name of exchange server获取交换服务器的域名
【发布时间】:2018-10-26 14:37:50
【问题描述】:

如何使用 ews api 获取 Exchange server 2013 、 2016 和 office 365 域名?

如果我使用 AutodiscoverService.GetDomainSettings("domainname") 需要域名作为输入。

有没有办法使用ews api获取office 365服务器的域名?

【问题讨论】:

    标签: dns exchangewebservices


    【解决方案1】:

    很遗憾,没有直接使用 EWS 获取域名的功能。它需要您提到的域名。但是,如果可能,您可以尝试使用 Microsoft Graph API 来满足您的需求。使用以下 Graph API。

    https://graph.microsoft.com/v1.0/domains
    

    然后它会返回:

    HTTP/1.1 200 OK
    Content-type: application/json
    Content-length: 192
    
    {
      "authenticationType": "authenticationType-value",
      "availabilityStatus": "availabilityStatus-value",
      "id": "contoso.com",
      "isAdminManaged": true,
      "isDefault": true,
      "isInitial": true,
      "isRoot": true
    }
    

    然后你会看到 ID。

    请参考链接:Get domain

    请看我的以下测试结果:

    【讨论】:

    猜你喜欢
    • 2011-11-04
    • 2010-12-08
    • 2014-04-17
    • 2012-11-26
    • 2011-08-26
    • 1970-01-01
    • 2018-05-08
    • 1970-01-01
    • 2018-08-09
    相关资源
    最近更新 更多