REST Resource: projects.locations.wasmActions

Resource: WasmAction

WasmAction is a resource representing a connection between a WasmPlugin resource and an EdgeCacheService resource. After a WasmAction resource is created, you can't change its reference to a WasmPlugin resource.

JSON representation
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "description": string,
  "labels": {
    string: string,
    ...
  },
  "supportedEvents": [
    enum (EventType)
  ],

  // Union field target can be only one of the following:
  "wasmPlugin": string
  // End of list of possible types for union field target.
}
Fields
name

string

Identifier. Name of the WasmAction resource in the following format: projects/{project}/locations/{location}/wasmActions/{wasmAction}.

createTime

string (Timestamp format)

Output only. The timestamp when the resource was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. The timestamp when the resource was updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

description

string

Optional. A human-readable description of the resource.

labels

map (key: string, value: string)

Optional. Set of label tags associated with the WasmAction resource.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

supportedEvents[]

enum (EventType)

Optional. Determines which of portion of the request / response is processed by the plugin.

Each value translates to a separate plugin invocation. For example, processing request headers involves invoking the ON_HTTP_HEADERS callback.

If empty, both request headers and response headers are processed.

Union field target.

target can be only one of the following:

wasmPlugin

string

Required. The relative resource name of the WasmPlugin resource to execute in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasmPlugin}.

EventType

Defines the portion of the request or response that's processed by the plugin. The valid values are: REQUEST_HEADERS, RESPONSE_HEADERS.

Enums
EVENT_TYPE_UNSPECIFIED Unspecified value. Do not use.
REQUEST_HEADERS If included in supportedEvents, the HTTP request headers are processed.
RESPONSE_HEADERS If included in supportedEvents, the HTTP response headers are processed.

Methods

create

Creates a new WasmAction resource in a given project and location.

delete

Deletes the specified WasmAction resource.

get

Gets details of the specified WasmAction resource.

list

Lists WasmAction resources in a given project and location.