gcloud beta compute os-config guest-policies create - create a guest policy for a project
gcloud beta compute os-config guest-policies create POLICY_ID --file=FILE [GCLOUD_WIDE_FLAG ...]
To create a guest policy policy1 in the current project, run:
$ gcloud beta compute os-config guest-policies create policy1 \ --file=path_to_config_file
- POLICY_ID
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.
- --file=FILE
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.
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.
This command is currently in beta and might change without notice. This variant is also available:
$ gcloud alpha compute os-config guest-policies create