Skip to main content

entity_relations

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

Overview

Nameentity_relations
TypeResource
Idazure.security_insight.entity_relations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
etagstringEtag of the azure resource.
relatedResourceIdstringThe resource ID of the related resource. Required.
relatedResourceKindstringThe resource kind of the related resource.
relatedResourceNamestringThe name of the related resource.
relatedResourceTypestringThe resource type of the related resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_relationselectresource_group_name, workspace_name, entity_id, relation_name, subscription_idGets an entity relation.

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.
relation_namestringRelation Name. 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

Gets an entity relation.

SELECT
id,
name,
etag,
relatedResourceId,
relatedResourceKind,
relatedResourceName,
relatedResourceType,
systemData,
type
FROM azure.security_insight.entity_relations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND entity_id = '{{ entity_id }}' -- required
AND relation_name = '{{ relation_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;