gcloud beta compute org-security-policies update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta compute org-security-policies update - update a Compute Engine organization security policy
- SYNOPSIS
gcloud beta compute org-security-policies updateSECURITY_POLICY[--description=DESCRIPTION][--json-custom-content-types=[CONTENT_TYPE,…]][--json-parsing=JSON_PARSING][--log-level=LOG_LEVEL][--organization=ORGANIZATION][--user-ip-request-headers=[USER_IP_REQUEST_HEADER,…]][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)gcloud beta compute org-security-policiesupdateis used to update organization security policies. An organizationsecurity policy is a set of rules that controls access to various resources.- EXAMPLES
- To update an organization security policy with ID
to change the description to123456789, run:New descriptiongcloudbetacomputeorg-security-policiesupdate123456789--description='New description' - POSITIONAL ARGUMENTS
SECURITY_POLICY- Short name or ID of the security policy to update.
- FLAGS
--description=DESCRIPTION- An optional, textual description for the organization security policy.
--json-custom-content-types=[CONTENT_TYPE,…]- A comma-separated list of custom Content-Type header values to apply JSONparsing for preconfigured WAF rules. Only applicable when JSON parsing isenabled, like
. Whenconfiguring a Content-Type header value, only the type/subtype needs to bespecified, and the parameters should be excluded.--json-parsing=STANDARD --json-parsing=JSON_PARSING- The JSON parsing behavior for this rule. Must be one of the following values:[DISABLED, STANDARD, STANDARD_WITH_GRAPHQL].
JSON_PARSINGmust be one of:DISABLED,STANDARD,STANDARD_WITH_GRAPHQL. --log-level=LOG_LEVEL- The level of detail to display for WAF logging.
LOG_LEVELmust be one of:NORMAL,VERBOSE. --organization=ORGANIZATION- Organization in which the organization security policy is to be updated. Must beset if SECURITY_POLICY is the short name.
--user-ip-request-headers=[USER_IP_REQUEST_HEADER,…]- A comma-separated list of request header names to use for resolving the caller'suser IP address.
- 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 helpfor details. - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcomputeorg-security-policiesupdategcloudalphacomputeorg-security-policiesupdate
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-14 UTC.