- NAME
-
- gcloud compute security-policies - read and manipulate Cloud Armor security policies
- SYNOPSIS
-
-
gcloud compute security-policiesGROUP|COMMAND[GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- Read and manipulate Cloud Armor security policies.
Security policies are used to control access to Google Cloud HTTP/HTTPS load balancers.
For more information about security policies, see Security policies for HTTPS load balancing .
See also: Security policies API .
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--help.Run
$ gcloud helpfor details. - GROUPS
-
is one of the following:GROUP-
rules - Read and manipulate Compute Engine security policies rules.
-
- COMMANDS
-
is one of the following:COMMAND-
add-layer7-ddos-defense-threshold-config - Add a layer7 ddos defense threshold config to a Compute Engine security policy.
-
add-user-defined-field - Add a user defined field to a Compute Engine security policy.
-
create - Create a Compute Engine security policy.
-
delete - Delete security policies.
-
describe - Describe a Compute Engine security policy.
-
export - Export security policy configs into YAML or JSON files.
-
import - Import security policy configs into your project.
-
list - List Google Compute Engine security policies.
-
list-preconfigured-expression-sets - List all available preconfigured expression sets.
-
remove-layer7-ddos-defense-threshold-config - Remove a layer7 ddos defense threshold config from a Compute Engine security policy.
-
remove-user-defined-field - Remove a user defined field from a Compute Engine security policy.
-
update - Update a Compute Engine security policy.
-
- NOTES
- These variants are also available:
gcloud alpha compute security-policiesgcloud beta compute security-policiesgcloud preview compute security-policies
gcloud compute security-policies
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.

