Access control
CREATE NETWORK POLICY
Reference and syntax for the CREATE NETWORK POLICY command.
Creates a new network policy.
For more information, see Network policies.
Syntax
Parameters
Parameter | Description |
---|---|
<network_policy_name> | The name of the network policy. Must start with a letter, and may contain only alphanumeric and underscore(_) characters. |
<allowed_ip> | An optional comma-separated and quoted list of IP addresses to allow in the created network policy. |
<blocked_ip> | An optional comma-separated and quoted list of IP addresses to block in the created network policy. |
<description> | An optional description for the created network policy. |
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: