gcloud compute os-config policy-orchestrators update (POLICY_ORCHESTRATOR : --folder=FOLDER --organization=ORGANIZATION) [--action=ACTION] [--async] [--policy-file=POLICY_FILE] [--policy-id=POLICY_ID] [--state=STATE] [--clear-folders | --include-folders=INCLUDE_FOLDERS] [--clear-locations | --include-locations=INCLUDE_LOCATIONS] [--clear-projects | --include-projects=INCLUDE_PROJECTS] [GCLOUD_WIDE_FLAG …]
To update an policy orchestrator my-orchestrator in folder
123456 with config file /path/to/file/config.yaml,
run:
gcloud compute os-config policy-orchestrators update my-orchestrator --folder=123456 --policy-file=/path/to/file/config.yaml
To update an policy orchestrator my-orchestrator in folder
123456 with state STOPPED, run:
gcloud compute os-config policy-orchestrators update my-orchestrator --folder=123456 --state=stopped
To set the project attribute:
policy_orchestrator on the command line with a
fully specified name;
--project on the command line;
core/project. This resource can be one of the
following types: [policy_orchestrator_project, policy_orchestrator_folder,
policy_orchestrator_organization].
POLICY_ORCHESTRATOR
To set the policy_orchestrator attribute:
policy_orchestrator on the command line.
--folder=FOLDERfolder attribute:
policy_orchestrator on the command line with a
fully specified name;
--folder on the command line. Must be
specified for resource of type [policy_orchestrator_folder].
--organization=ORGANIZATIONorganization attribute:
policy_orchestrator on the command line with a
fully specified name;
--organization on the command line. Must be
specified for resource of type [policy_orchestrator_organization].
--action=ACTIONACTION must be one of:
deletepolicy-id must be specified.
upsertpolicy-file must be specified.
--async--policy-file=POLICY_FILE--policy-id=POLICY_IDDELETE action.
--state=STATESTATE must be one of:
activeACTIVE state.
stoppedSTOPPED state.
--include-folders is set, --clear-folders
must not be set.
At most one of these can be specified:
--clear-folders--include-folders=INCLUDE_FOLDERSus-central1-a. If include-locations is set,
clear-locations must not be set.
At most one of these can be specified:
--clear-locations--include-locations=INCLUDE_LOCATIONSinclude-projects is set, clear-projects
must not be set.
At most one of these can be specified:
--clear-projects--include-projects=INCLUDE_PROJECTS--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.
osconfig/v2 API. The full documentation for
this API can be found at: https://cloud.google.com/compute/docs/osconfig/rest
gcloud alpha compute os-config policy-orchestrators updategcloud beta compute os-config policy-orchestrators update
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 2026-05-27 UTC.