Microsoft Azure Sentinel
Azure Sentinel is a scalable, cloud-native SIEM and SOAR solution that provides intelligent security analytics and threat response across enterprise environments.
Microsoft Sentinel is a cloud-native security information and event management (SIEM) and security orchestration automated response (SOAR) platform from Microsoft, designed to provide intelligent security analytics and threat intelligence across the enterprise. This connector enables Swimlane Turbine users to automate the investigation and management of Sentinel incidents, alerts, entities, comments, bookmarks, analytics rules, and saved searches, as well as run KQL queries and ingest alerts into Turbineβs schema. By integrating Microsoft Sentinel with Swimlane Turbine, security teams can streamline incident response, centralize threat detection, and orchestrate cross-platform workflows without writing code, significantly accelerating detection, triage, and remediation processes.
Prerequisites
To use the Microsoft Azure Sentinel connector, ensure you have the following prerequisites:
- OAuth 2.0 Client Credentials authentication configured for Azure Resource Manager, requiring:
- URL: The base endpoint for your Azure environment (e.g., https://management.azure.com/).
- Client ID: The Application (client) ID from your Microsoft Entra app registration.
- Client Secret: The client secret generated for your app registration.
- Token URL: The OAuth 2.0 token endpoint for your Azure tenant (e.g., https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token).
- Scopes: The required API permissions scope(s), typically including https://management.azure.com/.default.
Token URL
Use the following as the token URL,
- To run the Log Analytics Query action, use https://login.microsoftonline.com/{tenant_id}/oauth2/token.
- For all other actions, use https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token.
Host URL
- To run the Log Analytics Query action, use https://api.loganalytics.azure.com/.
- For all other actions, use https://management.azure.com/.
Action setup
To run the Incident management actions, you need a Resource Group Name, Subscription ID and Workspace Name.
Steps to create the Azure app:
- Go to the App Registration page in the Azure portal.
- Click New Registration.
- Enter a name for your new application and choose Accounts in this organizational directory only, then click Register at the bottom.
- Navigate to the API permissions tab on the left navigation menu.
- Select Add a permission.
- Add the following permissions.
- Microsoft Graph / SecurityEvents.ReadWrite.All
- WindowsDefenderATP / Alert.ReadWrite.All
- Navigate to the Certificates & Secrets tab and select New client secret.
- Fill out the description and expiration, then click the Add button at the bottom.
- The Value of the secret you just created is the Client Secret needed for the Swimlane asset.
- Navigate to the Overview tab on the left menu.
- The Client ID and Tenant ID needed in the asset are shown on this page.
- Go back to the main Azure portal windows, and click on your app overview. Copy the following values.
- Resource Group Name
- Subscription ID
- Workspace Name
- Workspace ID
Capabilities
The Microsoft Azure Sentinel connector provides the following capabilities:
- Create or Update Fusion Alert Rule
- Create or Update Incident
- Create or Update MSSIC(MicrosoftSecurityIncidentCreation) Alert Rule
- Create or Update Saved Searches
- Create or Update Scheduled Alert Rule
- Delete Alert Rules
- Delete Incident
- Delete Incident Comments
- Delete Saved Searches
- Get Alert Entities
- Get Alert Rules by Rule ID
- Get Entity Insights
- Get Incident
- Get Incident Comment
- Get Saved Searches ... and so on
SOC - Sentinel Alert Ingestion to Turbine Schema
Discovers Azure Sentinel incidents in a time window and converts each one to a Turbine Schema alert. lookback_hours, max_alerts, and offset are required, and so are subscriptionId, resourceGroupName, and workspaceName. start_time and end_time are optional and accept ISO-8601, epoch milliseconds, or a lookback such as 4 hours ago. A blank start looks back lookback_hours. The action calls List Incidents with properties/createdTimeUtc ascending. List Incidents has no offset, and $top is at most 1000, so the action requests the oldest prefix and returns that page.
Known Issues
If you get a 403 HTTP error, you have to add that Azure app to the Sentinel workspace and assign the Contributor Role to it.
Notes
Configurations
MS Azure Sentinel Oauth 2.0 Client Credentials
Authenticates to Azure Resource Manager with OAuth 2.0 client credentials (a Microsoft Entra app registration's client ID and secret).
Configuration Parameters
Parameter | Description | Type | Required |
|---|---|---|---|
url | Azure Resource Manager base URL, normally https://management.azure.com/ (use the matching sovereign-cloud URL elsewhere). | string | Required |
token_url | Microsoft Entra ID token endpoint for your tenant: https://login.microsoftonline.com/ ο»Ώ | string | Required |
client_id | Application (client) ID (GUID) of the Microsoft Entra app registration used to call Sentinel. The app needs a Microsoft Sentinel role on the workspace. | string | Required |
client_secret | Client secret value created for the app registration under Certificates & secrets. | string | Required |
scope | OAuth scopes to request, as a list. Use https://management.azure.com/.default for Sentinel management actions. | array | Required |
raise_on_http_error_codes | HTTP status codes that should raise an error and route the playbook to the on-failure path. By default, all responses (including 4xx/5xx) are treated as successful and follow the on-success path. Add specific codes here (e.g. [404, 500]) to explicitly treat them as failures. | array | Optional |
verify_ssl | true to verify the server's TLS certificate (recommended). | boolean | Optional |
http_proxy | Optional proxy URL for outbound requests, for example http://proxy.example.com:8080. | string | Optional |
Actions
Add Comment to Incident
Add a comment to a Microsoft Sentinel incident. Takes the workspace, incident ID, a new comment ID (GUID) and the message; returns the created comment. Same call as update_incident_comment, which also edits existing comments.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}/comments/{{incidentCommentId}}
- Method: PUT
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
path_parameters.incidentCommentId | string | Required | Comment ID (GUID). Supply a new GUID to add a comment; use an existing comment's name from list_incident_comments to edit it. |
properties | object | Optional | Comment fields. message is required. |
properties.message | string | Required | Comment text to post on the incident, for example Isolated host WS-042 and reset the user's password. |
Input Example
{"parameters":{"api-version":"2020-01-01"},"json_body":{"properties":{"message":"Some message"}},"path_parameters":{"subscriptionId":"d0cfe6b2-9ac0-4464-9919-dccaee2e48c0","resourceGroupName":"myRg","workspaceName":"myWorkspace","incidentId":"73e01a99-5cd7-4139-a149-9f2736ff2ab5","incidentCommentId":"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the incident comment. |
name | string | Incident comment ID. Use as incidentCommentId in get_incident_comment, update_incident_comment or delete_incident_comments. |
type | string | Azure resource type, always Microsoft.SecurityInsights/incidents/comments. |
properties | object | Incident comment details. |
properties.message | string | Comment text. |
properties.createdTimeUtc | string | Time the comment was created. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.author | object | User or app that wrote the comment. |
properties.author.objectId | string | Microsoft Entra ID object ID (GUID) of the comment author. |
properties.author.email | string | Email address of the comment author. |
properties.author.userPrincipalName | string | User principal name of the comment author. |
properties.author.name | string | Display name of the comment author. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{"id":"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/provider...","name":"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014","type":"Microsoft.SecurityInsights/incidents/comments","properties":{"message":"Some message","createdTimeUtc":"2019-01-01T13:15:30Z","author":{}}}}
Create or Update MSSIC Alert Rule
Create or update a Microsoft Security incident-creation rule that turns alerts from a Microsoft product (for example Defender for Cloud Apps) into Sentinel incidents. Changes configuration; returns the saved rule.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/alertRules/{{ruleId}}
- Method: PUT
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.ruleId | string | Required | Analytics rule ID. Supply a new GUID to create a rule, or the name of an existing rule from list_alert_rules to update it. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
etag | string | Optional | Optional ETag from the etag output of get_alert_rules_by_rule_id. When set, the update fails if the item changed since you read it; leave empty to overwrite. |
kind | string | Optional | Rule kind; keep the default value for this action. |
properties | object | Optional | Rule settings. displayName, enabled and productFilter are required. |
properties.productFilter | string | Required | Microsoft security product whose alerts become incidents. One of the following values: Azure Active Directory Identity Protection, Azure Advanced Threat Protection, Azure Security Center, Azure Security Center for IoT, Microsoft Cloud App Security. |
properties.displayName | string | Required | Rule name shown in Sentinel, for example Create incidents from Defender for Cloud Apps alerts. |
properties.enabled | boolean | Required | true to run the rule, false to save it disabled. |
properties.alertRuleTemplateName | string | Optional | Name (GUID) of the built-in rule template this rule is created from, for example f71aba3d-28fb-450b-b192-4e76a83015c8 for Advanced Multi-Stage Attack Detection. |
properties.description | string | Optional | Free-text description of what the rule detects. |
properties.displayNamesExcludeFilter | array | Optional | Alerts with these display names do not create incidents. List of names; leave empty to exclude none. |
properties.displayNamesFilter | array | Optional | Only alerts with these display names create incidents. List of names; leave empty for all. |
properties.severitiesFilter | array | Optional | Only alerts with these severities create incidents. List of values from: High, Medium, Low, Informational. |
Input Example
{"parameters":{"api-version":"2024-03-01"},"json_body":{"etag":"\"260097e0-0000-0d00-0000-5d6fa88f0000\"","kind":"MicrosoftSecurityIncidentCreation","properties":{"productFilter":"Microsoft Cloud App Security","displayName":"testing displayname","enabled":true,"alertRuleTemplateName":"template1","description":"description of the rule","displayNamesExcludeFilter":"Advanced Multi-Stage Attack Detection","displayNamesFilter":"Advanced Multi-Stage Attack Detection","severitiesFilter":"High"}}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the analytics rule. Its last path segment is the rule ID. |
name | string | Analytics rule ID. Use as ruleId in get_alert_rules_by_rule_id or delete_alert_rules. |
etag | string | ETag of this analytics rule version. Pass it as etag when updating to avoid overwriting newer changes. |
type | string | Azure resource type, always Microsoft.SecurityInsights/alertRules. |
kind | string | Rule kind. One of the following values: Scheduled, MicrosoftSecurityIncidentCreation, Fusion, MLBehaviorAnalytics, ThreatIntelligence, NRT. |
properties | object | Analytics rule details. |
properties.productFilter | string | Microsoft security product whose alerts become incidents. One of the following values: Azure Active Directory Identity Protection, Azure Advanced Threat Protection, Azure Security Center, Azure Security Center for IoT, Microsoft Cloud App Security. |
properties.severitiesFilter | object | Severities that create incidents; null means all. |
properties.displayNamesFilter | object | Alert display names that create incidents; null means all. |
properties.displayName | string | Rule display name. |
properties.enabled | boolean | true when the rule is enabled. |
properties.description | object | Rule description; may be null. |
properties.alertRuleTemplateName | object | Name (GUID) of the template the rule was created from; null for custom rules. |
properties.lastModifiedUtc | string | Time the rule was last modified. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{"id":"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/provider...","name":"microsoftSecurityIncidentCreationRuleExample","etag":"\"260097e0-0000-0d00-0000-5d6fa88f0000\"","type":"Microsoft.SecurityInsights/alertRules","kind":"MicrosoftSecurityIncidentCreation","properties":{"productFilter":"Microsoft Cloud App Security","severitiesFilter":null,"displayNamesFilter":null,"displayName":"testing displayname",...
Create or Update Fusion Alert Rule
Enable, disable or create the Fusion (multi-stage attack detection) rule in a Sentinel workspace from its built-in template. Changes configuration; returns the saved rule.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/alertRules/{{ruleId}}
- Method: PUT
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.ruleId | string | Required | Analytics rule ID. Supply a new GUID to create a rule, or the name of an existing rule from list_alert_rules to update it. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
kind | string | Optional | Rule kind; keep the default value for this action. |
etag | string | Optional | Optional ETag from the etag output of get_alert_rules_by_rule_id. When set, the update fails if the item changed since you read it; leave empty to overwrite. |
properties | object | Optional | Rule settings. alertRuleTemplateName and enabled are required. |
properties.enabled | boolean | Required | true to run the rule, false to save it disabled. |
properties.alertRuleTemplateName | string | Required | Name (GUID) of the built-in rule template this rule is created from, for example f71aba3d-28fb-450b-b192-4e76a83015c8 for Advanced Multi-Stage Attack Detection. |
Input Example
{"parameters":{"api-version":"2024-03-01"},"json_body":{"kind":"Fusion","etag":"3d00c3ca-0000-0100-0000-5d42d5010000","properties":{"enabled":true,"alertRuleTemplateName":"f71aba3d-28fb-450b-b192-4e76a83015c8"}}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the analytics rule. Its last path segment is the rule ID. |
name | string | Analytics rule ID. Use as ruleId in get_alert_rules_by_rule_id or delete_alert_rules. |
etag | string | ETag of this analytics rule version. Pass it as etag when updating to avoid overwriting newer changes. |
type | string | Azure resource type, always Microsoft.SecurityInsights/alertRules. |
kind | string | Rule kind. One of the following values: Scheduled, MicrosoftSecurityIncidentCreation, Fusion, MLBehaviorAnalytics, ThreatIntelligence, NRT. |
properties | object | Analytics rule details. |
properties.displayName | string | Rule display name. |
properties.description | string | Rule description; may be null. |
properties.alertRuleTemplateName | string | Name (GUID) of the template the rule was created from; null for custom rules. |
properties.tactics | array | MITRE ATT&CK tactics the rule covers, as a list. Values are MITRE ATT&CK tactic names: Reconnaissance, ResourceDevelopment, InitialAccess, Execution, Persistence, PrivilegeEscalation, DefenseEvasion, CredentialAccess, Discovery, LateralMovement, Collection, Exfiltration, CommandAndControl, Impact, PreAttack, ImpairProcessControl, InhibitResponseFunction. |
properties.severity | string | Severity of alerts created by the rule. One of the following values: High, Medium, Low, Informational. |
properties.enabled | boolean | true when the rule is enabled. |
properties.lastModifiedUtc | string | Time the rule was last modified. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{"id":"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/provider...","name":"myFirstFusionRule","etag":"\"260090e2-0000-0d00-0000-5d6fb8670000\"","type":"Microsoft.SecurityInsights/alertRules","kind":"Fusion","properties":{"displayName":"Advanced Multi-Stage Attack Detection","description":"In this mode, Sentinel combines low fidelity alerts, which themselves may not be...","alertRuleTemplateName":"f71aba3d...
Create or Update Incident
Create a Microsoft Sentinel incident or update an existing one (title, severity, status, owner, labels, classification). Use it to assign, re-prioritise or close incidents. Returns the saved incident.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}
- Method: PUT
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID (GUID). To update, use the name of an existing incident from list_incidents; to create a new incident, supply a new GUID such as 73e01a99-5cd7-4139-a149-9f2736ff2ab5. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
etag | string | Optional | Optional ETag from the etag output of get_incident. When set, the update fails if the item changed since you read it; leave empty to overwrite. |
properties | object | Optional | Incident fields to set. title, severity and status are required. |
properties.lastActivityTimeUtc | string | Optional | Time of the last activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.firstActivityTimeUtc | string | Optional | Time of the first activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.description | string | Optional | Free-text incident description, for example what was observed and why it matters. |
properties.title | string | Required | Incident title shown in the Sentinel queue, for example Suspicious sign-ins from TOR exit node. |
properties.owner | object | Optional | User or group the incident is assigned to. Set objectId (preferred) or userPrincipalName; leave empty to leave unassigned. |
properties.owner.assignedTo | string | Optional | Display name of the assignee, for example John Doe. |
properties.owner.email | string | Optional | Email address of the assignee, for example [email protected]. |
properties.owner.objectId | string | Optional | Microsoft Entra ID object ID (GUID) of the assignee. |
properties.owner.ownerType | string | Optional | Type of the assignee. One of the following values: Unknown, User, Group. |
properties.owner.userPrincipalName | string | Optional | User principal name of the assignee, for example [email protected]. |
properties.severity | string | Required | Incident severity. One of the following values: High, Medium, Low, Informational. |
properties.classification | string | Optional | Closing classification; required when status is Closed. One of the following values: Undetermined, TruePositive, BenignPositive, FalsePositive. |
properties.classificationComment | string | Optional | Free-text note explaining why the incident was closed, for example Confirmed admin activity. |
properties.classificationReason | string | Optional | Reason for the closing classification. One of the following values: SuspiciousActivity, SuspiciousButExpected, IncorrectAlertLogic, InaccurateData. |
properties.status | string | Required | Incident status. One of the following values: New, Active, Closed. Set Closed together with classification to close an incident. |
properties.labels | array | Optional | Labels (tags) on the incident, as a list of objects with labelName and labelType. |
properties.labels.labelName | string | Optional | Label text, for example phishing. |
properties.labels.labelType | string | Optional | Label origin. One of the following values: User, AutoAssigned. Use User for labels you add. |
Input Example
{"path_parameters":{"subscriptionId":"string","resourceGroupName":"Example Name","workspaceName":"Example Name","incidentId":"string"},"parameters":{"api-version":"string"},"etag":"string","properties":{"lastActivityTimeUtc":"string","firstActivityTimeUtc":"string","description":"string","title":"string","owner":{"assignedTo":"string","email":"[email protected]","objectId":"string","ownerType":"string","userPrincipalName":"Example Name"},"severity":"string","classification":"string","classificationComment":"string","classificationReason":"string","status":"active","labels":[{"labelName":"Example Name","labelType":"string"}]}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the incident. |
name | string | Incident ID. Use as incidentId in get_incident, list_incident_alerts, list_incident_entities, add_comment_to_incident and delete_incident. |
type | string | Azure resource type, always Microsoft.SecurityInsights/incidents. |
etag | string | ETag of this incident version. Pass it as etag when updating to avoid overwriting newer changes. |
properties | object | Incident details. |
properties.lastModifiedTimeUtc | string | Time the incident was last updated. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.createdTimeUtc | string | Time the incident was created. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.lastActivityTimeUtc | string | Time of the last activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.firstActivityTimeUtc | string | Time of the first activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.description | string | Incident description text. |
properties.title | string | Incident title. |
properties.owner | object | User or group the incident is assigned to. Empty fields mean unassigned. |
properties.owner.objectId | string | Microsoft Entra ID object ID (GUID) of the assignee; null when unassigned. |
properties.owner.email | string | Email address of the assignee; null when unassigned. |
properties.owner.userPrincipalName | string | User principal name of the assignee; null when unassigned. |
properties.owner.assignedTo | string | Display name of the assignee; null when unassigned. |
properties.owner.ownerType | string | Type of the assignee. One of the following values: Unknown, User, Group. |
properties.severity | string | Incident severity. One of the following values: High, Medium, Low, Informational. |
properties.classification | string | Closing classification, set when the incident is closed. One of the following values: Undetermined, TruePositive, BenignPositive, FalsePositive. |
properties.classificationComment | string | Analyst note explaining why the incident was closed. |
properties.classificationReason | string | Reason for the closing classification. One of the following values: SuspiciousActivity, SuspiciousButExpected, IncorrectAlertLogic, InaccurateData. |
properties.status | string | Incident status. One of the following values: New, Active, Closed. |
properties.incidentUrl | string | Deep link to the incident in the Azure portal. |
Output Example
{"status_code":201,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Content-Length":"1480","Content-Type":"application/json; charset=utf-8","Expires":"-1","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-resource-requests":"499","x-ms-request-id":"02b3f250-c3ec-47bc-9bf6-13c2233ea13d","x-ms-correlation-request-id":"02b3f250-c3ec-47bc-9bf6-13c2233ea13d","x-ms-routing-request-id":"SOUTHINDIA:20230729T120425Z:02b3f250-c3ec-47bc-9bf6-13c2233ea13d","Strict-Transport-Securi...
Create Or Update Saved Searches
Create or update a saved KQL search (or function) in the Log Analytics workspace behind Sentinel. Changes configuration; returns the saved search.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourcegroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/savedSearches/{{savedSearchId}}
- Method: PUT
Input
Argument Name | Type | Required | Description | ||
|---|---|---|---|---|---|
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. | ||
path_parameters.savedSearchId | string | Required | Saved search ID. Supply a new unique ID to create a saved search, or the name of an existing one from list_by_workspace_saved_searches to update it. | ||
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. | ||
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. | ||
parameters.api-version | string | Required | Log Analytics REST API version in YYYY-MM-DD form, for example 2020-08-01. | ||
etag | string | Optional | ETag of the saved search. Use * to overwrite unconditionally, or the current etag from get_saved_searches; leave empty when creating. | ||
properties | object | Optional | Saved search settings. category, displayName and query are required. | ||
properties.category | string | Required | Category the saved search is filed under, for example Threat Hunting. | ||
properties.displayName | string | Required | Saved search name shown in Log Analytics, for example Failed sign-ins by IP. | ||
properties.functionAlias | string | Optional | Alias to call the query as a KQL function, for example failed_signins. Leave empty if the search is not a function. | ||
properties.functionParameters | string | Optional | Function parameters when the search is a function, in name:type=default form, for example a:int=1. | ||
properties.query | string | Required | KQL query text, for example SigninLogs | where ResultType != 0 | summarize count() by IPAddress. |
properties.tags | array | Optional | Tags on the saved search, as a list of name/value pairs. | ||
properties.tags.name | string | Optional | Tag name, for example Group. | ||
properties.tags.value | string | Optional | Tag value, for example Computer. | ||
properties.version | number | Optional | Query language version. Use 2 (the default). |
Input Example
{"parameters":{"api-version":"2020-08-01"},"json_body":{"etag":"","properties":{"category":"Saved Search Test Category","displayName":"Create or Update Saved Search Test","functionAlias":"heartbeat_func","functionParameters":"a:int=1","query":"Heartbeat | summarize Count() by Computer | take a","tags":[{"name":"Group","value":"Computer"}],"version":2}},"path_parameters":{"resourceGroupName":"","savedSearchId":"00000000-0000-0000-0000-00000000000","subscriptionId":"Azure subscription 1","workspaceName":""}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the saved search. |
etag | string | ETag of this saved search version. Pass it as etag when updating to avoid overwriting newer changes. |
properties | object | Saved search details. |
properties.category | string | Category the saved search is filed under, for example Threat Hunting. |
properties.displayName | string | Saved search name shown in Log Analytics, for example Failed sign-ins by IP. |
properties.query | string | KQL query text. |
properties.version | number | Query language version. Use 2 (the default). |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","x-ms-ratelimit-remaining-subscription-writes":"1199","Request-Context":"appId=cid-v1:e6336c63-aab2-45f0-996a-e5dbab2a1508","X-Content-Type-Options":"nosniff","Strict-Transport-Security":"max-age=31536000; includeSubDomains","Access-Control-Allow-Origin":"*","X-Powered...
Create or Update Scheduled Alert Rule
Create or update a scheduled analytics rule that runs a KQL query on a schedule and raises Sentinel alerts and incidents. Changes detection configuration; returns the saved rule.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/alertRules/{{ruleId}}
- Method: PUT
Input
Argument Name | Type | Required | Description | ||
|---|---|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. | ||
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. | ||
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. | ||
path_parameters.ruleId | string | Required | Analytics rule ID. Supply a new GUID to create a rule, or the name of an existing rule from list_alert_rules to update it. | ||
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. | ||
kind | string | Optional | Rule kind; keep the default value for this action. | ||
etag | string | Optional | Optional ETag from the etag output of get_alert_rules_by_rule_id. When set, the update fails if the item changed since you read it; leave empty to overwrite. | ||
properties | object | Optional | Rule settings. displayName, enabled, query, queryFrequency, queryPeriod, severity, suppressionDuration, suppressionEnabled, triggerOperator and triggerThreshold are required. | ||
properties.alertRuleTemplateName | string | Optional | Name (GUID) of the built-in rule template this rule is created from, for example f71aba3d-28fb-450b-b192-4e76a83015c8 for Advanced Multi-Stage Attack Detection. | ||
properties.displayName | string | Required | Rule name shown in Sentinel and on the alerts it creates, for example Brute force against Azure Portal. | ||
properties.description | string | Optional | Free-text description of what the rule detects. | ||
properties.severity | string | Required | Severity of alerts created by the rule. One of the following values: High, Medium, Low, Informational. | ||
properties.enabled | boolean | Required | true to run the rule, false to save it disabled. | ||
properties.tactics | array | Optional | MITRE ATT&CK tactics the rule covers, as a list. Values are MITRE ATT&CK tactic names: Reconnaissance, ResourceDevelopment, InitialAccess, Execution, Persistence, PrivilegeEscalation, DefenseEvasion, CredentialAccess, Discovery, LateralMovement, Collection, Exfiltration, CommandAndControl, Impact, PreAttack, ImpairProcessControl, InhibitResponseFunction. | ||
properties.techniques | array | Optional | MITRE ATT&CK technique IDs the rule covers, as a list, for example ["T1110", "T1078"]. | ||
properties.templateVersion | string | Optional | Version of the rule template used, in a.b.c form, for example 1.0.2. | ||
properties.query | string | Required | KQL query that detects the activity, for example SigninLogs | where ResultType == 50126 | summarize count() by IPAddress. |
properties.queryFrequency | string | Required | How often the rule runs, as an ISO 8601 duration, for example PT1H (every hour). Minimum PT5M. | ||
properties.queryPeriod | string | Required | Look-back window each run queries, as an ISO 8601 duration, for example P1D. Must be at least queryFrequency. | ||
properties.triggerOperator | string | Required | Comparison applied to the result count. One of the following values: GreaterThan, LessThan, Equal, NotEqual. | ||
properties.triggerThreshold | number | Required | Result-count threshold compared with triggerOperator, for example 0 (alert when any row is returned). | ||
properties.suppressionDuration | string | Required | How long to suppress repeat alerts after the rule fires, as an ISO 8601 duration, for example PT1H. Used only when suppressionEnabled is true. | ||
properties.suppressionEnabled | boolean | Required | true to suppress repeat alerts for suppressionDuration after the rule fires. | ||
properties.eventGroupingSettings | object | Optional | How query results are turned into alerts. | ||
properties.eventGroupingSettings.aggregationKind | string | Optional | Alert grouping. One of the following values: SingleAlert (one alert for all results), AlertPerResult (one alert per result row). |
Input Example
{"parameters":{"api-version":"2024-03-01"},"json_body":{"kind":"Scheduled","etag":"\"0300bf09-0000-0000-0000-5c37296e0000\"","properties":{"alertRuleTemplateName":"","displayName":"My scheduled rule","description":"An example for a scheduled rule","severity":"High","enabled":true,"tactics":["Persistence","LateralMovement"],"techniques":["T1110"],"templateVersion":"","query":"Heartbeat","queryFrequency":"PT1H","queryPeriod":"P2DT1H30M","triggerOperator":"GreaterThan","triggerThreshold":0,"suppressionDuration":"PT1H","suppressionEnabled":false,"eventGroupingSettings":{"aggregationKind":"AlertPerResult"},"customDetails":{"OperatingSystemName":"OSName","OperatingSystemType":"OSType"},"entityMappings":[{"entityType":"Host","fieldMappings":[{"identifier":"FullName","columnName":"Computer"}]}],"alertDetailsOverride":{"alertDisplayNameFormat":"Alert from {{Computer}}","alertDescriptionFormat":"Suspicious activity was made by {{ComputerIP}}","alertDynamicProperties":[{"alertProperty":"ProductComponentName","value":"ProductComponentNameCustomColumn"}]},"incidentConfiguration":{"createIncident":true,"groupingConfiguration":{"enabled":true,"reopenClosedIncident":false,"lookbackDuration":"PT5H","matchingMethod":"Selected","groupByEntities":["Host"],"groupByAlertDetails":["DisplayName"],"groupByCustomDetails":["OperatingSystemType","OperatingSystemName"]}}}}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the analytics rule. Its last path segment is the rule ID. |
name | string | Analytics rule ID. Use as ruleId in get_alert_rules_by_rule_id or delete_alert_rules. |
type | string | Azure resource type, always Microsoft.SecurityInsights/alertRules. |
kind | string | Rule kind. One of the following values: Scheduled, MicrosoftSecurityIncidentCreation, Fusion, MLBehaviorAnalytics, ThreatIntelligence, NRT. |
etag | string | ETag of this analytics rule version. Pass it as etag when updating to avoid overwriting newer changes. |
properties | object | Analytics rule details. |
properties.alertRuleTemplateName | object | Name (GUID) of the template the rule was created from; null for custom rules. |
properties.displayName | string | Rule display name. |
properties.description | string | Rule description; may be null. |
properties.severity | string | Severity of alerts created by the rule. One of the following values: High, Medium, Low, Informational. |
properties.enabled | boolean | true when the rule is enabled. |
properties.tactics | array | MITRE ATT&CK tactics the rule covers, as a list. Values are MITRE ATT&CK tactic names: Reconnaissance, ResourceDevelopment, InitialAccess, Execution, Persistence, PrivilegeEscalation, DefenseEvasion, CredentialAccess, Discovery, LateralMovement, Collection, Exfiltration, CommandAndControl, Impact, PreAttack, ImpairProcessControl, InhibitResponseFunction. |
properties.query | string | KQL query the rule runs. |
properties.queryFrequency | string | How often the rule runs, as an ISO 8601 duration, for example PT1H (every hour). Minimum PT5M. |
properties.queryPeriod | string | Look-back window each run queries, as an ISO 8601 duration, for example P1D. Must be at least queryFrequency. |
properties.triggerOperator | string | Comparison applied to the result count. One of the following values: GreaterThan, LessThan, Equal, NotEqual. |
properties.triggerThreshold | number | Result-count threshold compared with triggerOperator, for example 0 (alert when any row is returned). |
properties.suppressionDuration | string | How long to suppress repeat alerts after the rule fires, as an ISO 8601 duration, for example PT1H. Used only when suppressionEnabled is true. |
properties.suppressionEnabled | boolean | true to suppress repeat alerts for suppressionDuration after the rule fires. |
properties.lastModifiedUtc | string | Time the rule was last modified. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.eventGroupingSettings | object | How query results are turned into alerts. |
properties.eventGroupingSettings.aggregationKind | string | Alert grouping. One of the following values: SingleAlert (one alert for all results), AlertPerResult (one alert per result row). |
properties.customDetails | object | Map of alert property name to query column name, for example {"OperatingSystemName": "OSName"}, surfaced on each alert. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{"id":"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/provider...","name":"73e01a99-5cd7-4139-a149-9f2736ff2ab5","type":"Microsoft.SecurityInsights/alertRules","kind":"Scheduled","etag":"\"0300bf09-0000-0000-0000-5c37296e0000\"","properties":{"alertRuleTemplateName":null,"displayName":"My scheduled rule","description":"An example for a scheduled rule","severity":"High","enabled":true,"tactics":[],"query":...
Delete Alert Rules
Permanently delete one analytics rule from a Sentinel workspace by rule ID. Irreversible; returns no body on success.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/alertRules/{{ruleId}}
- Method: DELETE
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.ruleId | string | Required | Analytics rule ID: the name field of a rule returned by list_alert_rules, for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
Input Example
{"parameters":{"api-version":"2024-03-01"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{}}
Delete Incident
Permanently delete one Microsoft Sentinel incident by incident ID. Irreversible; to close an incident instead, use create_or_update_incident with status Closed.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}
- Method: DELETE
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
Input Example
{"path_parameters":{"subscriptionId":"string","resourceGroupName":"Example Name","workspaceName":"Example Name","incidentId":"string"},"parameters":{"api-version":"string"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-deletes":"14999","x-ms-request-id":"a1c0a95a-ab5c-40ac-819e-fa5d49e3c2db","x-ms-correlation-request-id":"a1c0a95a-ab5c-40ac-819e-fa5d49e3c2db","x-ms-routing-request-id":"SOUTHINDIA:20230729T121753Z:a1c0a95a-ab5c...
Delete Incident Comments
Delete one comment from a Microsoft Sentinel incident by incident ID and comment ID. Irreversible; returns no body on success.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}/comments/{{incidentCommentId}}
- Method: DELETE
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.incidentCommentId | string | Required | Comment ID (GUID): the name field of a comment returned by list_incident_comments, for example 4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014. |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
Input Example
{"parameters":{"api-version":"2023-02-01"},"path_parameters":{"incidentCommentId":"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014","subscriptionId":"d0cfe6b2-9ac0-4464-9919-dccaee2e48c0","resourceGroupName":"myRg","workspaceName":"myWorkspace","incidentId":"73e01a99-5cd7-4139-a149-9f2736ff2ab5"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{}}
Delete Saved Searches
Permanently delete one saved search from the Log Analytics workspace behind Sentinel by saved search ID. Returns no body on success.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourcegroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/savedSearches/{{savedSearchId}}
- Method: DELETE
Input
Argument Name | Type | Required | Description | |
|---|---|---|---|---|
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. | |
path_parameters.savedSearchId | string | Required | Saved search ID: the name field from list_by_workspace_saved_searches, for example LogManagement(myWorkspace)_General | StaleComputers or a GUID. |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. | |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. | |
parameters.api-version | string | Required | Log Analytics REST API version in YYYY-MM-DD form, for example 2020-08-01. |
Input Example
{"parameters":{"api-version":"2020-08-01"},"path_parameters":{"resourceGroupName":"myRg","savedSearchId":"00000000-0000-0000-0000-00000000000","subscriptionId":"Azure subscription 1","workspaceName":"myWorkspace"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code. 200 means the saved search was deleted; 404 means it did not exist. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK. |
response_text | string | Raw response body; empty on success. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Expires":"-1","x-ms-ratelimit-remaining-subscription-deletes":"14999","Request-Context":"appId=cid-v1:e6336c63-aab2-45f0-996a-e5dbab2a1508","X-Content-Type-Options":"nosniff","Strict-Transport-Security":"max-age=31536000; includeSubDomains","Access-Control-Allow-Origin":"*","X-Powered-By":"ASP.NET","x-ms-request-id":"1744d53b-b782-4116-9086-1ef0d39b76ba","x-ms-correlation-request-id":"1744d53b-b782-4116-9086-1...
Entities Expand
Find entities related to one Sentinel entity (for example hosts an account signed in to) using an expansion ID and time window. Read-only; returns related entities and links.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/entities/{{entityId}}/expand
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.entityId | string | Required | Entity ID (GUID): the name field of an entity returned by list_incident_entities, for example e1d3d618-e11f-478b-98e3-bb381539a8e1. |
expansionId | string | Optional | ID (GUID) of the expansion to run, which decides what related entities are returned, for example a77992f3-25e9-4d01-99a4-5ff606cc410a. Expansion IDs come from Sentinel's entity query templates. |
startTime | string | Optional | Only return expansion results after this time. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
endTime | string | Optional | Only return expansion results before this time. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
Input Example
{"parameters":{"api-version":"2024-03-01"},"json_body":{"expansionId":"a77992f3-25e9-4d01-99a4-5ff606cc410a","startTime":"2019-04-25T00:00:00.000Z","endTime":"2019-05-26T00:00:00.000Z"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
value | object | Expansion result: related entities and the links between them. |
value.entities | array | Entities found, one element per entity (account, host, IP, file and so on). |
value.entities.id | string | Full Azure resource ID of the entity. |
value.entities.name | string | Entity ID. Use as entityId in entities_expand or get_entity_insights. |
value.entities.type | string | Azure resource type, always Microsoft.SecurityInsights/Entities. |
value.entities.kind | string | Entity kind. One of the following values: Account, AzureResource, Bookmark, CloudApplication, DnsResolution, File, FileHash, Host, IoTDevice, Ip, MailCluster, MailMessage, Mailbox, Malware, Nic, Process, RegistryKey, RegistryValue, SecurityAlert, SecurityGroup, SubmissionMail, Url. |
value.entities.properties | object | Entity details. |
value.entities.properties.address | string | IP address, for example 13.89.108.248. Present on Ip entities. |
value.entities.properties.friendlyName | string | Human-readable entity name, for example a user name or IP address. |
value.edges | array | Links from the expanded entity to related entities. |
value.edges.targetEntityId | string | Full resource ID of the related entity; its last path segment is the entity ID. |
value.edges.additionalData | object | Extra link properties, such as when the relationship was first seen. |
value.edges.additionalData.EpochTimestamp | string | Unix timestamp in seconds of the relationship, as a string. |
value.edges.additionalData.FirstSeen | string | Time the relationship was first seen. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.edges.additionalData.Source | string | Data table the relationship came from, for example Heartbeat. |
metaData | object | Summary of the expansion results. |
metaData.aggregations | array | Count of related entities per kind. |
metaData.aggregations.entityKind | string | Entity kind counted, for example Account, Host or Ip. |
metaData.aggregations.count | number | Number of entities of this kind. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{"value":{"entities":[],"edges":[]},"metaData":{"aggregations":[]}}}
Get Alert Rules by Rule ID
Get one Sentinel analytics rule by rule ID, including its kind, query, schedule, severity and enabled state. Read-only.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/alertRules/{{ruleId}}
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.ruleId | string | Required | Analytics rule ID: the name field of a rule returned by list_alert_rules, for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
Input Example
{"parameters":{"api-version":"2024-03-01"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the analytics rule. Its last path segment is the rule ID. |
name | string | Analytics rule ID. Use as ruleId in get_alert_rules_by_rule_id or delete_alert_rules. |
etag | string | ETag of this analytics rule version. Pass it as etag when updating to avoid overwriting newer changes. |
type | string | Azure resource type, always Microsoft.SecurityInsights/alertRules. |
kind | string | Rule kind. One of the following values: Scheduled, MicrosoftSecurityIncidentCreation, Fusion, MLBehaviorAnalytics, ThreatIntelligence, NRT. |
properties | object | Analytics rule details. |
properties.displayName | string | Rule display name. |
properties.description | string | Rule description; may be null. |
properties.alertRuleTemplateName | string | Name (GUID) of the template the rule was created from; null for custom rules. |
properties.tactics | array | MITRE ATT&CK tactics the rule covers, as a list. Values are MITRE ATT&CK tactic names: Reconnaissance, ResourceDevelopment, InitialAccess, Execution, Persistence, PrivilegeEscalation, DefenseEvasion, CredentialAccess, Discovery, LateralMovement, Collection, Exfiltration, CommandAndControl, Impact, PreAttack, ImpairProcessControl, InhibitResponseFunction. |
properties.severity | string | Severity of alerts created by the rule. One of the following values: High, Medium, Low, Informational. |
properties.enabled | boolean | true when the rule is enabled. |
properties.lastModifiedUtc | string | Time the rule was last modified. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{"id":"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/provider...","name":"myFirstFusionRule","etag":"\"260090e2-0000-0d00-0000-5d6fb8670000\"","type":"Microsoft.SecurityInsights/alertRules","kind":"Fusion","properties":{"displayName":"Advanced Multi-Stage Attack Detection","description":"In this mode, Sentinel combines low fidelity alerts, which themselves may not be...","alertRuleTemplateName":"f71aba3d...
Get Entity Insights
Run Sentinel insight queries for one entity (account, host, IP and so on) over a time window. Read-only; returns tables and charts of the entity's activity.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/entities/{{entityId}}/getInsights
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
parameters.api-version | string | Required | Microsoft Sentinel REST API version, for example 2025-04-01-preview (insights need a preview version). |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.entityId | string | Required | Entity ID (GUID): the name field of an entity returned by list_incident_entities, for example e1d3d618-e11f-478b-98e3-bb381539a8e1. |
addDefaultExtendedTimeRange | boolean | Optional | true to widen the window with each insight query's default time range; false to use exactly startTime to endTime. |
startTime | string | Optional | Start of the insight window. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. Required. |
endTime | string | Optional | End of the insight window; must be after startTime. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. Required. |
insightQueryIds | array | Optional | IDs (GUIDs) of specific insight queries to run. Leave empty to run all insights for the entity. |
Input Example
{"parameters":{"api-version":"2025-04-01-preview"},"json_body":{"addDefaultExtendedTimeRange":false,"startTime":"2021-09-01T00:00:00.000Z","endTime":"2021-10-01T00:00:00.000Z","insightQueryIds":["cae8d0aa-aa45-4d53-8d88-17dd64ffd4e4"]},"path_parameters":{"subscriptionId":"d0cfe6b2-9ac0-4464-9919-dccaee2e48c0","resourceGroupName":"myRg","workspaceName":"myWorkspace","entityId":"e1d3d618-e11f-478b-98e3-bb381539a8e1"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
value | array | Insight results, one element per insight query. |
value.tableQueryResults | object | Tabular insight result: column definitions plus rows. |
value.tableQueryResults.columns | array | Column definitions; the n-th column describes the n-th value in each row. |
value.tableQueryResults.columns.name | string | Column name, for example TimeGenerated. |
value.tableQueryResults.columns.type | string | Column data type, for example string, long or datetime. |
value.tableQueryResults.rows | array | Result rows; each row is a list of cell values in column order. |
value.tableQueryResults.rows.0 | string | Cell 0 of the row; its meaning is given by columns[0]. |
value.tableQueryResults.rows.1 | string | Cell 1 of the row; its meaning is given by columns[1]. |
value.tableQueryResults.rows.2 | string | Cell 2 of the row; its meaning is given by columns[2]. |
value.tableQueryResults.rows.3 | string | Cell 3 of the row; its meaning is given by columns[3]. |
value.tableQueryResults.rows.4 | string | Cell 4 of the row; its meaning is given by columns[4]. |
value.chartQueryResults | array | Chart insight results: column definitions plus rows, usually a time series. |
value.chartQueryResults.columns | array | Column definitions; the n-th column describes the n-th value in each row. |
value.chartQueryResults.columns.name | string | Column name, for example TimeGenerated. |
value.chartQueryResults.columns.type | string | Column data type, for example string, long or datetime. |
value.chartQueryResults.rows | array | Result rows; each row is a list of cell values in column order. |
value.chartQueryResults.rows.0 | string | Cell 0 of the row; its meaning is given by columns[0]. |
value.chartQueryResults.rows.1 | string | Cell 1 of the row; its meaning is given by columns[1]. |
value.chartQueryResults.rows.2 | string | Cell 2 of the row; its meaning is given by columns[2]. |
value.queryTimeInterval | object | Time window the insight query actually covered. |
value.queryTimeInterval.startTime | string | Start of the covered window. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.queryTimeInterval.endTime | string | End of the covered window. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.queryId | string | ID (GUID) of the insight query that produced this result. |
metaData | object | Totals and per-query errors for the request. |
Output Example
{"status_code":200,"json_body":{"value":[{}],"metaData":{"totalCount":7,"errors":[]}}}
Get Incident
Get one Microsoft Sentinel incident by incident ID: title, severity, status, owner, classification, timestamps and counts. Read-only.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
Input Example
{"path_parameters":{"subscriptionId":"string","resourceGroupName":"Example Name","workspaceName":"Example Name","incidentId":"string"},"parameters":{"api-version":"string"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the incident. |
name | string | Incident ID. Use as incidentId in get_incident, list_incident_alerts, list_incident_entities, add_comment_to_incident and delete_incident. |
type | string | Azure resource type, always Microsoft.SecurityInsights/incidents. |
etag | string | ETag of this incident version. Pass it as etag when updating to avoid overwriting newer changes. |
properties | object | Incident details. |
properties.lastModifiedTimeUtc | string | Time the incident was last updated. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.createdTimeUtc | string | Time the incident was created. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.lastActivityTimeUtc | string | Time of the last activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.firstActivityTimeUtc | string | Time of the first activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.description | string | Incident description text. |
properties.title | string | Incident title. |
properties.owner | object | User or group the incident is assigned to. Empty fields mean unassigned. |
properties.owner.objectId | string | Microsoft Entra ID object ID (GUID) of the assignee; null when unassigned. |
properties.owner.email | string | Email address of the assignee; null when unassigned. |
properties.owner.userPrincipalName | string | User principal name of the assignee; null when unassigned. |
properties.owner.assignedTo | string | Display name of the assignee; null when unassigned. |
properties.severity | string | Incident severity. One of the following values: High, Medium, Low, Informational. |
properties.classification | string | Closing classification, set when the incident is closed. One of the following values: Undetermined, TruePositive, BenignPositive, FalsePositive. |
properties.classificationComment | string | Analyst note explaining why the incident was closed. |
properties.classificationReason | string | Reason for the closing classification. One of the following values: SuspiciousActivity, SuspiciousButExpected, IncorrectAlertLogic, InaccurateData. |
properties.status | string | Incident status. One of the following values: New, Active, Closed. |
properties.incidentUrl | string | Deep link to the incident in the Azure portal. |
properties.incidentNumber | number | Sequential incident number shown in the portal, for example 3177. Not the incident ID; use name for API calls. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-reads":"11999","x-ms-request-id":"80a0943c-0eaa-4a3d-bac9-1e4e4eae73db","x-ms-correlation-request-id":"80a0943c-0eaa-4a3d-bac9-1e4e4eae73db","x-ms-routing-request-id":"SOUTHINDIA:20230729T122616Z:80a0943c-0eaa-4...
Get Incident Comment
Get one comment on a Microsoft Sentinel incident by incident ID and comment ID. Read-only; returns the message, author and timestamps.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}/comments/{{incidentCommentId}}
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
path_parameters.incidentCommentId | string | Required | Comment ID (GUID): the name field of a comment returned by list_incident_comments, for example 4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
Input Example
{"parameters":{"api-version":"2023-02-01"},"path_parameters":{"subscriptionId":"38d4cde9-8ef2-4c61-bc61-7fa8658ab74b","resourceGroupName":"myRg","workspaceName":"swimlaneazuresentinel","incidentId":"99353b3a-794c-4d8a-ac01-df3f109900ed","incidentCommentId":"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the incident comment. |
name | string | Incident comment ID. Use as incidentCommentId in get_incident_comment, update_incident_comment or delete_incident_comments. |
type | string | Azure resource type, always Microsoft.SecurityInsights/incidents/comments. |
etag | string | ETag of this incident comment version. Pass it as etag when updating to avoid overwriting newer changes. |
properties | object | Incident comment details. |
properties.message | string | Comment text. |
properties.createdTimeUtc | string | Time the comment was created. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.lastModifiedTimeUtc | string | Time the comment was last edited. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.author | object | User or app that wrote the comment. |
properties.author.objectId | string | Microsoft Entra ID object ID (GUID) of the comment author. |
properties.author.email | string | Email address of the comment author. |
properties.author.userPrincipalName | string | User principal name of the comment author. |
properties.author.name | string | Display name of the comment author. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-resource-requests":"499","x-ms-request-id":"aa473e1f-78ce-4466-a0c6-f14359c755a2","x-ms-correlation-request-id":"aa473e1f-78ce-4466-a0c6-f14359c755a2","x-ms-routing-request-id":"CENTRALINDIA:20240118T092209Z:aa4...
Get Saved Searches
Get one saved search from the Log Analytics workspace behind Sentinel by saved search ID. Read-only; returns its name, category and KQL query.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourcegroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/savedSearches/{{savedSearchId}}
- Method: GET
Input
Argument Name | Type | Required | Description | |
|---|---|---|---|---|
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. | |
path_parameters.savedSearchId | string | Required | Saved search ID: the name field from list_by_workspace_saved_searches, for example LogManagement(myWorkspace)_General | StaleComputers or a GUID. |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. | |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. | |
parameters.api-version | string | Required | Log Analytics REST API version in YYYY-MM-DD form, for example 2020-08-01. |
Input Example
{"parameters":{"api-version":"2020-08-01"},"path_parameters":{"resourceGroupName":"","savedSearchId":"00000000-0000-0000-0000-00000000000","subscriptionId":"Azure subscription 1","workspaceName":""}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the saved search. |
etag | string | ETag of this saved search version. Pass it as etag when updating to avoid overwriting newer changes. |
properties | object | Saved search details. |
properties.category | string | Category the saved search is filed under, for example Threat Hunting. |
properties.displayName | string | Saved search name shown in Log Analytics, for example Failed sign-ins by IP. |
properties.functionAlias | string | Alias to call the query as a KQL function, for example failed_signins. Leave empty if the search is not a function. |
properties.functionParameters | string | Function parameters when the search is a function, in name:type=default form, for example a:int=1. |
properties.query | string | KQL query text. |
properties.version | number | Query language version of the saved search, for example 2. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Content-Type":"application/json; charset=utf-8","Expires":"-1","x-ms-failure-cause":"gateway","x-ms-request-id":"54b36bb1-0d41-45b8-a8ba-6f4552f3c8fe","x-ms-correlation-request-id":"54b36bb1-0d41-45b8-a8ba-6f4552f3c8fe","x-ms-routing-request-id":"JIOINDIACENTRAL:20230810T090934Z:54b36bb1-0d41-45b8-a8ba-6f4552f3c8fe","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nos...
List Alert Rules
List all analytics rules in a Sentinel workspace (scheduled, Fusion, Microsoft incident creation and others). Read-only; returns each rule's ID, kind and settings.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/alertRules
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
Input Example
{"parameters":{"api-version":"2024-03-01"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
value | array | Analytics rules in the workspace, one element per rule. |
value.id | string | Full Azure resource ID of the analytics rule. Its last path segment is the rule ID. |
value.name | string | Analytics rule ID. Use as ruleId in get_alert_rules_by_rule_id or delete_alert_rules. |
value.type | string | Azure resource type, always Microsoft.SecurityInsights/alertRules. |
value.kind | string | Rule kind. One of the following values: Scheduled, MicrosoftSecurityIncidentCreation, Fusion, MLBehaviorAnalytics, ThreatIntelligence, NRT. |
value.etag | string | ETag of this analytics rule version. Pass it as etag when updating to avoid overwriting newer changes. |
value.properties | object | Analytics rule details. |
value.properties.displayName | string | Rule display name. |
value.properties.description | string | Rule description; may be null. |
value.properties.alertRuleTemplateName | string | Name (GUID) of the template the rule was created from; null for custom rules. |
value.properties.tactics | array | MITRE ATT&CK tactics the rule covers, as a list. Values are MITRE ATT&CK tactic names: Reconnaissance, ResourceDevelopment, InitialAccess, Execution, Persistence, PrivilegeEscalation, DefenseEvasion, CredentialAccess, Discovery, LateralMovement, Collection, Exfiltration, CommandAndControl, Impact, PreAttack, ImpairProcessControl, InhibitResponseFunction. |
value.properties.severity | string | Severity of alerts created by the rule. One of the following values: High, Medium, Low, Informational. |
value.properties.enabled | boolean | true when the rule is enabled. |
value.properties.lastModifiedUtc | string | Time the rule was last modified. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-store, no-cache","Pragma":"no-cache","Content-Type":"application/json; charset=utf-8","Expires":"-1","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","P3P":"CP=\"DSP CUR OTPi IND OTRi ONL FIN\"","x-ms-request-id":"f04749a8-b1d4-42ed-a64d-7c0cab024e00","x-ms-ests-server":"2.1.18261.3 - EUS ProdSlices","x-ms-srs":"1.P","X-XSS-Protection":"0","Set-Cookie":"fpc=AjlweEqE3N5AsDykcUumbB5D3sW4A...
List By Workspace Saved Searches
List all saved searches in the Log Analytics workspace behind Sentinel. Read-only; returns each search's ID, name, category and KQL query.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourcegroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/savedSearches
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
parameters.api-version | string | Required | Log Analytics REST API version in YYYY-MM-DD form, for example 2020-08-01. |
Input Example
{"parameters":{"api-version":"2020-08-01"},"path_parameters":{"resourceGroupName":"","subscriptionId":"Azure subscription 1","workspaceName":""}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
value | array | Saved searches in the workspace, one element per search. |
value.id | string | Full Azure resource ID of the saved search. |
value.etag | string | ETag of this saved search version. Pass it as etag when updating to avoid overwriting newer changes. |
value.properties | object | Saved search details. |
value.properties.displayName | string | Saved search name shown in Log Analytics, for example Failed sign-ins by IP. |
value.properties.category | string | Category the saved search is filed under, for example Threat Hunting. |
value.properties.query | string | KQL query text. |
value.properties.version | number | Query language version. Use 2 (the default). |
value.name | string | Saved search ID. Use as savedSearchId in get_saved_searches or delete_saved_searches. |
value.type | string | Azure resource type, always Microsoft.OperationalInsights/savedSearches. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","x-ms-ratelimit-remaining-subscription-reads":"11999","Request-Context":"appId=cid-v1:e6336c63-aab2-45f0-996a-e5dbab2a1508","X-Content-Type-Options":"nosniff","Strict-Transport-Security":"max-age=31536000; includeSubDomains","Access-Control-Allow-Origin":"*","X-Powered...
List Incident Alerts
List the alerts inside one Microsoft Sentinel incident. Read-only; returns each alert's name, severity, status, product, tactics and timestamps.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}/alerts
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
Input Example
{"path_parameters":{"subscriptionId":"string","resourceGroupName":"Example Name","workspaceName":"Example Name","incidentId":"string"},"parameters":{"api-version":"string"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
value | array | Alerts in the incident, one element per alert. |
value.id | string | Full Azure resource ID of the alert. |
value.name | string | Alert ID. Same value as systemAlertId. |
value.type | string | Azure resource type, always Microsoft.SecurityInsights/Entities. |
value.kind | string | Entity kind, always SecurityAlert for this action. |
value.properties | object | Alert details. |
value.properties.systemAlertId | string | Alert ID (GUID) in Sentinel. |
value.properties.tactics | array | MITRE ATT&CK tactics of the alert. Values are MITRE ATT&CK tactic names: Reconnaissance, ResourceDevelopment, InitialAccess, Execution, Persistence, PrivilegeEscalation, DefenseEvasion, CredentialAccess, Discovery, LateralMovement, Collection, Exfiltration, CommandAndControl, Impact, PreAttack, ImpairProcessControl, InhibitResponseFunction. |
value.properties.tactics.file_name | string | Schema artifact, not returned by the API: each list element is a plain string (see the Flags tab). |
value.properties.tactics.file | string | Schema artifact, not returned by the API: each list element is a plain string (see the Flags tab). |
value.properties.alertDisplayName | string | Alert name, for example Suspicious PowerShell command. |
value.properties.description | string | Alert description. |
value.properties.confidenceLevel | string | Detection confidence. One of the following values: Unknown, Low, High. |
value.properties.severity | string | Alert severity. One of the following values: High, Medium, Low, Informational. |
value.properties.vendorName | string | Vendor of the product that raised the alert, for example Microsoft. |
value.properties.productName | string | Product that raised the alert, for example Azure Sentinel or Microsoft Defender for Endpoint. |
value.properties.productComponentName | string | Product component that raised the alert, for example Scheduled Alerts. |
value.properties.alertType | string | Alert type identifier; for Sentinel scheduled rules it is ο»Ώ ο»Ώ |
value.properties.processingEndTime | string | Time the alert finished processing. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.status | string | Alert lifecycle status. One of the following values: Unknown, New, InProgress, Resolved, Dismissed. |
value.properties.endTimeUtc | string | Time of the last event in the alert. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.startTimeUtc | string | Time of the first event in the alert. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.timeGenerated | string | Time the alert was generated. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-resource-requests":"499","x-ms-request-id":"8745ade4-8c1e-4c0b-beec-2969c4a779e9","x-ms-correlation-request-id":"8745ade4-8c1e-4c0b-beec-2969c4a779e9","x-ms-routing-request-id":"SOUTHINDIA:20230729T111826Z:8745a...
List Incident Bookmarks
List the hunting bookmarks attached to one Microsoft Sentinel incident. Read-only; returns each bookmark's query, result row and authors.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}/bookmarks
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
Input Example
{"path_parameters":{"subscriptionId":"string","resourceGroupName":"Example Name","workspaceName":"Example Name","incidentId":"string"},"parameters":{"api-version":"string"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
value | array | Bookmarks attached to the incident, one element per bookmark. |
value.id | string | Full Azure resource ID of the bookmark. |
value.name | string | Bookmark ID (GUID). |
value.type | string | Azure resource type, always Microsoft.SecurityInsights/Entities. |
value.kind | string | Entity kind, always Bookmark for this action. |
value.properties | object | Bookmark details. |
value.properties.displayName | string | Bookmark name. |
value.properties.created | string | Time the bookmark was created. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.updated | string | Time the bookmark was last updated. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.createdBy | object | User who created the bookmark. |
value.properties.createdBy.objectId | string | Microsoft Entra ID object ID (GUID) of the bookmark creator. |
value.properties.createdBy.email | string | Email address of the bookmark creator. |
value.properties.createdBy.name | string | Display name of the bookmark creator. |
value.properties.updatedBy | object | User who last updated the bookmark. |
value.properties.updatedBy.objectId | string | Microsoft Entra ID object ID (GUID) of the bookmark last editor. |
value.properties.updatedBy.email | string | Email address of the bookmark last editor. |
value.properties.updatedBy.name | string | Display name of the bookmark last editor. |
value.properties.eventTime | string | Time of the bookmarked event. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.labels | array | Labels on the bookmark, as a list of strings. |
value.properties.labels.file_name | string | Schema artifact, not returned by the API: each list element is a plain string (see the Flags tab). |
value.properties.labels.file | string | Schema artifact, not returned by the API: each list element is a plain string (see the Flags tab). |
value.properties.query | string | KQL query that produced the bookmarked result. |
value.properties.queryResult | string | Bookmarked result row as a JSON string; parse it to read fields such as Account, Computer or IpAddress. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-resource-requests":"499","x-ms-request-id":"fa5a78c9-cc33-4e7e-9aa1-800086279fbd","x-ms-correlation-request-id":"fa5a78c9-cc33-4e7e-9aa1-800086279fbd","x-ms-routing-request-id":"SOUTHINDIA:20230729T112006Z:fa5a7...
List Incident Comments
List the comments on one Microsoft Sentinel incident, with optional OData filter, sort and paging. Read-only; returns each comment's ID, message, author and timestamps.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}/comments
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
parameters.$filter | string | Optional | Optional OData filter on comment properties, for example properties/createdTimeUtc gt 2026-01-01T00:00:00Z. Leave empty to return all. |
parameters.$orderby | string | Optional | Optional OData sort expression, for example properties/createdTimeUtc desc. Leave empty for the default order. |
parameters.$skipToken | string | Optional | Paging token. Copy the $skipToken value from the nextLink of the previous response to get the next page; leave empty for the first page. |
parameters.$top | number | Optional | Maximum number of results to return in this page, for example 50. |
Input Example
{"parameters":{"api-version":"2023-02-01","$filter":"properties/createdTimeUtc gt 2026-01-01T00:00:00Z","$orderby":"properties/createdTimeUtc desc","$skipToken":"X'654c726f6b5f3130'","$top":10},"path_parameters":{"subscriptionId":"38d4cde9-8ef2-4c61-bc61-7fa8658ab74b","resourceGroupName":"myRg","workspaceName":"swimlaneazuresentinel","incidentId":"99353b3a-794c-4d8a-ac01-df3f109900ed"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
value | array | Comments on the incident, one element per comment. |
value.id | string | Full Azure resource ID of the incident comment. |
value.name | string | Incident comment ID. Use as incidentCommentId in get_incident_comment, update_incident_comment or delete_incident_comments. |
value.type | string | Azure resource type, always Microsoft.SecurityInsights/incidents/comments. |
value.etag | string | ETag of this incident comment version. Pass it as etag when updating to avoid overwriting newer changes. |
value.properties | object | Incident comment details. |
value.properties.message | string | Comment text. |
value.properties.createdTimeUtc | string | Time the comment was created. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.lastModifiedTimeUtc | string | Time the comment was last edited. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.author | object | User or app that wrote the comment. |
value.properties.author.objectId | string | Microsoft Entra ID object ID (GUID) of the comment author. |
value.properties.author.email | string | Email address of the comment author. |
value.properties.author.userPrincipalName | string | User principal name of the comment author. |
value.properties.author.name | string | Display name of the comment author. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-resource-requests":"499","x-ms-request-id":"aa473e1f-78ce-4466-a0c6-f14359c755a2","x-ms-correlation-request-id":"aa473e1f-78ce-4466-a0c6-f14359c755a2","x-ms-routing-request-id":"CENTRALINDIA:20240118T092209Z:aa4...
List Incident Entities
List the entities (accounts, hosts, IPs, files, URLs) involved in one Microsoft Sentinel incident. Read-only; returns entity IDs, kinds and properties.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}/entities
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
Input Example
{"path_parameters":{"subscriptionId":"string","resourceGroupName":"Example Name","workspaceName":"Example Name","incidentId":"string"},"parameters":{"api-version":"string"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
entities | array | Entities found, one element per entity (account, host, IP, file and so on). |
entities.id | string | Full Azure resource ID of the entity. |
entities.name | string | Entity ID. Use as entityId in entities_expand or get_entity_insights. |
entities.type | string | Azure resource type, always Microsoft.SecurityInsights/Entities. |
entities.kind | string | Entity kind. One of the following values: Account, AzureResource, Bookmark, CloudApplication, DnsResolution, File, FileHash, Host, IoTDevice, Ip, MailCluster, MailMessage, Mailbox, Malware, Nic, Process, RegistryKey, RegistryValue, SecurityAlert, SecurityGroup, SubmissionMail, Url. |
entities.properties | object | Entity details. |
entities.properties.friendlyName | string | Human-readable entity name, for example a user name or IP address. |
entities.properties.accountName | string | Account name, without the domain, for example administrator. Present on Account entities. |
entities.properties.ntDomain | string | NetBIOS domain of the account, for example CONTOSO. Present on Account entities. |
metaData | array | Count of entities per kind. |
metaData.entityKind | string | Entity kind counted, for example Account, Host or Ip. |
metaData.count | number | Number of entities of this kind. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-resource-requests":"499","x-ms-request-id":"48c22610-cfa7-4ba0-9315-fd8bbd2aadba","x-ms-correlation-request-id":"48c22610-cfa7-4ba0-9315-fd8bbd2aadba","x-ms-routing-request-id":"SOUTHINDIA:20230729T122235Z:48c22...
List Incidents
List Microsoft Sentinel incidents in a workspace, with optional OData filter, sort and paging. Read-only; returns incidents plus a nextLink for the next page.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
parameters.$filter | string | Optional | Optional OData filter that narrows the results, for example properties/severity eq 'High'. Leave empty to return all. |
parameters.$orderby | string | Optional | Optional OData sort expression, for example properties/createdTimeUtc desc. Leave empty for the default order. |
parameters.$skipToken | string | Optional | Paging token. Copy the $skipToken value from the nextLink of the previous response to get the next page; leave empty for the first page. |
parameters.$top | number | Optional | Maximum number of results to return in this page, for example 50. |
Input Example
{"path_parameters":{"subscriptionId":"string","resourceGroupName":"Example Name","workspaceName":"Example Name"},"parameters":{"api-version":"string","$filter":"string","$orderby":"string","$skipToken":"string","$top":123}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
value | array | Incidents in this page, one element per incident. Use nextLink for the next page. |
value.id | string | Full Azure resource ID of the incident. |
value.name | string | Incident ID. Use as incidentId in get_incident, list_incident_alerts, list_incident_entities, add_comment_to_incident and delete_incident. |
value.etag | string | ETag of this incident version. Pass it as etag when updating to avoid overwriting newer changes. |
value.type | string | Azure resource type, always Microsoft.SecurityInsights/incidents. |
value.properties | object | Incident details. |
value.properties.title | string | Incident title. |
value.properties.description | string | Incident description text. |
value.properties.severity | string | Incident severity. One of the following values: High, Medium, Low, Informational. |
value.properties.status | string | Incident status. One of the following values: New, Active, Closed. |
value.properties.owner | object | User or group the incident is assigned to. Empty fields mean unassigned. |
value.properties.owner.objectId | object | Microsoft Entra ID object ID (GUID) of the assignee; null when unassigned. |
value.properties.owner.email | object | Email address of the assignee; null when unassigned. |
value.properties.owner.assignedTo | object | Display name of the assignee; null when unassigned. |
value.properties.owner.userPrincipalName | object | User principal name of the assignee; null when unassigned. |
value.properties.labels | array | Labels (tags) on the incident. |
value.properties.labels.file_name | string | Schema artifact, not returned by the API: each list element is a plain string (see the Flags tab). |
value.properties.labels.file | string | Schema artifact, not returned by the API: each list element is a plain string (see the Flags tab). |
value.properties.firstActivityTimeUtc | string | Time of the first activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.lastActivityTimeUtc | string | Time of the last activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.lastModifiedTimeUtc | string | Time the incident was last updated. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.createdTimeUtc | string | Time the incident was created. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
value.properties.incidentNumber | number | Sequential incident number shown in the portal, for example 3177. Not the incident ID; use name for API calls. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-reads":"11999","x-ms-request-id":"b0182057-82a0-4253-aa3c-5be0c8ab9809","x-ms-correlation-request-id":"b0182057-82a0-4253-aa3c-5be0c8ab9809","x-ms-routing-request-id":"SOUTHINDIA:20230729T110918Z:b0182057-82a0-4...
Run Analytics Query
Run a KQL query against a Log Analytics workspace (Sentinel data) by workspace ID, optionally limited to a timespan. Read-only; returns result tables of columns and rows.
Endpoint
- URL: /{{apiVersion}}/workspaces/{{workspaceId}}/query
- Method: POST
Input
Argument Name | Type | Required | Description | ||
|---|---|---|---|---|---|
path_parameters.workspaceId | string | Required | Log Analytics workspace ID (the workspace GUID shown as Workspace ID in the Azure portal), not the workspace name, for example 7b3f088b-d55a-485c-b030-4cb167e8cffd. | ||
path_parameters.apiVersion | string | Required | Log Analytics Query API version used in the URL path. Use v1. | ||
query | string | Optional | KQL query to run against the workspace, for example SecurityAlert | where TimeGenerated > ago(1d) | take 10. |
timespan | string | Optional | Optional time range applied on top of any time filter in the query: an ISO 8601 duration such as P1D, or start/end such as 2026-01-01T00:00:00Z/2026-01-02T00:00:00Z. | ||
workspaces | array | Optional | Optional extra workspace IDs (GUIDs) or names to query in the same request, as a list. |
Input Example
{"path_parameters":{"workspaceId":"string","apiVersion":"string"},"query":"string","timespan":"string","workspaces":["string"]}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
tables | array | Result tables; usually one table named PrimaryResult. |
tables.name | string | Table name, for example PrimaryResult. |
tables.columns | array | Column definitions; the n-th column describes the n-th value in each row. |
tables.columns.name | string | Column name, for example TimeGenerated. |
tables.columns.type | string | Column data type, for example string, datetime, bool, real or long. |
tables.rows | array | Result rows; each row is a list of cell values in column order. Values can be strings, numbers, booleans or null. |
Output Example
{"status_code":200,"response_headers":{"Date":"Fri, 11 Aug 2023 03:08:43 GMT","Content-Type":"application/json; charset=utf-8","Transfer-Encoding":"chunked","Connection":"keep-alive","via":"1.1 draft-oms-74c8fb9684-6rv8g","X-Content-Type-Options":"nosniff","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location","Vary":"Accept-Encoding","Content-Encoding":"gzip","Strict-Transport-Security":"max-age=15724800; i...
SOC - Sentinel Alert Ingestion to Turbine Schema
Pull Microsoft Sentinel incidents from a time window and convert each into a Turbine Schema alert, oldest first, paged by offset and max_alerts. Read-only; returns alerts, counts and errors.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
parameters.lookback_hours | number | Required | Required. Window length in hours when Start Time is empty. Ignored when Start Time is set. |
parameters.organization | string | Optional | Organization set as alert_organization on every alert. |
parameters.start_time | string | Optional | Optional. ISO-8601 UTC, epoch milliseconds, or a lookback such as 4 hours ago. Empty means End Time minus Lookback Hours. |
parameters.end_time | string | Optional | ISO-8601 UTC, epoch milliseconds, or a lookback. Defaults to now. |
parameters.max_alerts | number | Required | Required. Number of alerts to return, oldest first. offset + max_alerts must be at most 1000. |
parameters.offset | number | Required | Required. Alerts to skip, oldest first, to page through a window. |
parameters.api_version | string | Optional | Optional. Sentinel incidents API version. Defaults to 2023-02-01. |
Input Example
{"path_parameters":{"subscriptionId":"string","resourceGroupName":"Example Name","workspaceName":"Example Name"},"parameters":{"lookback_hours":24,"organization":"string","start_time":"string","end_time":"string","max_alerts":100,"offset":123,"api_version":"2023-02-01"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | 200 when the search succeeded. |
body | object | Result of the ingestion run. |
body.success | boolean | False when any alert could not be converted. |
body.message | string | Plain-language summary of the run, for example Converted 12 of 12 incidents. |
body.count | number | Number of Turbine Schema alerts returned. |
body.total_alerts_found | number | Incidents returned by List Incidents for the window, before the offset slice. |
body.latest_alert_timestamp | string | Latest alert_created_timestamp returned. Can be the next run's start_time. |
body.alerts | array | One Turbine Schema alert per Azure Sentinel incident, oldest first. |
body.alerts.alert_uid | string | Unique alert ID: the Sentinel incident ID (GUID). |
body.alerts.alert_title | string | Alert title, from the incident title. |
body.alerts.alert_description | string | Alert description, from the incident description. |
body.alerts.alert_severity | string | Alert severity, from the incident severity: High, Medium, Low or Informational. |
body.alerts.alert_created_timestamp | string | Time the incident was created. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. Use the latest value as the next run's start_time. |
body.alerts.alert_start_timestamp | string | Time of the first activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
body.alerts.alert_end_timestamp | string | Time of the last activity in the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
body.alerts.alert_ingested_timestamp | string | Time this action converted the incident. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
body.alerts.alert_provider | string | Source of the alert, for example Microsoft Sentinel. |
body.alerts.alert_organization | string | Organization passed in the organization input. |
body.alerts.alert_categories | array | Alert categories, from the incident's MITRE ATT&CK tactics. |
body.alerts.alert_impacted_hostnames | array | Host names involved in the incident. |
body.alerts.alert_impacted_ip_addresses | array | IP addresses involved in the incident. |
body.alerts.alert_impacted_usernames | array | User names involved in the incident. |
body.alerts.alert_command_line_commands | string | Command lines involved in the incident, when available. |
body.alerts.alert_rules | array | Analytics rules that produced the incident, one object per rule. |
body.alerts.observables | array | Observables (IPs, hosts, accounts, hashes, URLs) extracted from the incident, one object per observable. |
Output Example
{"body":{"success":true,"message":"string","count":123,"total_alerts_found":123,"latest_alert_timestamp":"string","alerts":[{}],"errors":[{}]}}
Update Incident Comment
Create or edit a comment on a Microsoft Sentinel incident by incident ID and comment ID. Returns the saved comment. Same call as add_comment_to_incident.
Endpoint
- URL: /subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.OperationalInsights/workspaces/{{workspaceName}}/providers/Microsoft.SecurityInsights/incidents/{{incidentId}}/comments/{{incidentCommentId}}
- Method: PUT
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.subscriptionId | string | Required | Azure subscription ID (GUID) that contains the Microsoft Sentinel workspace, for example d0cfe6b2-9ac0-4464-9919-dccaee2e48c0. Not the subscription display name. |
path_parameters.resourceGroupName | string | Required | Name of the Azure resource group that holds the Sentinel (Log Analytics) workspace, for example myRg. Case-insensitive, 1-90 characters. |
path_parameters.workspaceName | string | Required | Name (not the GUID) of the Log Analytics workspace where Microsoft Sentinel is enabled, for example myWorkspace. 1-90 letters, digits or hyphens, starting and ending with a letter or digit. |
path_parameters.incidentId | string | Required | Incident ID: the GUID in the incident's name field (not the incident number), for example 73e01a99-5cd7-4139-a149-9f2736ff2ab5. Get it from name in list_incidents or get_incident. |
path_parameters.incidentCommentId | string | Required | Comment ID (GUID). Supply a new GUID to add a comment; use an existing comment's name from list_incident_comments to edit it. |
parameters.api-version | string | Required | Microsoft Sentinel REST API version in YYYY-MM-DD form, for example 2024-03-01. |
properties | object | Optional | Comment fields. message is required. |
properties.message | string | Required | Comment text to post on the incident, for example Isolated host WS-042 and reset the user's password. |
etag | string | Optional | Optional ETag from the etag output of get_incident_comment. When set, the update fails if the item changed since you read it; leave empty to overwrite. |
Input Example
{"parameters":{"api-version":"2023-02-01"},"json_body":{"properties":{"message":"Some Message"},"etag":"\"0300bf09-0000-0000-0000-5c37296e0000\""},"path_parameters":{"subscriptionId":"38d4cde9-8ef2-4c61-bc61-7fa8658ab74b","resourceGroupName":"myRg","workspaceName":"swimlaneazuresentinel","incidentId":"99353b3a-794c-4d8a-ac01-df3f109900ed","incidentCommentId":"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code returned by the vendor API. 200-299 means success, 4xx means a bad request or missing permission, 5xx means a vendor-side error. |
reason | string | HTTP reason phrase that accompanies status_code, for example OK or Not Found. |
id | string | Full Azure resource ID of the incident comment. |
name | string | Incident comment ID. Use as incidentCommentId in get_incident_comment, update_incident_comment or delete_incident_comments. |
type | string | Azure resource type, always Microsoft.SecurityInsights/incidents/comments. |
etag | string | ETag of this incident comment version. Pass it as etag when updating to avoid overwriting newer changes. |
properties | object | Incident comment details. |
properties.message | string | Comment text. |
properties.createdTimeUtc | string | Time the comment was created. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.lastModifiedTimeUtc | string | Time the comment was last edited. ISO 8601 UTC timestamp, for example 2026-01-31T13:45:00Z. |
properties.author | object | User or app that wrote the comment. |
properties.author.objectId | string | Microsoft Entra ID object ID (GUID) of the comment author. |
properties.author.email | string | Email address of the comment author. |
properties.author.userPrincipalName | string | User principal name of the comment author. |
properties.author.name | string | Display name of the comment author. |
Output Example
{"status_code":200,"response_headers":{"Cache-Control":"no-cache","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"application/json; charset=utf-8","Content-Encoding":"gzip","Expires":"-1","Vary":"Accept-Encoding","Server":"Kestrel","x-ms-ratelimit-remaining-subscription-resource-requests":"499","x-ms-request-id":"aa473e1f-78ce-4466-a0c6-f14359c755a2","x-ms-correlation-request-id":"aa473e1f-78ce-4466-a0c6-f14359c755a2","x-ms-routing-request-id":"CENTRALINDIA:20240118T092209Z:aa4...
Response Headers
Header | Description | Example |
|---|---|---|
Access-Control-Allow-Origin | HTTP response header: Access-Control-Allow-Origin | * |
Access-Control-Expose-Headers | HTTP response header: Access-Control-Expose-Headers | Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location |
Cache-Control | Directives for caching mechanisms | no-store, no-cache |
Connection | HTTP response header: Connection | keep-alive |
Content-Encoding | HTTP response header: Content-Encoding | gzip |
Content-Length | The length of the response body in bytes | 0 |
Content-Type | The media type of the resource | application/json |
Date | The date and time at which the message was originated | Sat, 29 Jul 2023 12:22:34 GMT |
Expires | The date/time after which the response is considered stale | -1 |
P3P | HTTP response header: P3P | CP="DSP CUR OTPi IND OTRi ONL FIN" |
Pragma | HTTP response header: Pragma | no-cache |
Request-Context | HTTP response header: Request-Context | appId=cid-v1:e6336c63-aab2-45f0-996a-e5dbab2a1508 |
Server | Information about the software used by the origin server | Kestrel |
Set-Cookie | HTTP response header: Set-Cookie | fpc=AjlweEqE3N5AsDykcUumbB5D3sW4AQAAAK9y-90OAAAA; expires=Fri, 12-Jul-2024 10:42:55 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/; secure; samesite=none; httponly |
Strict-Transport-Security | HTTP response header: Strict-Transport-Security | max-age=15724800; includeSubDomains |
Transfer-Encoding | HTTP response header: Transfer-Encoding | chunked |
Vary | HTTP response header: Vary | Accept-Encoding |
via | HTTP response header: via | 1.1 draft-oms-74c8fb9684-6rv8g |
X-Content-Type-Options | HTTP response header: X-Content-Type-Options | nosniff |
x-ms-correlation-request-id | HTTP response header: x-ms-correlation-request-id | 80a0943c-0eaa-4a3d-bac9-1e4e4eae73db |
x-ms-ests-server | HTTP response header: x-ms-ests-server | 2.1.18261.3 - EUS ProdSlices |
x-ms-failure-cause | HTTP response header: x-ms-failure-cause | gateway |
x-ms-ratelimit-remaining-subscription-deletes | HTTP response header: x-ms-ratelimit-remaining-subscription-deletes | 14999 |
x-ms-ratelimit-remaining-subscription-reads | HTTP response header: x-ms-ratelimit-remaining-subscription-reads | 11999 |
x-ms-ratelimit-remaining-subscription-resource-requests | HTTP response header: x-ms-ratelimit-remaining-subscription-resource-requests | 499 |
x-ms-ratelimit-remaining-subscription-writes | HTTP response header: x-ms-ratelimit-remaining-subscription-writes | 1199 |
x-ms-request-id | HTTP response header: x-ms-request-id | f04749a8-b1d4-42ed-a64d-7c0cab024e00 |
x-ms-routing-request-id | HTTP response header: x-ms-routing-request-id | CENTRALINDIA:20240118T092209Z:aa473e1f-78ce-4466-a0c6-f14359c755a2 |
x-ms-srs | HTTP response header: x-ms-srs | 1.P |
X-Powered-By | HTTP response header: X-Powered-By | ASP.NET |
X-XSS-Protection | HTTP response header: X-XSS-Protection | 0 |