gcloud beta compute security-policies add-user-defined-field

NAME
gcloud beta compute security-policies add-user-defined-field - add a user defined field to a Compute Engine security policy
SYNOPSIS
gcloud beta compute security-policies add-user-defined-fieldNAME--base=BASE--offset=OFFSET--size=SIZE--user-defined-field-name=USER_DEFINED_FIELD_NAME[--mask=MASK][--region=REGION][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA)gcloud beta compute security-policiesadd-user-defined-field is used to add user defined fields to securitypolicies.
EXAMPLES
To add a user defined field run this:
gcloudbetacomputesecurity-policiesadd-user-defined-fieldSECURITY_POLICY--user-defined-field-name=my-field--base=ipv6--offset=10--size=3
POSITIONAL ARGUMENTS
NAME
Name of the security policy to update.
REQUIRED FLAGS
--base=BASE
The base relative to which offset is measured.BASE mustbe one of:ipv4,ipv6,tcp,udp.
--offset=OFFSET
Offset of the first byte of the field (in network byte order) relative to base.
--size=SIZE
Size of the field in bytes. Valid values: 1-4.
--user-defined-field-name=USER_DEFINED_FIELD_NAME
The name for the user defined field.
OPTIONAL FLAGS
--mask=MASK
If specified, apply this mask (bitwise AND) to the field to ignore bits beforematching. Encoded as a hexadecimal number (starting with "0x").
--region=REGION
Region of the security policy to update. Overrides the defaultcompute/region property value for this command invocation.
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 help for details.

NOTES
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcomputesecurity-policiesadd-user-defined-field
gcloudalphacomputesecurity-policiesadd-user-defined-field

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.