gcloud compute security-policies

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 help for details.

GROUPS
GROUP is one of the following:
rules
Read and manipulate Compute Engine security policies rules.
COMMANDS
COMMAND is one of the following:
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 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-policies
gcloudbetacomputesecurity-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.