Create mobileThreatDefenseConnector

Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Create a new mobileThreatDefenseConnector object.

Prerequisites

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from most to least privileged)
Delegated (work or school account) DeviceManagementServiceConfig.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP Request

POST /deviceManagement/mobileThreatDefenseConnectors

Request headers

Header Value
Authorization Bearer <token> Required.
Accept application/json

Request body

In the request body, supply a JSON representation for the mobileThreatDefenseConnector object.

The following table shows the properties that are required when you create the mobileThreatDefenseConnector.

Property Type Description
id String Not yet documented
lastHeartbeatDateTime DateTimeOffset DateTime of last Heartbeat recieved from the Data Sync Partner
partnerState mobileThreatPartnerTenantState Data Sync Partner state for this account. Possible values are: unavailable, available, enabled, unresponsive.
androidEnabled Boolean For Android, set whether data from the data sync partner should be used during compliance evaluations
iosEnabled Boolean For IOS, get or set whether data from the data sync partner should be used during compliance evaluations
androidDeviceBlockedOnMissingPartnerData Boolean For Android, set whether Intune must receive data from the data sync partner prior to marking a device compliant
iosDeviceBlockedOnMissingPartnerData Boolean For IOS, set whether Intune must receive data from the data sync partner prior to marking a device compliant
partnerUnsupportedOsVersionBlocked Boolean Get or set whether to block devices on the enabled platforms that do not meet the minimum version requirements of the Data Sync Partner
partnerUnresponsivenessThresholdInDays Int32 Get or Set days the per tenant tolerance to unresponsiveness for this partner integration

Response

If successful, this method returns a 201 Created response code and a mobileThreatDefenseConnector object in the response body.

Example

Request

Here is an example of the request.

POST https://graph.microsoft.com/v1.0/deviceManagement/mobileThreatDefenseConnectors
Content-type: application/json
Content-length: 414

{
  "@odata.type": "#microsoft.graph.mobileThreatDefenseConnector",
  "lastHeartbeatDateTime": "2016-12-31T23:59:37.9174975-08:00",
  "partnerState": "available",
  "androidEnabled": true,
  "iosEnabled": true,
  "androidDeviceBlockedOnMissingPartnerData": true,
  "iosDeviceBlockedOnMissingPartnerData": true,
  "partnerUnsupportedOsVersionBlocked": true,
  "partnerUnresponsivenessThresholdInDays": 6
}

Response

Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 463

{
  "@odata.type": "#microsoft.graph.mobileThreatDefenseConnector",
  "id": "e4bede14-de14-e4be-14de-bee414debee4",
  "lastHeartbeatDateTime": "2016-12-31T23:59:37.9174975-08:00",
  "partnerState": "available",
  "androidEnabled": true,
  "iosEnabled": true,
  "androidDeviceBlockedOnMissingPartnerData": true,
  "iosDeviceBlockedOnMissingPartnerData": true,
  "partnerUnsupportedOsVersionBlocked": true,
  "partnerUnresponsivenessThresholdInDays": 6
}