gcloud beta runtime-config configs variables watch

NAME
gcloud beta runtime-config configs variables watch - wait for a variable resources to change
SYNOPSIS
gcloud beta runtime-config configs variables watchNAME--config-name=CONFIG_NAME[--max-wait=MAX_WAIT][--newer-than=NEWER_THAN][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) This command waits for the variable resource with thespecified name to either have its value changed or be deleted.
EXAMPLES
To wait for a variable to change or be deleted, run:
gcloudbetaruntime-configconfigsvariableswatchmy-var--config-name=my-config

This command will return after the variable changes, is deleted, or aserver-defined timeout elapses.

To wait for user-specified period of 20 seconds, run:

gcloudbetaruntime-configconfigsvariableswatchmy-var--config-name=my-config--max-wait=20

If a watch command returns due to a timeout, the command's exit value will be 2.All other errors result in an exit value of 1. If the watched variable changesprior to the timeout, the command will exit successfully with a value of 0.

Optionally, a --newer-than parameter can be specified to wait only if thevariable hasn't changed since the specified time. If the variable has changedsince the time passed to --newer-than, the command returns without waiting. Forexample:

gcloudbetaruntime-configconfigsvariableswatchmy-var--config-name=my-config--newer-than="2016-04-05T12:00:00Z"
POSITIONAL ARGUMENTS
NAME
Variable name.
REQUIRED FLAGS
--config-name=CONFIG_NAME
The name of the configuration resource to use.
OPTIONAL FLAGS
--max-wait=MAX_WAIT
An optional maximum time to wait. For example, "30s". See $gcloud topic datetimes forinformation on duration formats.
--newer-than=NEWER_THAN
Return immediately if the stored variable is newer than this time. See $gcloud topic datetimes forinformation on time formats.
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.