摘要
指示实例是否处于所需状态。
元数据
SchemaDialect: https://json-schema.org/draft/2020-12/schema
SchemaID: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/resource/properties/rebootRequested.json
Type: [boolean, 'null']
ReadOnly: true
描述
属性 _rebootRequested
指示资源实例是否需要在设置操作后重新启动。
如果资源在设置操作期间确定节点需要在状态更改完全生效之前重新启动,则它应返回实例的数据,并将 _rebootRequested
属性设置为 true
。 如果资源从设置操作返回实例,并将 _rebootRequested
属性设置为 true
,DSC 将生成重启通知。
如果资源从未 _rebootRequested
定义 属性的 set 操作返回实例,或者如果属性值为 false
,DSC 不会生成重启通知。
资源必须定义此属性才能使用 DSC 的内置重启请求通知。
此属性为只读。 资源返回具有此属性的实例,但所需状态不能包含它。
若要将此属性添加到资源的实例架构,请使用以下代码片段定义 属性:
"_rebootRequested": {
"$ref": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/resource/properties/rebootRequested.json"
}