Forum Discussion
Get entities for a Sentinel Incidient by API
- Jun 01, 2020
currently the only way to achieve this is by:
1. Getting the system alert id by running the relation API call
get:
in my example the system alert id value located here
2. run a POST request on entities API with the system Alert ID based on the first phase
where the expansionId is constant for get all entities
Post
body
{
"expansionId": "98b974fd-cc64-48b8-9bd0-3a209f5b944b",
}This days product team are debating on how to make this process more user friendly with less calls.
happy to share once we will have final decision.
YanivSh Could you possibly share the JSON entity kind names for each of those related entity types?
e.g. I know about `Ip`, `Host`, `Address`, I have not seen incidents yet with the others.
To successfully parse these entity kinds from the JSON API response, I need to know the correct kind string (including capitalization) of each of those
I found the entity kind names in https://github.com/Azure/azure-rest-api-specs/tree/master/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities
Account
AzureResource
CloudApplication
DnsResolution
File
FileHash
Host
Insight
IoTDevice
Ip
MailCluster
MailMessage
Mailbox
Malware
Process
RegistryKey
RegistryValue
SecurityAlert
SecurityGroup
SubmissionMail
Url