gcloud_beta_runtime-config_configs_waiters_create (1)
NAME
- gcloud beta runtime-config configs waiters create - create waiter resources
SYNOPSIS
-
gcloud beta runtime-config configs waiters create NAME --config-name=CONFIG_NAME --success-cardinality-path=SUCCESS_CARDINALITY_PATH --timeout=TIMEOUT [--async] [--failure-cardinality-number=FAILURE_CARDINALITY_NUMBER; default=1] [--failure-cardinality-path=FAILURE_CARDINALITY_PATH] [--success-cardinality-number=SUCCESS_CARDINALITY_NUMBER; default=1] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) This command creates a new waiter resource with the specified name
POSITIONAL ARGUMENTS
-
- NAME
-
The waiter name.
REQUIRED FLAGS
-
- --config-name=CONFIG_NAME
-
The name of the configuration resource to use.
- --success-cardinality-path=SUCCESS_CARDINALITY_PATH
-
The path where success variables are written.
- --timeout=TIMEOUT
-
The amount of time to wait before failing with DEADLINE_EXCEEDED. See $ gcloud
topic datetimes for information on duration formats.
OPTIONAL FLAGS
-
- --async
-
Display information about the operation in progress, without waiting for the
operation to complete.
- --failure-cardinality-number=FAILURE_CARDINALITY_NUMBER; default=1
-
The minimum required number of failure variables.
- --failure-cardinality-path=FAILURE_CARDINALITY_PATH
-
The path where failure variables are written.
- --success-cardinality-number=SUCCESS_CARDINALITY_NUMBER; default=1
-
The minimum required number of success variables.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
To create a waiter in "my-config" with success and failure paths nested under "/status", run:
-
$ gcloud beta runtime-config configs waiters create my-waiter \
--config-name my-config --timeout 15m \
--success-cardinality-path /status/success \
--success-cardinality-number 5 \
--failure-cardinality-path /status/failure \
--failure-cardinality-number 1
This waiter will wait for at most 15 minutes for the first of two possible scenarios: 1) five or more variables are written to the /status/success/ path; or 2) one or more variables are written to the /status/failure/ path.
To create a waiter without a failure path, run:
-
$ gcloud beta runtime-config configs waiters create my-waiter \
--config-name my-config --timeout 15m \
--success-cardinality-path /status/success \
--success-cardinality-number 5
This waiter will wait until 5 or more success variables are written, or the 15 minute timeout elapses.
NOTES
This command is currently in BETA and may change without notice.