DSC 资源_rebootRequested属性架构

概要

指示实例是否处于所需状态。

元数据

SchemaDialect: https://json-schema.org/draft/2020-12/schema
SchemaID:      https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.0/resource/properties/rebootRequested.json
Type:          [boolean, 'null']
ReadOnly:      true

DESCRIPTION

canonical _rebootRequested 属性指示资源实例在 set作后是否需要重启。

如果资源在 set作期间确定节点需要在状态更改完全生效之前重启,则它应返回属性设置为 true的实例数据_rebootRequested。 如果资源从 set作中返回一个实例, _rebootRequested 并且属性设置为 true,DSC 将生成重启通知。

如果资源在未定义属性的情况下 _rebootRequested 从 set作返回实例,或者属性值为 false,DSC 不会生成重启通知。

资源必须定义此属性才能使用 DSC 的内置重启请求通知。

此属性为只读。 资源返回具有此属性的实例,但 desired state 不能包含它。

要将此属性添加到资源的实例架构中,请使用以下代码段定义该属性:

"_rebootRequested": {
  "$ref": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3/resource/properties/rebootRequested.json"
}