Skip to main content
Creates a new network policy. For more information, see Network policies.

Syntax

Parameters

Either ALLOWED_IP_LIST or BLOCKED_IP_LIST must be specified when creating a new network policy.

Example

The following command will create a network policy that allows IPs ‘4.5.6.1’ and ‘2.4.5.1’ and blocks the IP address ‘6.7.8.1’, with a description: