description | ms.date | ms.topic | title |
---|---|---|---|
JSON schema reference for the metadata field Microsoft.DSC |
05/07/2024 |
reference |
Microsoft.DSC metadata property schema reference |
Metadata properties used and returned by DSC for configuration and resource operations.
Blah
Defines the duration of a DSC operation against a configuration document or resource instance as a
string following the format defined in ISO8601 ABNF for duration
.
For example, PT0.611216S
represents a duration of about 0.61
seconds.
SchemaDialect: https://json-schema.org/draft/2020-12/schema
SchemaID: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/metadata/Microsoft.DSC/duration.json
Type: string
Format: duration
Defines the end date and time for the DSC operation as a timestamp following the format defined in
RFC3339, section 5.6 (see date-time
).
For example: 2024-04-14T08:49:51.395686600-07:00
SchemaDialect: https://json-schema.org/draft/2020-12/schema
SchemaID: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/metadata/Microsoft.DSC/endDateTime.json
Type: string
Format: date-time
Defines whether DSC actually applied an operation to the configuration or was run in WhatIf
mode.
This property is always Actual
for Get
, Test
, and Export
operations. For Set
operations,
this value is WhatIf
when DSC is invoked with the --whatIf
argument.
SchemaDialect: https://json-schema.org/draft/2020-12/schema
SchemaID: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/metadata/Microsoft.DSC/executionType.json
Type: string
ValidValues: [Actual, WhatIf]
Defines the operation that DSC applied to the configuration document: Get
, Set
, Test
, or
Export
.
SchemaDialect: https://json-schema.org/draft/2020-12/schema
SchemaID: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/metadata/Microsoft.DSC/operation.json
Type: string
ValidValues: [Get, Set, Test, Export]
Defines the security context that DSC was run under. If the value for this metadata property is
Elevated
, DSC was run as root
(non-Windows) or an elevated session with Administrator
privileges (on Windows). If the value is Restricted
, DSC was run as a normal user or account in a
non-elevated session.
SchemaDialect: https://json-schema.org/draft/2020-12/schema
SchemaID: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/metadata/Microsoft.DSC/securityContext.json
Type: string
ValidValues: [Current, Elevated, Restricted]
Defines the start date and time for the DSC operation as a timestamp following the format defined
in RFC3339, section 5.6 (see date-time
).
For example: 2024-04-14T08:49:51.395686600-07:00
SchemaDialect: https://json-schema.org/draft/2020-12/schema
SchemaID: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/metadata/Microsoft.DSC/startDatetime.json
Type: string
Format: date-time
Defines the version of DSC that ran the command. This value is always the semantic version of the
DSC command, like 3.0.0-preview.7
.
SchemaDialect: https://json-schema.org/draft/2020-12/schema
SchemaID: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/metadata/Microsoft.DSC/version.json
Type: object