- gcloud beta compute os-config guest-policies create - create a guest policy for a project
- POSITIONAL ARGUMENTS
Name of the guest policy to create.
This name must contain only lowercase letters, numbers, and hyphens, start with a letter, end with a number or a letter, be between 1-63 characters, and unique within the project.
- REQUIRED FLAGS
- The JSON or YAML file with the guest policy to create. For information about the guest policy format, see https://cloud.google.com/compute/docs/osconfig/rest/v1beta/projects.guestPolicies.
- GCLOUD WIDE FLAGS
These flags are available to all commands:
$ gcloud helpfor details.
To create a guest policy
policy1in the current project, run:
gcloud beta compute os-config guest-policies create policy1 --file=path_to_config_file
- This command is currently in BETA and may change without notice. This variant is also available:
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 2020-12-15 UTC.