命名空间: microsoft.graph.security.contentManagement
重要
Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
列出调用租户中安装的 installedPackage 资源。
权限
为此 API 选择标记为最低特权的权限。 只有在应用需要它时,才使用更高的特权权限。 有关委派权限和应用程序权限的详细信息,请参阅权限类型。 要了解有关这些权限的详细信息,请参阅 权限参考。
| 权限类型 | 最低特权权限 | 更高特权权限 |
|---|---|---|
| 委派(工作或学校帐户) | ContentHub-Installed.Read.All | ContentHub-Installed.ReadWrite.All |
| 委派(个人 Microsoft 帐户) | 不支持。 | 不支持。 |
| 应用程序 | ContentHub-Installed.Read.All | ContentHub-Installed.ReadWrite.All |
HTTP 请求
GET /security/contentManagement/installedPackages
可选的查询参数
此方法支持$select仅在显式选择时 (mainTemplate 进行水合;用于$select=mainTemplate窄投影或$select=*,mainTemplate保留默认属性) 、 $filter (id、 installedDateTimeversioncontentProductId、 和 lastModifiedDateTime) 、 $orderby (version、 installedDateTime和 lastModifiedDateTime) ($count$top 默认和最大 100 个) , $skiptoken (通过) 进行@odata.nextLink服务器驱动的分页,等等。$expandcontents 它不支持 $skip、 $search或增量查询。 若要了解一般信息,请参阅 OData 查询参数。
支持 $filter 的运算符为 eq 并且 ne 用于所有可筛选属性。 and lastModifiedDateTime 属性installedDateTime还支持 gt、ge、 lt和 le。
请求标头
| 名称 | 说明 |
|---|---|
| Authorization | 持有者 {token}。 必填。 详细了解 身份验证和授权。 |
请求正文
请勿提供此方法的请求正文。
响应
如果成功,此方法将在响应正文中返回响应 200 OK 代码和 microsoft.graph.security.contentManagement.installedPackage 对象的集合。
示例
请求
以下示例显示了一个请求。
GET https://graph.microsoft.com/beta/security/contentManagement/installedPackages?$select=*,mainTemplate&$expand=contents($select=id,contentProductId,kind,version)&$orderby=installedDateTime desc&$count=true
响应
以下示例显示了相应的响应。
注意:为了提高可读性,可能缩短了此处显示的响应对象。
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#security/contentManagement/installedPackages",
"@odata.count": 1,
"value": [
{
"@odata.type": "#microsoft.graph.security.contentManagement.installedPackage",
"id": "azuresentinel.azure-sentinel-solution-entraid",
"contentProductId": "azuresentinel.azure-sentinel-solution-entraid-sl",
"version": "3.1.0",
"displayName": "Microsoft Entra ID",
"description": "Detects suspicious sign-in and consent activity.",
"descriptionHtml": "<p>Detects suspicious sign-in and consent activity.</p>",
"icon": "https://store-images.s-microsoft.com/image/package.png",
"publisherDisplayName": "Microsoft",
"source": {
"@odata.type": "#microsoft.graph.security.contentManagement.contentPackageSource",
"kind": "marketplace",
"displayName": "Microsoft Sentinel content hub",
"sourceId": "azuresentinel.azure-sentinel-solution-entraid-sl"
},
"author": {
"@odata.type": "#microsoft.graph.security.contentManagement.contentAuthor",
"displayName": "Microsoft",
"email": null,
"link": "https://www.microsoft.com"
},
"support": {
"@odata.type": "#microsoft.graph.security.contentManagement.contentSupport",
"displayName": "Microsoft Corporation",
"email": "support@microsoft.com",
"tier": "microsoft",
"link": "https://support.microsoft.com"
},
"dependencies": {
"@odata.type": "#microsoft.graph.Json",
"operator": "and",
"criteria": [
{
"contentId": "EntraIDWorkbook",
"version": "1.4.0"
}
]
},
"providers": [
"Microsoft Entra ID"
],
"categories": {
"@odata.type": "#microsoft.graph.security.contentManagement.contentCategories",
"domains": [
"Identity"
],
"verticals": []
},
"installedDateTime": "2026-08-25T09:14:02Z",
"lastModifiedDateTime": "2026-08-25T09:14:02Z",
"mainTemplate": {
"@odata.type": "#microsoft.graph.Json",
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": []
},
"contents": [
{
"@odata.type": "#microsoft.graph.security.contentManagement.installedContentItem",
"id": "EntraIDSuspiciousConsentGrant",
"contentProductId": "azuresentinel.analyticsrule.entraidsuspiciousconsentgrant",
"kind": "AnalyticsRule",
"version": "2.0.1"
}
]
}
]
}