gcloud_iot_devices_configs_update (1)
NAME
- gcloud iot devices configs update - update a specific device configuration
SYNOPSIS
-
gcloud iot devices configs update (--config-data=CONFIG_DATA | --config-file=CONFIG_FILE) (--device=DEVICE : --region=REGION --registry=REGISTRY) [--version-to-update=VERSION_TO_UPDATE] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
It always creates a new config with a new version number; if --version-to-update is provided, the config at that version is used as a base.
REQUIRED FLAGS
-
-
Exactly one of these must be specified:
-
- --config-data=CONFIG_DATA
-
The data for this configuration, as a string. For any values that contain
special characters (in the context of your shell), use the
--config-file flag instead.
- --config-file=CONFIG_FILE
-
Path to a local file containing the data for this configuration.
-
-
Device resource - The device for the configuration to update. The arguments in
this group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other ways.
To set the [project] attribute: provide the argument [--device] on the command
line with a fully specified name; provide the argument [--project] on the
command line; set the property [core/project]. This must be specified.
-
- --device=DEVICE
-
ID of the device or fully qualified identifier for the device. This flag must be
specified if any of the other arguments in this group are specified.
- --region=REGION
-
The Cloud region for the device.
- --registry=REGISTRY
-
The device registry for the device.
-
-
Exactly one of these must be specified:
OPTIONAL FLAGS
-
- --version-to-update=VERSION_TO_UPDATE
-
The version number to update. If this value is 0 or unspecified, it will
not check the version number of the server and will always update the current
version; otherwise, this update will fail if the version number provided does
not match the latest version on the server. This is used to detect conflicts
with simultaneous updates.
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.
NOTES
These variants are also available:
- $ gcloud alpha iot devices configs update $ gcloud beta iot devices configs update