text: ---
  title: "Create networkIPv4ConfigurationManagementCondition"
  description: "Create a new networkIPv4ConfigurationManagementCondition object."
  author: "dougeby"
  localization_priority: Normal
  ms.prod: "intune"
  doc_type: apiPageType
  ---
  
  # Create networkIPv4ConfigurationManagementCondition
  
  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](https://go.microsoft.com/fwlink/?linkid=839381) for the tenant.
  
  Create a new [networkIPv4ConfigurationManagementCondition](../resources/intune-fencing-networkipv4configurationmanagementcondition.md) object.
  
  ## Prerequisites
  One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
  
  |Permission type|Permissions (from most to least privileged)|
  |:---|:---|
  |Delegated (work or school account)|DeviceManagementConfiguration.ReadWrite.All|
  |Delegated (personal Microsoft account)|Not supported.|
  |Application|DeviceManagementConfiguration.ReadWrite.All|
  
  ## HTTP Request
  <!-- {
    "blockType": "ignored"
  }
  -->
  ``` http
  POST /deviceManagement/managementConditions
  POST /deviceManagement/managementConditions/{managementConditionId}/managementConditionStatements/{managementConditionStatementId}/managementConditions
  ```
  
  ## Request headers
  |Header|Value|
  |:---|:---|
  |Authorization|Bearer &lt;token&gt; Required.|
  |Accept|application/json|
  
  ## Request body
  In the request body, supply a JSON representation for the networkIPv4ConfigurationManagementCondition object.
  
  The following table shows the properties that are required when you create the networkIPv4ConfigurationManagementCondition.
  
  |Property|Type|Description|
  |:---|:---|:---|
  |id|String|Unique identifier for the management condition. System generated value assigned when created. Inherited from [managementCondition](../resources/intune-fencing-managementcondition.md)|
  |uniqueName|String|Unique name for the management condition. Used in management condition expressions. Inherited from [managementCondition](../resources/intune-fencing-managementcondition.md)|
  |displayName|String|The admin defined name of the management condition. Inherited from [managementCondition](../resources/intune-fencing-managementcondition.md)|
  |description|String|The admin defined description of the management condition. Inherited from [managementCondition](../resources/intune-fencing-managementcondition.md)|
  |createdDateTime|DateTimeOffset|The time the management condition was created. Generated service side. Inherited from [managementCondition](../resources/intune-fencing-managementcondition.md)|
  |modifiedDateTime|DateTimeOffset|The time the management condition was last modified. Updated service side. Inherited from [managementCondition](../resources/intune-fencing-managementcondition.md)|
  |eTag|String|ETag of the management condition. Updated service side. Inherited from [managementCondition](../resources/intune-fencing-managementcondition.md)|
  |applicablePlatforms|[devicePlatformType](../resources/intune-shared-deviceplatformtype.md) collection|The applicable platforms for this management condition. Inherited from [managementCondition](../resources/intune-fencing-managementcondition.md). Possible values are: `android`, `androidForWork`, `iOS`, `macOS`, `windowsPhone81`, `windows81AndLater`, `windows10AndLater`, `androidWorkProfile`, `unknown`.|
  |ipV4Prefix|String|The IPv4 subnet to be connected to. e.g. 10.0.0.0/8|
  |ipV4Gateway|String|The IPv4 gateway address. e.g. 10.0.0.0|
  |ipV4DHCPServer|String|The IPv4 address of the DHCP server for the adapter.|
  |ipV4DNSServerList|String collection|The IPv4 DNS servers configured for the adapter.|
  |dnsSuffixList|String collection|Valid DNS suffixes for the current network. e.g. seattle.contoso.com|
  
  
  
  ## Response
  If successful, this method returns a `201 Created` response code and a [networkIPv4ConfigurationManagementCondition](../resources/intune-fencing-networkipv4configurationmanagementcondition.md) object in the response body.
  
  ## Example
  
  ### Request
  Here is an example of the request.
  ``` http
  POST https://graph.microsoft.com/beta/deviceManagement/managementConditions
  Content-type: application/json
  Content-length: 529
  
  {
    "@odata.type": "#microsoft.graph.networkIPv4ConfigurationManagementCondition",
    "uniqueName": "Unique Name value",
    "displayName": "Display Name value",
    "description": "Description value",
    "eTag": "ETag value",
    "applicablePlatforms": [
      "androidForWork"
    ],
    "ipV4Prefix": "Ip V4Prefix value",
    "ipV4Gateway": "Ip V4Gateway value",
    "ipV4DHCPServer": "Ip V4DHCPServer value",
    "ipV4DNSServerList": [
      "Ip V4DNSServer List value"
    ],
    "dnsSuffixList": [
      "Dns Suffix List value"
    ]
  }
  ```
  
  ### 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
  HTTP/1.1 201 Created
  Content-Type: application/json
  Content-Length: 697
  
  {
    "@odata.type": "#microsoft.graph.networkIPv4ConfigurationManagementCondition",
    "id": "5e4a8284-8284-5e4a-8482-4a5e84824a5e",
    "uniqueName": "Unique Name value",
    "displayName": "Display Name value",
    "description": "Description value",
    "createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
    "modifiedDateTime": "2017-01-01T00:00:22.8983556-08:00",
    "eTag": "ETag value",
    "applicablePlatforms": [
      "androidForWork"
    ],
    "ipV4Prefix": "Ip V4Prefix value",
    "ipV4Gateway": "Ip V4Gateway value",
    "ipV4DHCPServer": "Ip V4DHCPServer value",
    "ipV4DNSServerList": [
      "Ip V4DNSServer List value"
    ],
    "dnsSuffixList": [
      "Dns Suffix List value"
    ]
  }
  ```
  
  
  
  
  
  
  