gcloud beta compute os-config guest-policies update

NAME
gcloud beta compute os-config guest-policies update - update the specified guest policy for a project
SYNOPSIS
gcloud beta compute os-config guest-policies updatePOLICY_ID--file=FILE[GCLOUD_WIDE_FLAG]
EXAMPLES
To update the guest policypolicy1 in the projectproject1, run:
gcloudbetacomputeos-configguest-policiesupdatepolicy1--file=path_to_config_file--project=project1
POSITIONAL ARGUMENTS
POLICY_ID
Name of the guest policy to update.
REQUIRED FLAGS
--file=FILE
The JSON or YAML file with the updated guest policy.

If this file specifies an etag value, the update succeeds only if the policythat is already in place has a matching etag value. If no etag value isspecified, the specifications in the updated policy file replaces the existingpolicy.

For information about the guest 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.