Hi Team,
I was trying to call the getFileInfo api with given sha-256, but it failed. Sometimes it succeeded with sha-256, sometimes failed. I want to check in which case the api is not working with sha256?
sha256 should be working as per doc mentioned(https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/get-file-information?view=o365-worldwide#api-description)-"Retrieves a File by identifier Sha1, or Sha256"
Here are the related records.
https://api-us.securitycenter.microsoft.com/api/files/f06c6e26e97813a4b81834f8c854b48e30ddac488db259c0444a2b8f79e0927c
{
"error": {
"code": "ResourceNotFound",
"message": "File f06c6e26e97813a4b81834f8c854b48e30ddac488db259c0444a2b8f79e0927c was not found.",
"target": "1d162149-ad8e-4a2d-a2c3-cfa8eede0263"
}
}
https://api-us.securitycenter.microsoft.com/api/files/1f9d7236890c3caf210c2b32cb94c6b8064a2df1
{
"@odata.context": "https://api-us.securitycenter.microsoft.com/api/$metadata#Files/$entity",
"sha1": "1f9d7236890c3caf210c2b32cb94c6b8064a2df1",
"sha256": "f06c6e26e97813a4b81834f8c854b48e30ddac488db259c0444a2b8f79e0927c",
"md5": "99d1e01d2ed3463268b727a319aff334",
...
}