notificationMessageTemplate 资源类型

命名空间:microsoft.graph

重要: /beta 版本下的 Microsoft Graph API 可能会更改;不支持生产使用。

注意:适用于 Intune 的 Microsoft Graph API 需要适用于租户的活动 Intune 许可证

通知消息是要发送给最终用户的消息,这些最终用户被确定为不符合管理员定义的合规策略要求。 管理员会选择通知,并使用“非合规性操作”部分下的合规策略创建页面,在 Intune 管理控制台中进行配置。 使用 notificationMessageTemplate 对象创建自定义通知,以便管理员在配置非合规操作时进行选择。

方法

方法 返回类型 说明
List notificationMessageTemplates notificationMessageTemplate 集合 列出 notificationMessageTemplate 对象的属性和关系。
Get notificationMessageTemplate notificationMessageTemplate 读取 notificationMessageTemplate 对象的属性和关系。
创建 notificationMessageTemplate notificationMessageTemplate 创建新的 notificationMessageTemplate 对象。
Delete notificationMessageTemplate 删除 notificationMessageTemplate
Update notificationMessageTemplate notificationMessageTemplate 更新 notificationMessageTemplate 对象的属性。
sendTestMessage 操作 使用默认区域设置中指定的 notificationMessageTemplate 发送测试消息

属性

属性 类型 说明
id String 实体的键。
lastModifiedDateTime DateTimeOffset 上次修改对象的日期/时间。
displayName String 通知消息模板的显示名称。
说明 String 通知消息模板的显示名称。
defaultLocale String 请求的区域设置不可用时要回退到的默认区域设置。
brandingOptions notificationTemplateBrandingOptions 消息模板品牌选项。 已在 Intune 管理员控制台中定义品牌。 可取值为:noneincludeCompanyLogoincludeCompanyNameincludeContactInformationincludeCompanyPortalLinkincludeDeviceDetailsunknownFutureValue
roleScopeTagIds 字符串集合 此实体实例的范围标记列表。

关系

关系 类型 说明
localizedNotificationMessages localizedNotificationMessage 集合 此通知消息模板的本地化消息列表。

JSON 表示形式

下面是资源的 JSON 表示形式。

{
  "@odata.type": "#microsoft.graph.notificationMessageTemplate",
  "id": "String (identifier)",
  "lastModifiedDateTime": "String (timestamp)",
  "displayName": "String",
  "description": "String",
  "defaultLocale": "String",
  "brandingOptions": "String",
  "roleScopeTagIds": [
    "String"
  ]
}