> For the complete documentation index, see [llms.txt](https://docs.snowddl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snowddl.com/basic/yaml-configs/network-rule.md).

# NETWORK RULE

Config path: `/<database>/<schema>/network_rule/<name>.yaml`

Example:

```yaml
type: IPV4
mode: INGRESS
value_list:
  - 192.168.2.0/24
  - 192.168.1.99
```

```yaml
type: HOST_PORT
mode: EGRESS
value_list:
  - example.com
  - company.com:443
```

## Schema

* <mark style="background-color:red;">**type**</mark> (str) - network rule type (`IPV4`, `HOST_PORT`, etc.)
* <mark style="background-color:red;">**mode**</mark> (str) - restriction mode (`INGRESS`, `EGRESS`, `INTERNAL_STAGE`)
* **value\_list** (list)
  * *{items}* (str) - network identifiers that will be allowed or blocked
* **comment** (str)

## Links

* [CREATE NETWORK RULE](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule)
* [SHOW NETWORK RULES](https://docs.snowflake.com/en/sql-reference/sql/show-network-rules)
* [DESC NETWORK RULE](https://docs.snowflake.com/en/sql-reference/sql/desc-network-rule)
* [Parser & JSON Schema (GitHub)](https://github.com/littleK0i/SnowDDL/blob/master/snowddl/parser/network_rule.py)
