gcloud compute security-policies Stay organized with collections Save and categorize content based on your preferences.
- 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 loadbalancers.
For more information about security policies, seeSecuritypolicies for HTTPS load balancing.
See also:Securitypolicies API.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--help.Run
$gcloud helpfor details. - GROUPS
is one of the following:GROUPrules- Read and manipulate Compute Engine security policies rules.
- COMMANDS
is one of the following:COMMANDadd-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 securitypolicy.
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:
gcloudalphacomputesecurity-policiesgcloudbetacomputesecurity-policies
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-05-07 UTC.