gdcloud network project-network-policies update

NAME

gdcloud network project-network-policies update - Update project network policies.

SYNOPSIS

gdcloud network project-network-policies update POLICY_NAME [flags]

EXAMPLES

To update the source project of an existing ingress rule from 'project-1' to 'project-2', run:
    gdcloud network project-network-policies update example-policy \
      --policy-type=Ingress \
      --source-projects=project-2

To update the source project of an existing ingress rule from 'project-1' to all projects, run:
    gdcloud network project-network-policies update example-policy \
      --policy-type=Ingress \
      --source-projects=''

OPTIONAL FLAGS

      --destination-cidrs string         Destination IPv4 CIDR range to allow traffic to. Can only be specified if 'policy-type' is 'Egress'.
      --destination-projects string      Name of the destination project in the organization to allow traffic to. If not specified, traffic to all project workloads is allowed. Can only be specified if 'policy-type' is 'Egress'.
      --layer4-configs strings           A list of protocol and port combinations to which the policy applies.
                                         This flag can be specified multiple times. For example:
                                             --layer4-configs=udp:53 --layer4-configs=tcp:8080
                                         A comma-separated list is also supported. For example:
                                             --layer4-configs=udp:53,tcp:8080
                                         To allow all ports for a protocol, specify only the protocol. For example:
                                             --layer4-configs=tcp
                                         To allow all protocols and ports, use '--layer4-configs=all'.
                                         This flag cannot be used with '--target-managed-services'.
      --policy-type string               The direction of traffic for the project network policy. Supported values are "Ingress" and "Egress". Defaults to "Ingress" if not specified.
      --source-cidrs string              Source IPv4 CIDR range to allow traffic from. Can only be specified if 'policy-type' is 'Ingress'.
      --source-projects string           Name of the source project in the organization to allow traffic from. If not specified, traffic from all project workloads is allowed. Can only be specified if 'policy-type' is 'Ingress'.
      --target-managed-services string   Name of the managed service to apply this policy on. If omitted, this policy applies to all user workloads within the project.

GDCLOUD WIDE FLAGS

These flags are available to all commands: --configuration, --format, --help, --project, --quiet.

For more information, see the gdcloud CLI reference overview page.