gcloud alpha compute security-policies

NAME
gcloud alpha compute security-policies - read and manipulate Cloud Armor security policies
SYNOPSIS
gcloud alpha compute security-policiesGROUP |COMMAND[GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) 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
(ALPHA) Read and manipulate Compute Engine security policies rules.
COMMANDS
COMMAND is one of the following:
add-layer7-ddos-defense-threshold-config
(ALPHA) Add a layer7 ddos defense threshold config to a ComputeEngine security policy.
add-user-defined-field
(ALPHA) Add a user defined field to a Compute Engine securitypolicy.
create
(ALPHA) Create a Compute Engine security policy.
delete
(ALPHA) Delete security policies.
describe
(ALPHA) Describe a Compute Engine security policy.
export
(ALPHA) Export security policy configs into YAML or JSON files.
import
(ALPHA) Import security policy configs into your project.
list
(ALPHA) List Google Compute Engine security policies.
list-preconfigured-expression-sets
(ALPHA) List all available preconfigured expression sets.
remove-layer7-ddos-defense-threshold-config
(ALPHA) Remove a layer7 ddos defense threshold config from aCompute Engine security policy.
remove-user-defined-field
(ALPHA) Remove a user defined field from a Compute Engine securitypolicy.
update
(ALPHA) Update a Compute Engine security policy.
NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudcomputesecurity-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.