> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Inbound Policy

Create an inbound policy.

## Basic Parameters

<div className="integrations-table">
  | Parameter            | Description                                                                                                                                                                              |
  | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Action               | The type of the created policy.                                                                                                                                                          |
  | Expires At           | The expiry time of the rule.                                                                                                                                                             |
  | Local Entity ID      | The ID of the local entity.                                                                                                                                                              |
  | Local Processes      | A list of the local processes.                                                                                                                                                           |
  | Ports List           | A list of protocol and port objects in the following format:<br /><pre><code>\[<br />    \{<br />      "ports": "143,151",<br />      "protocolType": 6<br />    }<br />  ]</code></pre> |
  | Remote Entities' IDs | The IDs of the remote entities.                                                                                                                                                          |
  | State                | The state of the created policy.                                                                                                                                                         |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter          | Description                       |
  | ------------------ | --------------------------------- |
  | Description        | The description of the new rule.  |
  | Excluded Local IDs | A list of the excluded local IDs. |
</div>

## Example Output

```json theme={"dark"}
{
	"item": {
		"id": "<string>",
		"localEntityId": "<string>",
		"action": 1,
		"createdBy": {
			"createdBy": {
				"id": "<string>",
				"name": "<string>"
			},
			"userRole": 2,
			"enforcementSource": 11
		},
		"description": "<string>",
		"direction": 2,
		"parentId": "<string>",
		"parentType": 2,
		"portsList": [
			{
				"ports": "<string>",
				"protocolType": 11
			}
		],
		"remoteEntityIdsList": [
			"<string>"
		],
		"state": 2,
		"createdAt": 9277027503,
		"updatedAt": 1752534829452,
		"expiresAt": 2138246098781,
		"localProcessesList": [
			"<string>"
		],
		"servicesList": [],
		"excludedLocalIdsList": [],
		"updatedBy": {
			"id": "<string>",
			"name": "<string>"
		},
		"approvedBy": {
			"id": "<string>",
			"name": "<string>"
		},
		"ruleClass": 4,
		"ipSecOpt": 0,
		"srcUsersList": [],
		"multipleLocalEntityIdsList": [],
		"parentSwitchRuleId": "<string>",
		"parentSwitchRuleType": 2,
		"name": "<string>",
		"changeTicket": "<string>",
		"context": 2,
		"aeOverridden": false
	}
}
```

## Workflow Library Example

[Create Inbound Policy with Zero Networks and Send Results Via Email](https://library.blinkops.com/workflows/create-inbound-policy-with-zero-networks-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-inbound-policy-with-zero-networks-and-send-results-via-email/canvas" />
</div>
