Product Package - Get
从目录中按标识符获取包。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/contentProductPackages/{packageId}?api-version=2025-09-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
package
|
path | True |
string |
包 ID |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
|
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
|
workspace
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$ |
工作区的名称。 |
|
api-version
|
query | True |
string minLength: 1 |
要用于此操作的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
好的 |
|
| Other Status Codes |
描述操作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
Get a package.
示例请求
GET https://management.azure.com/subscriptions/d0cfeab2-9ae0-4464-9919-dccaee2e48f0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/contentProductPackages/str.azure-sentinel-solution-str?api-version=2025-09-01
示例响应
{
"id": "/subscriptions/d0cfeab2-9ae0-4464-9919-dccaee2e48f0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/contentProductPackages/str.azure-sentinel-solution-str",
"name": "str.azure-sentinel-solution-str",
"type": "Microsoft.SecurityInsights/contentproductpackages",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"properties": {
"contentId": "str.azure-sentinel-solution-str",
"contentProductId": "str.azure-sentinel-solution-str-sl-igl6jawr4gwmu",
"contentKind": "Solution",
"installedVersion": "2.0.0",
"version": "2.0.0",
"displayName": "str",
"source": {
"kind": "Solution",
"name": "str",
"sourceId": "str.azure-sentinel-solution-str"
},
"author": {
"name": "Microsoft",
"email": "support@microsoft.com"
},
"support": {
"tier": "Microsoft",
"name": "Microsoft Corporation",
"email": "support@microsoft.com",
"link": "https://support.microsoft.com/"
},
"dependencies": {
"criteria": [
{
"contentId": "strDataConnector",
"kind": "DataConnector",
"version": "2.0.0"
},
{
"contentId": "str-Parser",
"kind": "Parser",
"version": "2.0.0"
}
],
"operator": "AND"
},
"providers": [
"Microsoft"
],
"categories": {
"domains": [
"Security - Cloud Security"
],
"verticals": null
},
"firstPublishDate": "2022-04-01",
"packageContent": "JSON string of the package"
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-27T21:53:29.0928001Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
}
}
定义
| 名称 | 说明 |
|---|---|
|
Cloud |
错误响应结构。 |
|
Cloud |
错误详细信息。 |
|
created |
创建资源的标识的类型。 |
| flag |
标志指示这是否是新发布的包。 |
| kind |
我们所依赖的内容项的类型 |
|
metadata |
内容项的发布者或创建者。 |
|
metadata |
解决方案内容项的 ies |
|
metadata |
内容项的依赖项,以及它工作所需的其他内容项。 可以使用递归/嵌套结构描述更复杂的依赖关系。 对于单个依赖项,可以提供 id/kind/version 或复杂依赖项的运算符/条件。 |
|
metadata |
内容项的原始来源,其来源。 |
|
metadata |
内容项的支持信息。 |
| operator |
用于标准数组中依赖项列表的运算符。 |
|
package |
包装种类 |
|
product |
表示 Azure 安全见解中的包。 |
|
source |
内容的源类型 |
|
support |
内容项的支持类型 |
|
system |
与创建和上次修改资源相关的元数据。 |
CloudError
错误响应结构。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误数据 |
CloudErrorBody
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
| message |
string |
描述错误的消息,旨在适合在用户界面中显示。 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
flag
标志指示这是否是新发布的包。
| 值 | 说明 |
|---|---|
| true | |
| false |
kind
我们所依赖的内容项的类型
| 值 | 说明 |
|---|---|
| DataConnector | |
| DataType | |
| Workbook | |
| WorkbookTemplate | |
| Playbook | |
| PlaybookTemplate | |
| AnalyticsRuleTemplate | |
| AnalyticsRule | |
| HuntingQuery | |
| InvestigationQuery | |
| Parser | |
| Watchlist | |
| WatchlistTemplate | |
| Solution | |
| AzureFunction | |
| LogicAppsCustomConnector | |
| AutomationRule | |
| ResourcesDataConnector |
无代码连接器平台 (CCP) 连接器 |
| Notebook |
Jupyter Notebook |
| Standalone |
社区贡献者贡献的一次性/独立内容 |
| SummaryRule |
汇总规则直接在 Log Analytics 工作区中执行批处理。 |
metadataAuthor
内容项的发布者或创建者。
| 名称 | 类型 | 说明 |
|---|---|---|
|
string |
作者联系人的电子邮件 |
|
| link |
string |
作者/供应商页面的链接 |
| name |
string |
作者姓名。 公司或个人。 |
metadataCategories
解决方案内容项的 ies
| 名称 | 类型 | 说明 |
|---|---|---|
| domains |
string[] |
解决方案内容项的域 |
| verticals |
string[] |
解决方案内容项的垂直行业 |
metadataDependencies
内容项的依赖项,以及它工作所需的其他内容项。 可以使用递归/嵌套结构描述更复杂的依赖关系。 对于单个依赖项,可以提供 id/kind/version 或复杂依赖项的运算符/条件。
| 名称 | 类型 | 说明 |
|---|---|---|
| contentId |
string |
我们所依赖的内容项的 ID |
| criteria |
这是我们必须满足的依赖项列表,根据 AND/OR 运算符 |
|
| kind |
我们所依赖的内容项的类型 |
|
| name |
string |
内容项的名称 |
| operator |
用于标准数组中依赖项列表的运算符。 |
|
| version |
string |
我们所依赖的内容项的版本。 可以为空、* 或缺失,以指示任何版本满足依赖关系。 如果版本与我们定义的数字格式不匹配,则需要完全匹配。 |
metadataSource
内容项的原始来源,其来源。
| 名称 | 类型 | 说明 |
|---|---|---|
| kind |
内容的源类型 |
|
| name |
string |
内容源的名称。 存储库名称、解决方案名称、LA 工作区名称等。 |
| sourceId |
string |
内容源的 ID。 解决方案 ID、工作区 ID 等 |
metadataSupport
内容项的支持信息。
| 名称 | 类型 | 说明 |
|---|---|---|
|
string |
支持联系人的电子邮件 |
|
| link |
string |
支持帮助链接,例如支持页面打开工单等。 |
| name |
string |
支持联系人的姓名。 公司或个人。 |
| tier |
内容项的支持类型 |
operator
用于标准数组中依赖项列表的运算符。
| 值 | 说明 |
|---|---|
| AND | |
| OR |
packageKind
包装种类
| 值 | 说明 |
|---|---|
| Solution | |
| Standalone |
productPackageModel
表示 Azure 安全见解中的包。
| 名称 | 类型 | 说明 |
|---|---|---|
| etag |
string |
Azure 资源的 Etag |
| id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
| name |
string |
资源的名称 |
| properties.author |
包的作者 |
|
| properties.categories |
套餐的类别 |
|
| properties.contentId |
string |
包的内容 ID |
| properties.contentKind |
包装种类 |
|
| properties.contentProductId |
string |
内容的唯一 ID。 它应该根据包的 contentId、contentKind 和 contentVersion 生成 |
| properties.contentSchemaVersion |
string |
内容架构的版本。 |
| properties.dependencies |
包的支持层 |
|
| properties.description |
string |
包装说明 |
| properties.displayName |
string |
包的显示名称 |
| properties.firstPublishDate |
string (date) |
第一个发布日期包项 |
| properties.icon |
string |
图标标识符。 稍后可以从内容元数据中获取此 ID |
| properties.installedVersion |
string |
已安装包的版本,null 或 absent 表示未安装。 |
| properties.isDeprecated |
标志指示此模板是否已弃用 |
|
| properties.isFeatured |
标志指示此包是否在精选列表中。 |
|
| properties.isNew |
标志指示这是否是新发布的包。 |
|
| properties.isPreview |
标志指示此包是否处于预览状态。 |
|
| properties.lastPublishDate |
string (date) |
包项的上次发布日期 |
| properties.metadataResourceId |
string (arm-id) |
元数据资源 ID。 |
| properties.packagedContent |
object |
要部署的 ARM 模板的 json。 膨胀。 |
| properties.providers |
string[] |
包项的提供程序 |
| properties.publisherDisplayName |
string |
包的发布者显示名称 |
| properties.source |
包的来源 |
|
| properties.support |
包的支持层 |
|
| properties.threatAnalysisTactics |
string[] |
该资源涵盖的策略 |
| properties.threatAnalysisTechniques |
string[] |
资源涵盖的技术必须与所使用的策略保持一致 |
| properties.version |
string |
软件包的最新版本号 |
| systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
| type |
string |
资源类型。 例如,“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
sourceKind
内容的源类型
| 值 | 说明 |
|---|---|
| LocalWorkspace | |
| Community | |
| Solution | |
| SourceRepository |
supportTier
内容项的支持类型
| 值 | 说明 |
|---|---|
| Microsoft | |
| Partner | |
| Community |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |