- NAME
-
-
gcloud alpha service-extensions wasm-actions create - create a
WasmActionresource
-
gcloud alpha service-extensions wasm-actions create - create a
- SYNOPSIS
-
-
gcloud alpha service-extensions wasm-actions create(WASM_ACTION:--location=LOCATION)--wasm-plugin=WASM_PLUGIN[--async] [--description=DESCRIPTION] [--labels=[KEY=VALUE,…]] [--supported-events=[EVENT,…]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Create aWasmActionresource that uses the specified plugin. - EXAMPLES
-
To create a
WasmActioncalledmy-actionusing themy-pluginplugin, run:gcloud alpha service-extensions wasm-actions create my-action --wasm-plugin=my-pluginYou may also specify the full resource path to a plugin, for example,
projects/my-project/locations/global/wasmPlugins/my-plugin - POSITIONAL ARGUMENTS
-
-
WasmAction resource - The ID of the
WasmAction. 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
projectattribute:-
provide the argument
wasm_actionon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
This must be specified.
WASM_ACTION-
ID of the WasmAction or fully qualified identifier for the WasmAction.
To set the
wasm_actionattribute:-
provide the argument
wasm_actionon the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location=LOCATION-
The location ID.
To set the
locationattribute:-
provide the argument
wasm_actionon the command line with a fully specified name; -
provide the argument
--locationon the command line; - use global location.
-
provide the argument
-
provide the argument
-
WasmAction resource - The ID of the
- REQUIRED FLAGS
-
-
WasmPlugin resource - ID of the
WasmPluginto use for this action. This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.To set the
projectattribute:-
provide the argument
--wasm-pluginon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
--wasm-pluginon the command line with a fully specified name; -
provide the argument
--locationon the command line; - use global location.
This must be specified.
--wasm-plugin=WASM_PLUGIN-
ID of the WasmPlugin or fully qualified identifier for the WasmPlugin.
To set the
wasm_pluginattribute:-
provide the argument
--wasm-pluginon the command line.
-
provide the argument
-
provide the argument
-
WasmPlugin resource - ID of the
- OPTIONAL 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, and numbers. Values must contain only hyphens (-), underscores (_), lowercase characters, and numbers. --supported-events=[EVENT,…]-
Specify the portion of the request/response payload to be processed by the
plugin.
EVENTmust be one of:request-headers,response-headers.
- 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 helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.
gcloud alpha service-extensions wasm-actions create
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 2025-05-07 UTC.