1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-17 14:26:34 +00:00
gcloud-help/gcloud/alpha/compute/security-policies/update
2022-07-13 09:59:38 +00:00

92 lines
3.4 KiB
Text

NAME
gcloud alpha compute security-policies update - update a Compute Engine
security policy
SYNOPSIS
gcloud alpha compute security-policies update NAME
[--ddos-protection=DDOS_PROTECTION] [--description=DESCRIPTION]
[--enable-layer7-ddos-defense] [--enable-ml]
[--json-parsing=JSON_PARSING]
[--layer7-ddos-defense-rule-visibility=VISIBILITY_TYPE]
[--log-level=LOG_LEVEL]
[--network-ddos-protection=NETWORK_DDOS_PROTECTION]
[--recaptcha-redirect-site-key=RECAPTCHA_REDIRECT_SITE_KEY]
[--global | --region=REGION] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) gcloud alpha compute security-policies update is used to update
security policies.
EXAMPLES
To update the description run this:
$ gcloud alpha compute security-policies update SECURITY_POLICY \
--description='new description'
POSITIONAL ARGUMENTS
NAME
Name of the security policy to update.
FLAGS
--ddos-protection=DDOS_PROTECTION
The DDoS protection level for network load balancing and instances with
external IPs. DDOS_PROTECTION must be one of: STANDARD, ADVANCED.
--description=DESCRIPTION
An optional, textual description for the security policy.
--enable-layer7-ddos-defense
Whether to enable Cloud Armor Layer 7 DDoS Defense Adaptive Protection.
--enable-ml
Whether to enable Cloud Armor Adaptive Protection
--json-parsing=JSON_PARSING
The JSON parsing behavior for this rule. Must be one of the following
values: [DISABLED, STANDARD]. JSON_PARSING must be one of: DISABLED,
STANDARD.
--layer7-ddos-defense-rule-visibility=VISIBILITY_TYPE
The visibility type indicates whether the rules are opaque or
transparent. VISIBILITY_TYPE must be one of: STANDARD, PREMIUM.
--log-level=LOG_LEVEL
The level of detail to display for WAF logging. LOG_LEVEL must be one
of: NORMAL, VERBOSE.
--network-ddos-protection=NETWORK_DDOS_PROTECTION
The DDoS protection level for network load balancing and instances with
external IPs. NETWORK_DDOS_PROTECTION must be one of: STANDARD,
ADVANCED.
--recaptcha-redirect-site-key=RECAPTCHA_REDIRECT_SITE_KEY
The reCAPTCHA site key to be used for rules using the redirect action
and the google-recaptcha redirect type under the security policy.
At most one of these can be specified:
--global
If set, the security policy is global.
--region=REGION
Region of the security policy to update. Overrides the default
compute/region property value for this command invocation.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist. These variants are also available:
$ gcloud compute security-policies update
$ gcloud beta compute security-policies update