Skip to main content

entities

Creates, updates, deletes, gets or lists an entities resource.

Overview

Nameentities
TypeResource
Idazure.security_insight.entities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
metaDataobjectThe metadata from the get insights operation results.
valuearrayThe insights result values.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_insightsselectresource_group_name, workspace_name, entity_id, subscription_idExecute Insights for an entity.
getselectresource_group_name, workspace_name, entity_id, subscription_idGets an entity.
listselectresource_group_name, workspace_name, subscription_idGets all entities.
run_playbookexecresource_group_name, workspace_name, entity_identifier, subscription_id, logicAppsResourceIdTriggers playbook on a specific entity.
expandexecresource_group_name, workspace_name, entity_id, subscription_idExpands an entity.
queriesexecresource_group_name, workspace_name, entity_id, subscription_id, kindGet Insights and Activities for an entity.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
entity_idstringentity ID. Required.
entity_identifierstringentity ID. Required.
kindstringThe Kind parameter for queries. "Insight" Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Execute Insights for an entity.

SELECT
metaData,
value
FROM azure.security_insight.entities
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND entity_id = '{{ entity_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Triggers playbook on a specific entity.

EXEC azure.security_insight.entities.run_playbook 
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@entity_identifier='{{ entity_identifier }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"incidentArmId": "{{ incidentArmId }}",
"tenantId": "{{ tenantId }}",
"logicAppsResourceId": "{{ logicAppsResourceId }}"
}'
;