deviceHealthScriptPolicyState resource type
Namespace: microsoft.graph
Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Contains properties for policy run state of the device health script.
Methods
Method | Return Type | Description |
---|---|---|
List deviceHealthScriptPolicyStates | deviceHealthScriptPolicyState collection | List properties and relationships of the deviceHealthScriptPolicyState objects. |
Get deviceHealthScriptPolicyState | deviceHealthScriptPolicyState | Read properties and relationships of the deviceHealthScriptPolicyState object. |
Create deviceHealthScriptPolicyState | deviceHealthScriptPolicyState | Create a new deviceHealthScriptPolicyState object. |
Delete deviceHealthScriptPolicyState | None | Deletes a deviceHealthScriptPolicyState. |
Update deviceHealthScriptPolicyState | deviceHealthScriptPolicyState | Update the properties of a deviceHealthScriptPolicyState object. |
Properties
Property | Type | Description |
---|---|---|
id | String | Key of the device health script policy state is a concatenation of the MT sideCar policy Id and Intune device Id |
deviceId | String | The Intune device Id |
policyId | String | The MT sideCar policy Id |
deviceName | String | Display name of the device |
policyName | String | Display name of the device health script |
userName | String | Name of the user whom ran the device health script |
osVersion | String | Value of the OS Version in string |
detectionState | runState | Detection state from the lastest device health script execution. Possible values are: unknown , success , fail , scriptError , pending , notApplicable . |
lastStateUpdateDateTime | DateTimeOffset | The last timestamp of when the device health script executed |
expectedStateUpdateDateTime | DateTimeOffset | The next timestamp of when the device health script is expected to execute |
lastSyncDateTime | DateTimeOffset | The last time that Intune Managment Extension synced with Intune |
preRemediationDetectionScriptOutput | String | Output of the detection script before remediation |
preRemediationDetectionScriptError | String | Error from the detection script before remediation |
remediationScriptError | String | Error output of the remediation script |
postRemediationDetectionScriptOutput | String | Detection script output after remediation |
postRemediationDetectionScriptError | String | Error from the detection script after remediation |
remediationState | remediationState | Remediation state from the lastest device health script execution. Possible values are: unknown , skipped , success , remediationFailed , scriptError , unknownFutureValue . |
assignmentFilterIds | String collection | A list of the assignment filter ids used for health script applicability evaluation |
Relationships
None
JSON Representation
Here is a JSON representation of the resource.
{
"@odata.type": "#microsoft.graph.deviceHealthScriptPolicyState",
"id": "String (identifier)",
"deviceId": "String",
"policyId": "String",
"deviceName": "String",
"policyName": "String",
"userName": "String",
"osVersion": "String",
"detectionState": "String",
"lastStateUpdateDateTime": "String (timestamp)",
"expectedStateUpdateDateTime": "String (timestamp)",
"lastSyncDateTime": "String (timestamp)",
"preRemediationDetectionScriptOutput": "String",
"preRemediationDetectionScriptError": "String",
"remediationScriptError": "String",
"postRemediationDetectionScriptOutput": "String",
"postRemediationDetectionScriptError": "String",
"remediationState": "String",
"assignmentFilterIds": [
"String"
]
}