vpnTrafficRule 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.

VPN Traffic Rule definition.

Properties

Property Type Description
name String Name.
protocols Int32 Protocols (0-255). Valid values 0 to 255
localPortRanges numberRange collection Local port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.
remotePortRanges numberRange collection Remote port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.
localAddressRanges iPv4Range collection Local address range. This collection can contain a maximum of 500 elements.
remoteAddressRanges iPv4Range collection Remote address range. This collection can contain a maximum of 500 elements.
appId String App identifier, if this traffic rule is triggered by an app.
appType vpnTrafficRuleAppType App type, if this traffic rule is triggered by an app. Possible values are: none, desktop, universal.
routingPolicyType vpnTrafficRuleRoutingPolicyType When app triggered, indicates whether to enable split tunneling along this route. Possible values are: none, splitTunnel, forceTunnel.
claims String Claims associated with this traffic rule.
vpnTrafficDirection vpnTrafficDirection Specify whether the rule applies to inbound traffic or outbound traffic. Possible values are: outbound, inbound, unknownFutureValue.

Relationships

None

JSON Representation

Here is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.vpnTrafficRule",
  "name": "String",
  "protocols": 1024,
  "localPortRanges": [
    {
      "@odata.type": "microsoft.graph.numberRange",
      "lowerNumber": 1024,
      "upperNumber": 1024
    }
  ],
  "remotePortRanges": [
    {
      "@odata.type": "microsoft.graph.numberRange",
      "lowerNumber": 1024,
      "upperNumber": 1024
    }
  ],
  "localAddressRanges": [
    {
      "@odata.type": "microsoft.graph.iPv4Range",
      "lowerAddress": "String",
      "upperAddress": "String"
    }
  ],
  "remoteAddressRanges": [
    {
      "@odata.type": "microsoft.graph.iPv4Range",
      "lowerAddress": "String",
      "upperAddress": "String"
    }
  ],
  "appId": "String",
  "appType": "String",
  "routingPolicyType": "String",
  "claims": "String",
  "vpnTrafficDirection": "String"
}