Skip to main content

metadata

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

Overview

Namemetadata
TypeResource
Idazure.sentinel.metadata

Fields

NameDatatypeDescription
authortextfield from the properties object
categoriestextfield from the properties object
content_idtextfield from the properties object
content_schema_versiontextfield from the properties object
custom_versiontextfield from the properties object
dependenciestextfield from the properties object
etagtextEtag of the azure resource
first_publish_datetextfield from the properties object
icontextfield from the properties object
kindtextfield from the properties object
last_publish_datetextfield from the properties object
metadataNametextfield from the properties object
parent_idtextfield from the properties object
preview_imagestextfield from the properties object
preview_images_darktextfield from the properties object
providerstextfield from the properties object
resourceGroupNametextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object
supporttextfield from the properties object
threat_analysis_tacticstextfield from the properties object
threat_analysis_techniquestextfield from the properties object
versiontextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmetadataName, resourceGroupName, subscriptionId, workspaceNameGet a Metadata.
listSELECTresourceGroupName, subscriptionId, workspaceNameList of all metadata
createINSERTmetadataName, resourceGroupName, subscriptionId, workspaceNameCreate a Metadata.
deleteDELETEmetadataName, resourceGroupName, subscriptionId, workspaceNameDelete a Metadata.
updateUPDATEmetadataName, resourceGroupName, subscriptionId, workspaceNameUpdate an existing Metadata.

SELECT examples

List of all metadata

SELECT
author,
categories,
content_id,
content_schema_version,
custom_version,
dependencies,
etag,
first_publish_date,
icon,
kind,
last_publish_date,
metadataName,
parent_id,
preview_images,
preview_images_dark,
providers,
resourceGroupName,
source,
subscriptionId,
support,
threat_analysis_tactics,
threat_analysis_techniques,
version,
workspaceName
FROM azure.sentinel.vw_metadata
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

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

UPDATE example

Updates a metadata resource.

/*+ update */
UPDATE azure.sentinel.metadata
SET
properties = '{{ properties }}'
WHERE
metadataName = '{{ metadataName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified metadata resource.

/*+ delete */
DELETE FROM azure.sentinel.metadata
WHERE metadataName = '{{ metadataName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';