projects

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

post/v1/{+parent}/wasmPlugins

Request

  • Base URL: https://networkservices.googleapis.com
  • URL: https://networkservices.googleapis.com/v1/{+parent}/wasmPlugins
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

Path parameters

parentstring required

Required. The parent resource of the WasmPlugin resource. Must be in the format projects/{project}/locations/global.

Query parameters

wasmPluginIdstring

Required. User-provided ID of the WasmPlugin resource to be created.

Request body

createTimestring google-datetime

Output only. The timestamp when the resource was created.

descriptionstring

Optional. A human-readable description of the resource.

labelsobject

Optional. Set of labels associated with the WasmPlugin resource. The format must comply with the following requirements.

mainVersionIdstring

Optional. The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource.

namestring

Identifier. Name of the WasmPlugin resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.

updateTimestring google-datetime

Output only. The timestamp when the resource was updated.

versionsobject

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map. If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails. Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status