Skip to main content

product_packages

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

Overview

Nameproduct_packages
TypeResource
Idazure.security_insight.product_packages

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.
authorobjectThe author of the package.
categoriesobjectThe categories of the package.
contentIdstringThe content id of the package.
contentKindstringThe package kind. Known values are: "Solution" and "Standalone". (Solution, Standalone)
contentProductIdstringUnique ID for the content. It should be generated based on the contentId, contentKind and the contentVersion of the package.
contentSchemaVersionstringThe version of the content schema.
dependenciesobjectThe support tier of the package.
descriptionstringThe description of the package.
displayNamestringThe display name of the package.
etagstringEtag of the azure resource.
firstPublishDatestring (date)first publish date package item.
iconstringthe icon identifier. this id can later be fetched from the content metadata.
installedVersionstringThe version of the installed package, null or absent means not installed.
isDeprecatedstringFlag indicates if this template is deprecated. Known values are: "true" and "false". (true, false)
isFeaturedstringFlag indicates if this package is among the featured list. Known values are: "true" and "false". (true, false)
isNewstringFlag indicates if this is a newly published package. Known values are: "true" and "false". (true, false)
isPreviewstringFlag indicates if this package is in preview. Known values are: "true" and "false". (true, false)
lastPublishDatestring (date)last publish date for the package item.
metadataResourceIdstringThe metadata resource id.
packagedContentobjectThe json of the ARM template to deploy. Expandable.
providersarrayProviders for the package item.
publisherDisplayNamestringThe publisher display name of the package.
sourceobjectThe source of the package.
supportobjectThe support tier of the package.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
threatAnalysisTacticsarraythe tactics the resource covers.
threatAnalysisTechniquesarraythe techniques the resource covers, these have to be aligned with the tactics being used.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionstringthe latest version number of the package.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresource_group_name, workspace_name, subscription_id$filter, $orderby, $top, $skipToken, $searchGets all packages from the catalog. Expandable properties: * properties/installed * properties/packagedContent.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the monitor workspace. Required.
$filterstringFilters the results, based on a Boolean condition. Optional. Default value is None.
$orderbystringSorts the results. Optional. Default value is None.
$searchstringSearches for a substring in the response. Optional. Default value is None.
$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. Default value is None.
$topintegerReturns only the first n results. Optional. Default value is None.

SELECT examples

Gets all packages from the catalog. Expandable properties: * properties/installed * properties/packagedContent.

SELECT
id,
name,
author,
categories,
contentId,
contentKind,
contentProductId,
contentSchemaVersion,
dependencies,
description,
displayName,
etag,
firstPublishDate,
icon,
installedVersion,
isDeprecated,
isFeatured,
isNew,
isPreview,
lastPublishDate,
metadataResourceId,
packagedContent,
providers,
publisherDisplayName,
source,
support,
systemData,
threatAnalysisTactics,
threatAnalysisTechniques,
type,
version
FROM azure.security_insight.product_packages
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
AND $orderby = '{{ $orderby }}'
AND $top = '{{ $top }}'
AND $skipToken = '{{ $skipToken }}'
AND $search = '{{ $search }}'
;