Skip to main content

watchlist_items

Creates, updates, deletes, gets or lists a watchlist_items resource.

Overview

Namewatchlist_items
TypeResource
Idazure.sentinel.watchlist_items

Fields

NameDatatypeDescription
createdtextfield from the properties object
created_bytextfield from the properties object
entity_mappingtextfield from the properties object
etagtextEtag of the azure resource
is_deletedtextfield from the properties object
items_key_valuetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object
updatedtextfield from the properties object
updated_bytextfield from the properties object
watchlistAliastextfield from the properties object
watchlistItemIdtextfield from the properties object
watchlist_item_idtextfield from the properties object
watchlist_item_typetextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, watchlistAlias, watchlistItemId, workspaceNameGet a watchlist item.
listSELECTresourceGroupName, subscriptionId, watchlistAlias, workspaceNameGet all watchlist Items.
create_or_updateINSERTresourceGroupName, subscriptionId, watchlistAlias, watchlistItemId, workspaceNameCreate or update a watchlist item.
deleteDELETEresourceGroupName, subscriptionId, watchlistAlias, watchlistItemId, workspaceNameDelete a watchlist item.

SELECT examples

Get all watchlist Items.

SELECT
created,
created_by,
entity_mapping,
etag,
is_deleted,
items_key_value,
resourceGroupName,
subscriptionId,
tenant_id,
updated,
updated_by,
watchlistAlias,
watchlistItemId,
watchlist_item_id,
watchlist_item_type,
workspaceName
FROM azure.sentinel.vw_watchlist_items
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND watchlistAlias = '{{ watchlistAlias }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

Use the following StackQL query and manifest file to create a new watchlist_items resource.

/*+ create */
INSERT INTO azure.sentinel.watchlist_items (
resourceGroupName,
subscriptionId,
watchlistAlias,
watchlistItemId,
workspaceName,
etag,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ watchlistAlias }}',
'{{ watchlistItemId }}',
'{{ workspaceName }}',
'{{ etag }}',
'{{ properties }}'
;

DELETE example

Deletes the specified watchlist_items resource.

/*+ delete */
DELETE FROM azure.sentinel.watchlist_items
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND watchlistAlias = '{{ watchlistAlias }}'
AND watchlistItemId = '{{ watchlistItemId }}'
AND workspaceName = '{{ workspaceName }}';