Skip to main content

content_packages

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

Overview

Namecontent_packages
TypeResource
Idazure.sentinel.content_packages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
etagstringEtag of the azure resource
propertiesobjectpackage properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, workspaceName, packageIdGets an installed packages by its id.
listselectsubscriptionId, resourceGroupName, workspaceName$filter, $orderby, $search, $count, $top, $skip, $skipTokenGets all installed packages.
installexecsubscriptionId, resourceGroupName, workspaceName, packageIdInstall a package to the workspace.
uninstallexecsubscriptionId, resourceGroupName, workspaceName, packageIdUninstall a package from the workspace.

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
packageIdstringpackage Id
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.
$countbooleanInstructs the server to return only object count without actual body. 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 an installed packages by its id.

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

Lifecycle Methods

Install a package to the workspace.

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