- NAME
-
- gcloud beta compute org-security-policies create - create a Compute Engine organization security policy
- SYNOPSIS
-
-
gcloud beta compute org-security-policies create(--folder=FOLDER|--organization=ORGANIZATION) [--description=DESCRIPTION] [--display-name=DISPLAY_NAME] [--file-format=FILE_FORMAT] [--short-name=SHORT_NAME] [--file-name=FILE_NAME|--type=SECURITY_POLICY_TYPE] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)gcloud beta compute org-security-policies createis used to create organization security policies. An organization security policy is a set of rules that controls access to various resources. - EXAMPLES
- To create an organization security policy under folder with ID
, run:123456789gcloud beta compute org-security-policies create --short-name = my-policy --folder = 123456789To create an organization security under organization with ID
from an input file, run:12345gcloud beta compute org-security-policies create --file-name = my-file-name --organization = 12345 - REQUIRED FLAGS
-
- Exactly one of these must be specified:
-
--folder=FOLDER - Folder in which the organization security policy is to be created.
-
--organization=ORGANIZATION - Organization in which the organization security policy is to be created.
-
- Exactly one of these must be specified:
- OPTIONAL FLAGS
-
-
--description=DESCRIPTION - An optional, textual description for the organization security policy.
-
--display-name=DISPLAY_NAME - A textual name of the security policy.
-
--file-format=FILE_FORMAT - The format of the file to create the organization security policy config from.
Specify either yaml or json. Defaults to yaml if not specified. Will be ignored
if --file-name is not specified.
FILE_FORMATmust be one of:json,yaml. -
--short-name=SHORT_NAME - A textual name of the security policy.
- Creation options.
At most one of these can be specified:
-
--file-name=FILE_NAME - The name of the JSON or YAML file to create a organization security policy config from.
-
--type=SECURITY_POLICY_TYPE - The type indicates the intended use of the organization security policy.
SECURITY_POLICY_TYPEmust be one of:CLOUD_ARMOR,FIREWALL.
-
-
- 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 helpfor details. - NOTES
- This command is currently in beta and might change without notice. These
variants are also available:
gcloud compute org-security-policies creategcloud alpha compute org-security-policies creategcloud preview compute org-security-policies create
gcloud beta compute org-security-policies create
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.

