|
| 1 | +{ |
| 2 | + "$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json", |
| 3 | + "description": "Manage Windows Features on Demand (capabilities) using the DISM API.", |
| 4 | + "tags": [ |
| 5 | + "windows", |
| 6 | + "dism", |
| 7 | + "capability", |
| 8 | + "featureondemand", |
| 9 | + "fod" |
| 10 | + ], |
| 11 | + "type": "Microsoft.Windows/FeatureOnDemandList", |
| 12 | + "version": "0.1.0", |
| 13 | + "get": { |
| 14 | + "executable": "dism_dsc", |
| 15 | + "args": [ |
| 16 | + "get", |
| 17 | + "feature-on-demand" |
| 18 | + ], |
| 19 | + "input": "stdin", |
| 20 | + "requireSecurityContext": "elevated" |
| 21 | + }, |
| 22 | + "export": { |
| 23 | + "executable": "dism_dsc", |
| 24 | + "args": [ |
| 25 | + "export", |
| 26 | + "feature-on-demand" |
| 27 | + ], |
| 28 | + "input": "stdin", |
| 29 | + "requireSecurityContext": "elevated" |
| 30 | + }, |
| 31 | + "set": { |
| 32 | + "executable": "dism_dsc", |
| 33 | + "args": [ |
| 34 | + "set", |
| 35 | + "feature-on-demand" |
| 36 | + ], |
| 37 | + "input": "stdin", |
| 38 | + "implementsPretest": false, |
| 39 | + "return": "state", |
| 40 | + "requireSecurityContext": "elevated" |
| 41 | + }, |
| 42 | + "schema": { |
| 43 | + "embedded": { |
| 44 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 45 | + "$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/resources/Microsoft.Windows/FeatureOnDemandList/v0.1.0/schema.json", |
| 46 | + "title": "Windows Feature on Demand", |
| 47 | + "description": "Manage Windows Features on Demand (capabilities) using the DISM API. Supports get, set, and export operations.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft.windows/featureondemandlist/resource\n", |
| 48 | + "markdownDescription": "The `Microsoft.Windows/FeatureOnDemandList` resource enables you to manage Windows Features on Demand (capabilities) using the DISM API.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft.windows/featureondemandlist/resource\n", |
| 49 | + "type": "object", |
| 50 | + "additionalProperties": false, |
| 51 | + "required": [ |
| 52 | + "capabilities" |
| 53 | + ], |
| 54 | + "properties": { |
| 55 | + "_restartRequired": { |
| 56 | + "type": "array", |
| 57 | + "title": "Restart required", |
| 58 | + "description": "Indicates that a system restart is required to complete the state change. Returned by the set operation when DISM reports that a reboot is needed.", |
| 59 | + "items": { |
| 60 | + "type": "object", |
| 61 | + "additionalProperties": true |
| 62 | + } |
| 63 | + }, |
| 64 | + "capabilities": { |
| 65 | + "type": "array", |
| 66 | + "title": "Capabilities", |
| 67 | + "description": "An array of Feature on Demand (capability) filters or information objects.", |
| 68 | + "items": { |
| 69 | + "type": "object", |
| 70 | + "additionalProperties": false, |
| 71 | + "properties": { |
| 72 | + "identity": { |
| 73 | + "type": "string", |
| 74 | + "title": "Capability identity", |
| 75 | + "description": "The identity of the Windows capability (Feature on Demand). Required for get and set operations. For export operation, this is optional and wildcards (*) are supported for case-insensitive filtering." |
| 76 | + }, |
| 77 | + "_exist": { |
| 78 | + "type": "boolean", |
| 79 | + "title": "Exists", |
| 80 | + "description": "Indicates whether the capability exists on the system. Set to false when the requested capability name is not recognized by DISM." |
| 81 | + }, |
| 82 | + "state": { |
| 83 | + "type": "string", |
| 84 | + "enum": [ |
| 85 | + "NotPresent", |
| 86 | + "UninstallPending", |
| 87 | + "Staged", |
| 88 | + "Removed", |
| 89 | + "Installed", |
| 90 | + "InstallPending", |
| 91 | + "Superseded", |
| 92 | + "PartiallyInstalled" |
| 93 | + ], |
| 94 | + "title": "Capability state", |
| 95 | + "description": "The current state of the capability. For set operations, this property is required and only Installed and NotPresent are accepted; other states are returned by get and export operations and are not valid inputs for set." |
| 96 | + }, |
| 97 | + "displayName": { |
| 98 | + "type": "string", |
| 99 | + "title": "Display name", |
| 100 | + "description": "The display name of the capability. Returned by get and export operations. For export, wildcards (*) are supported for case-insensitive filtering." |
| 101 | + }, |
| 102 | + "description": { |
| 103 | + "type": "string", |
| 104 | + "title": "Description", |
| 105 | + "description": "The description of the capability. Returned by get and export operations. For export, wildcards (*) are supported for case-insensitive filtering." |
| 106 | + }, |
| 107 | + "downloadSize": { |
| 108 | + "type": "integer", |
| 109 | + "title": "Download size", |
| 110 | + "description": "The download size of the capability in bytes. Returned by get and export operations." |
| 111 | + }, |
| 112 | + "installSize": { |
| 113 | + "type": "integer", |
| 114 | + "title": "Install size", |
| 115 | + "description": "The install size of the capability in bytes. Returned by get and export operations." |
| 116 | + } |
| 117 | + } |
| 118 | + } |
| 119 | + } |
| 120 | + } |
| 121 | + } |
| 122 | + } |
| 123 | +} |
0 commit comments