Skip to main content

bookmarks

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

Overview

Namebookmarks
TypeResource
Idazure.security_insight.bookmarks

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.
createdstring (date-time)The time the bookmark was created.
createdByobjectDescribes a user that created the bookmark.
displayNamestringThe display name of the bookmark. Required.
entityMappingsarrayDescribes the entity mappings of the bookmark.
etagstringEtag of the azure resource.
eventTimestring (date-time)The bookmark event time.
incidentInfoobjectDescribes an incident that relates to bookmark.
labelsarrayList of labels relevant to this bookmark.
notesstringThe notes of the bookmark.
querystringThe query of the bookmark. Required.
queryEndTimestring (date-time)The end time for the query.
queryResultstringThe query result of the bookmark.
queryStartTimestring (date-time)The start time for the query.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tacticsarrayA list of relevant mitre attacks.
techniquesarrayA list of relevant mitre techniques.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
updatedstring (date-time)The last time the bookmark was updated.
updatedByobjectDescribes a user that updated the bookmark.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, bookmark_id, subscription_idGets a bookmark.
listselectresource_group_name, workspace_name, subscription_idGets all bookmarks.
create_or_updateinsertresource_group_name, workspace_name, bookmark_id, subscription_idCreates or updates the bookmark.
create_or_updatereplaceresource_group_name, workspace_name, bookmark_id, subscription_idCreates or updates the bookmark.
deletedeleteresource_group_name, workspace_name, bookmark_id, subscription_idDelete the bookmark.

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
bookmark_idstringBookmark ID. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the monitor workspace. Required.

SELECT examples

Gets a bookmark.

SELECT
id,
name,
created,
createdBy,
displayName,
entityMappings,
etag,
eventTime,
incidentInfo,
labels,
notes,
query,
queryEndTime,
queryResult,
queryStartTime,
systemData,
tactics,
techniques,
type,
updated,
updatedBy
FROM azure.security_insight.bookmarks
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND bookmark_id = '{{ bookmark_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the bookmark.

INSERT INTO azure.security_insight.bookmarks (
properties,
etag,
resource_group_name,
workspace_name,
bookmark_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ etag }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ bookmark_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Creates or updates the bookmark.

REPLACE azure.security_insight.bookmarks
SET
properties = '{{ properties }}',
etag = '{{ etag }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND bookmark_id = '{{ bookmark_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Delete the bookmark.

DELETE FROM azure.security_insight.bookmarks
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND bookmark_id = '{{ bookmark_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;