- gcloud alpha compute os-config patch-deployments create - create a patch deployment for a project
gcloud alpha compute os-config patch-deployments createcreates a patch deployment in a project from a specified file. A patch deployment triggers a patch job to run at specific time(s) according to a schedule, and applies instance filters and other patch configurations to the patch job at run time. Alternatively, to run a patch job on-demand, see
alpha compute os-config patch-jobs execute.
- POSITIONAL ARGUMENTS
Name of the patch deployment 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 patch deployment to create. For information about the patch deployment format, see https://cloud.google.com/compute/docs/osconfig/rest/v1beta/projects.patchDeployments.
- GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account,
--log-http, --project, --quiet, --trace-token, --user-output-enabled,
$ gcloud helpfor details.
To create a patch deployment
patch-deployment-1in the current project, run:
$ gcloud alpha compute os-config patch-deployments create \ patch-deployment-1 --file=path_to_config_file
- This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access whitelist. 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-02-11.