gcloud beta compute os-config guest-policies create

NAME
gcloud beta compute os-config guest-policies create - create a guest policy for a project
SYNOPSIS
gcloud beta compute os-config guest-policies createPOLICY_ID--file=FILE[GCLOUD_WIDE_FLAG]
EXAMPLES
To create a guest policypolicy1 in the current project, run:
gcloudbetacomputeos-configguest-policiescreatepolicy1--file=path_to_config_file
POSITIONAL ARGUMENTS
POLICY_ID
Name of the guest policy to create.

This name must contain only lowercase letters, numbers, and hyphens, start witha letter, end with a number or a letter, be between 1-63 characters, and uniquewithin the project.

REQUIRED FLAGS
--file=FILE
The JSON or YAML file with the guest policy to create. For information about theguest policy format, seehttps://cloud.google.com/compute/docs/osconfig/rest/v1beta/projects.guestPolicies.
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.

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.