nsc egress policy update

Update an egress policy from a JSON configuration file.

nsc egress policy update replaces the configuration of an existing tenant egress policy, identified by its <tag>, with the contents of a JSON configuration file. Use it to change which outbound network destinations your instances are allowed to reach once a policy is already in place — you can inspect the resulting allow/deny decisions with nsc egress logs.

Point --spec_file at a file containing the new policy definition. The tag can be provided either as the positional argument or inside the file itself; if the file also specifies a tag, the positional <tag> takes precedence for identifying which policy to update.

Usage

nsc egress policy update <tag> [--spec_file <path>]

Example

$ nsc egress policy update default --spec_file egress-policy.json

Options

--spec_file <path>

Path to a JSON file containing the egress policy configuration. The policy tag may be omitted from the file since it's already provided as the <tag> positional argument.