Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Important: Microsoft supports Intune /beta APIs, but they are subject to more frequent change. Microsoft recommends using version v1.0 when possible. Check an API's availability in version v1.0 using the Version selector.
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Contains properties for device run state of the device compliance script.
Methods
| Method | Return Type | Description |
|---|---|---|
| List deviceComplianceScriptDeviceStates | deviceComplianceScriptDeviceState collection | List properties and relationships of the deviceComplianceScriptDeviceState objects. |
| Get deviceComplianceScriptDeviceState | deviceComplianceScriptDeviceState | Read properties and relationships of the deviceComplianceScriptDeviceState object. |
| Create deviceComplianceScriptDeviceState | deviceComplianceScriptDeviceState | Create a new deviceComplianceScriptDeviceState object. |
| Delete deviceComplianceScriptDeviceState | None | Deletes a deviceComplianceScriptDeviceState. |
| Update deviceComplianceScriptDeviceState | deviceComplianceScriptDeviceState | Update the properties of a deviceComplianceScriptDeviceState object. |
Properties
| Property | Type | Description |
|---|---|---|
| id | String | Key of the device compliance script device state entity. This property is read-only. |
| detectionState | runState | Detection state from the lastest device compliance script execution. Possible values are: unknown, success, fail, scriptError, pending, notApplicable. |
| lastStateUpdateDateTime | DateTimeOffset | The last timestamp of when the device compliance script executed |
| expectedStateUpdateDateTime | DateTimeOffset | The next timestamp of when the device compliance script is expected to execute |
| lastSyncDateTime | DateTimeOffset | The last time that Intune Managment Extension synced with Intune |
| scriptOutput | String | Output of the detection script |
| scriptError | String | Error from the detection script |
Relationships
| Relationship | Type | Description |
|---|---|---|
| managedDevice | managedDevice | The managed device on which the device compliance script executed |
JSON Representation
Here is a JSON representation of the resource.
{
"@odata.type": "#microsoft.graph.deviceComplianceScriptDeviceState",
"id": "String (identifier)",
"detectionState": "String",
"lastStateUpdateDateTime": "String (timestamp)",
"expectedStateUpdateDateTime": "String (timestamp)",
"lastSyncDateTime": "String (timestamp)",
"scriptOutput": "String",
"scriptError": "String"
}