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

Deleting a Trigger

Function

This API is used to delete a trigger.

URI

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

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.

trigger_type_code

String

Yes

Trigger type code. Options: SMN, APIG, OBS, TIMER, CTS, and kafka.

trigger_id

String

Yes

Trigger ID.

Request

None

Response

None

Example

Example request

DELETE /v2/7aad83af3e8d42e99ac194e8419e2c9b/fgs/triggers/urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test:latest/CTS/f4748d95-7ce7-4f9e-9434-67316a828d94 HTTP/1.1

Example response

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

HTTP/1.1 204 No Content

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

HTTP/1.1 400 Bad Request
{ 
  "error_code": "FSS.0400", 
  "error_msg": "Invalid trigger data" 
 }

Status Code

See Status Codes.