qna 资源类型

命名空间:microsoft.graph.search

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

表示 Microsoft 搜索 中 Q&A) (问答。 Q&搜索结果页中的管理答案结果为特定搜索关键字提供答案。 Q&As 允许管理员直接在搜索中回答用户的问题,而不是提供指向网页的链接。 Q&A 具有许多属性,允许管理员在其组织中使通用资源更易于访问。

继承自 searchAnswer

方法

方法 返回类型 说明
列出 qnas microsoft.graph.search.qna 集合 获取 qna 对象及其属性的列表。
创建 qna microsoft.graph.search.qna 创建新的 qna 对象。
获取 qna microsoft.graph.search.qna 读取 qna 对象的属性和关系。
更新 qna microsoft.graph.search.qna 更新 qna 对象的属性。
删除 qna 删除 qna 对象。

属性

属性 类型 说明
availabilityEndDateTime DateTimeOffset QnA 停止显示为搜索结果的日期和时间。 null设置为 始终可用。 时间戳类型使用 ISO 8601 格式表示日期和时间信息,并且始终采用 UTC 格式。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z
availabilityStartDateTime DateTimeOffset QnA 开始显示为搜索结果的日期和时间。 null设置为 始终可用。 时间戳类型使用 ISO 8601 格式表示日期和时间信息,并且始终采用 UTC 格式。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z
说明 String 搜索结果中显示的答案。 继承自 searchAnswer
displayName String 搜索结果中显示的问题。 继承自 searchAnswer
groupIds String collection 能够查看此 QnA 的安全组列表。
id String QnA 的唯一标识符 (GUID) 。 继承自 searchAnswer
isSuggested 布尔值 True 如果用户或 Microsoft 向管理员建议此 QnA,则为 。只读。
keywords microsoft.graph.search.answerKeyword 触发此 QnA 的关键字显示在搜索结果中。
languageTags 字符串集合 可在其中查看此 QnA 的地理特定语言名称的列表。 每个语言标记值都遵循 {language}-{region} 模式。 例如, en-us 是美国中使用的英语。 有关可能值的列表,请参阅 支持的语言标记
lastModifiedBy microsoft.graph.identitySet 创建或上次修改 QnA 的用户的详细信息。 继承自 searchAnswer。 只读。
lastModifiedDateTime DateTimeOffset QnA 创建或上次编辑的日期和时间。 继承自 searchAnswer。 此为只读属性。
平台 microsoft.graph.devicePlatformType 集合 能够查看此 QnA 的设备和操作系统列表。 可能的值是:androidandroidForWorkiosmacOSwindowsPhone81windowsPhone81AndLaterwindows10AndLaterandroidWorkProfileunknownandroidASOPandroidMobileApplicationManagementiOSMobileApplicationManagementunknownFutureValue
state microsoft.graph.search.answerState QnA 的状态。 可能的值是:publisheddraftexcludedunknownFutureValue
targetedVariations microsoft.graph.search.answerVariant 集合 不同国家/地区或设备的 QnA 变体。 需要根据用户设备、国家/地区或两者向用户显示不同内容时使用。 日期和组设置适用于所有变体。
webUrl String QnA 的 URL 链接。 当用户从搜索结果中选择此 QnA 时,他们会被定向到指定的 URL。 继承自 searchAnswer

关系

无。

JSON 表示形式

以下 JSON 表示形式显示了资源类型。

{
  "@odata.type": "#microsoft.graph.search.qna",
  "availabilityEndDateTime": "String (timestamp)",
  "availabilityStartDateTime": "String (timestamp)",
  "description": "String",
  "displayName": "String",
  "groupIds": ["String"],
  "id": "String (identifier)",
  "isSuggested": "Boolean",
  "keywords": {"@odata.type": "microsoft.graph.search.answerKeyword"},
  "languageTags": ["String"],
  "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)",
  "platforms": ["String"],
  "state": "String",
  "targetedVariations": [{"@odata.type": "microsoft.graph.search.answerVariant"}],
  "webUrl": "String"
}