NAME
gdcloud network project-network-policies update - Update project network policies.
SYNOPSIS
gdcloud network project-network-policies update POLICY_NAME [flags]
ESEMPI
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=''
FLAG FACOLTATIVI
--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.
FLAG A LIVELLO DI GDCLOUD
Questi flag sono disponibili per tutti i comandi: --configuration, --format, --help, --project, --quiet.
Per saperne di più, consulta la pagina di panoramica del riferimento di CLI gdcloud.