Updated on 2022-02-22 GMT+08:00

Deleting All Triggers of a Function

Function

This API is used to delete all triggers of a function.

  • If a non-LATEST version of a function is specified, all triggers of this function version will be deleted.
  • If an alias is specified, all triggers corresponding to the alias will be deleted.
  • If neither function versions nor aliases are specified or the LATEST version is specified, all triggers of the function (including all versions and aliases) will be deleted.

URI

DELETE /v2/{project_id}/fgs/triggers/{function_urn}

Table 1 describes the URI parameters.

Table 1 URI parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Tenant's project ID.

function_urn

String

Yes

Function URN. See Function Model.

Request

None

Response

None

Example

Example request

DELETE /v2/7aad83af3e8d42e99ac194e8419e2c9b/fgs/triggers/urn:fss:xxxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test:latest HTTP/1.1

Example response

The format of the response for a successful request is as follows:

HTTP/1.1 204

The format of the response for a failed request is as follows:

HTTP/1.1 404
{"error_code": "FS.0019", "error_msg": "Not found the function"}

Status Code

See Status Codes.