gdcloud network project-network-policies update

NOMBRE

gdcloud network project-network-policies update: actualiza las políticas de red de un proyecto.

SYNOPSIS

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

EJEMPLOS

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=''

MARCAS OPCIONALES

      --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

Estas marcas están disponibles para todos los comandos: --configuration, --format, --help, --project y --quiet.

Para obtener más información, consulta la página Información general sobre la referencia de la CLI de gdcloud.