gcloud service-extensions wasm-plugins update

NAME
gcloud service-extensions wasm-plugins update - update aWasmPlugin resource
SYNOPSIS
gcloud service-extensions wasm-plugins update(WASM_PLUGIN :--location=LOCATION)[--async][--description=DESCRIPTION][--labels=[KEY=VALUE,…]][--log-config=[LOG_CONFIG,…]][--image=IMAGE--main-version=MAIN_VERSION--plugin-config=PLUGIN_CONFIG    |--plugin-config-file=PATH_TO_FILE    |--plugin-config-uri=PLUGIN_CONFIG_URI][GCLOUD_WIDE_FLAG]
DESCRIPTION
Update an existingWasmPlugin resource and optionally create aWasmPluginVersion resource and set it as the main (serving) one.

If--image is not specified:

  • the method only updates theWasmPlugin resource without creating aWasmPluginVersion.
  • the--plugin-config*** flags are disallowed.
  • if--main-version is set, then the referencedWasmPluginVersion must already exist and it is set as the main(serving) one.

If--image is specified:

  • the--main-version flag must also be specified.
  • the method updates theWasmPlugin resource and creates a newWasmPluginVersion with--main-version name and sets itas the main (serving) one.
  • the--plugin-config*** flags are allowed.
  • the--async flag is disallowed.
EXAMPLES
To update aWasmPlugin calledmy-plugin, run:
gcloudservice-extensionswasm-pluginsupdatemy-plugin--main-version=new-version--description="A new description."--labels=label1=value1

To update aWasmPlugin calledmy-plugin and alsocreate a new version calledv1 and set it as main:

gcloudservice-extensionswasm-pluginsupdatemy-plugin--main-version=v1--description="A new description."--labels=label1=value1--image=…-docker.pkg.dev/my-project/repository/container:tag
POSITIONAL ARGUMENTS
WasmPlugin resource - The ID of theWasmPlugin to update. Thearguments 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 inother ways.

To set theproject attribute:

  • provide the argumentwasm_plugin on the command line with a fullyspecified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

WASM_PLUGIN
ID of the WasmPlugin or fully qualified identifier for the WasmPlugin.

To set thewasm_plugin attribute:

  • provide the argumentwasm_plugin on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--location=LOCATION
The location ID.To set thelocation attribute:
  • provide the argumentwasm_plugin on the command line with a fullyspecified name;
  • provide the argument--location on the command line;
  • use global location.
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION
A human-readable description of the resource.
--labels=[KEY=VALUE,…]
List of label KEY=VALUE pairs to add.

Keys must start with a lowercase character and contain only hyphens(-), underscores (_), lowercase characters, andnumbers. Values must contain only hyphens (-), underscores(_), lowercase characters, and numbers.

--log-config=[LOG_CONFIG,…]
Logging options for the activity performed by this plugin. The following optionscan be set:
  • enable: whether to enable logging. Iflog-config flagis set,enable option is required.
  • sample-rate: configures the sampling rate of activity logs, where1.0 means all logged activity is reported and0.0means no activity is reported. The default value is1.0, and thevalue of the field must be in range0 to1(inclusive).
  • min-log-level: specifies the lowest level of the logs that shouldbe exported to Cloud Logging. The default value isINFO.

Example usage:--log-config=enable=True,sample-rate=0.5,min-log-level=INFO--log_config=enable=False

--image=IMAGE
URI of the container image containing the plugin's Wasm module, stored in theArtifact Registry.
--main-version=MAIN_VERSION
The ID of theWasmPluginVersion that should be the currentlyserving one. The version referred to must be a child of thisWasmPlugin.

If the--image flag was also provided, theWasmPluginVersion will be created for thatWasmPluginand will be set as the current main version.

Configuration for the plugin, provided at runtime by theon_configure function (Rust Proxy-Wasm SDK) or theonConfigure method (C++ Proxy-Wasm SDK).

At most one of these can be specified:

--plugin-config=PLUGIN_CONFIG
Plugin runtime configuration in the textual format.
--plugin-config-file=PATH_TO_FILE
Path to a local file containing the plugin runtime configuration.

Use a full or relative path to a local file containing the value ofplugin_config_file.

--plugin-config-uri=PLUGIN_CONFIG_URI
URI of the container image containing the plugin's runtime configuration, storedin the Artifact Registry.
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
These variants are also available:
gcloudalphaservice-extensionswasm-pluginsupdate
gcloudbetaservice-extensionswasm-pluginsupdate

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-07-01 UTC.