Skip to main content

content_templates

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

Overview

Namecontent_templates
TypeResource
Idazure.sentinel.content_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
etagstringEtag of the azure resource
propertiesobjecttemplate properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, workspaceName, templateIdGets a template byt its identifier.
Expandable properties:
- properties/mainTemplate
- properties/dependantTemplates
listselectsubscriptionId, resourceGroupName, workspaceName$filter, $orderby, $expand, $search, $count, $top, $skip, $skipTokenGets all installed templates.
Expandable properties:
- properties/mainTemplate
- properties/dependantTemplates
deletedeletesubscriptionId, resourceGroupName, workspaceName, templateIdDelete an installed template.
installexecsubscriptionId, resourceGroupName, workspaceName, templateIdInstall a template.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
templateIdstringtemplate Id
workspaceNamestringThe name of the workspace.
$countbooleanInstructs the server to return only object count without actual body. Optional.
$expandstringExpands the object with optional fiends that are not included by default. Optional.
$filterstringFilters the results, based on a Boolean condition. Optional.
$orderbystringSorts the results. Optional.
$searchstringSearches for a substring in the response. Optional.
$skipinteger (int32)Used to skip n elements in the OData query (offset). Returns a nextLink to the next page of results if there are any left.
$skipTokenstringSkiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional.
$topinteger (int32)Returns only the first n results. Optional.

SELECT examples

Gets a template byt its identifier.
Expandable properties:
- properties/mainTemplate
- properties/dependantTemplates

SELECT
etag,
properties
FROM azure.sentinel.content_templates
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND templateId = '{{ templateId }}' -- required
;

DELETE examples

Delete an installed template.

DELETE FROM azure.sentinel.content_templates
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
AND templateId = '{{ templateId }}' --required
;

Lifecycle Methods

Install a template.

EXEC azure.sentinel.content_templates.install 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@workspaceName='{{ workspaceName }}' --required,
@templateId='{{ templateId }}' --required
@@json=
'{
"etag": "{{ etag }}",
"properties": "{{ properties }}"
}'
;