Get network security policy
get_network_security_policyRetrieve a network's security policy, including default and custom group rules, effective ingress/egress settings, and applied policy generations. Requires networking:read permission.
Instructions
Read default_policy, assigned group rules and desired/applied policy generations. Policy generation differs from network and port generations. effective_policy.default_ingress/default_egress describe implicit deny fallthrough after allow rules; they do not override default_policy=accept or mean every packet is denied. Custom group rules replace the network default on their assigned ports. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network_id | Yes | Exact lowercase UUID returned by an owned networking resource | |
| project_id | Yes | Exact lowercase UUID returned by an owned networking resource |