Microsoft 365 management API, currentStatus returns yesterday “statusTime” field

风格不统一 提交于 2019-12-24 09:18:44

问题


We're working on migrating to Office365/M365 and when we make an API call to the Microsoft Management API for status, the statusTime field is yesterday. Any ideas why?

https://manage.office.com/api/v1.0/(tenant)/ServiceComms/CurrentStatus

Here's a partial json from the Exchange Online status:

        "Status": "ServiceRestored",
        "StatusDisplayName": "Service restored",
        "StatusTime": "2018-10-01T18:49:36.4528522Z",
        "Workload": "Exchange",
        "WorkloadDisplayName": "Exchange Online"

StatusTime is exactly 1 day behind from my current timezone. The time appears to be in UTC but its UTC - 1 day. I'm confused why? I thought it would be current status.

Any ideas?

Thank you.


回答1:


When you call to the Microsoft Management API for status, you will get a real-time view of current and ongoing service incidents and maintenance events.

If you want to display the current time zone, you could try to switch time zones locally.

The Microsoft Management API will not return your current timezone.

For more information, please review the following link: Get Current Status



来源:https://stackoverflow.com/questions/52615528/microsoft-365-management-api-currentstatus-returns-yesterday-statustime-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!