Last updated: 2019-08-18 22:54:59

1. API Description

API request domain name:

The API deletes the existing trigger based on the input parameters.

Default API request frequency limit: 100 times/second.

2. Input Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter; the name of this API: DeleteTrigger
Version Yes String Common parameter; the version of this API: 2018-04-16
Region Yes String Common parameters; for details, see the Region List.
FunctionName Yes String Name of the function
TriggerName Yes String Name of the trigger to be deleted
Type Yes String Type of the trigger to be deleted; currently, COS, CMQ, timer and CKafka types are supported
TriggerDesc No String If the to-be-deleted trigger is a COS trigger, this field is a required and holds the data {"event":"cos:ObjectCreated: *"} in JSON format, and the data content is in the same format as this field in the CreateTrigger API; if the to-be-deleted trigger is a timer or CMQ trigger, this field is optional
Qualifier No String Version information of the function

3. Output Parameters

Parameter name Type Description
RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

4. Sample

Deleting a Trigger

You use this function to delete a trigger.

Input Sample Code
&<Common request parameter>

Output Sample Code

    "Response": {
        "RequestId": "eac6b301-a322-493a-8e36-83b295459397"

5. Developer Resources

API Explorer

This tool provides various capabilities such as online call, signature verification, SDK code generation, and quick API retrieval that significantly reduce the difficulty of using TencentCloud API

6. Error Codes

The following error codes are API business logic-related. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error
InternalError.System Internal system error.
InvalidParameterValue Wrong parameter value
InvalidParameterValue.Cdn An invalid value was declared for the input parameter: Cdn
InvalidParameterValue.Cmq An invalid value was declared for the input parameter: CKafka
InvalidParameterValue.Cos An invalid value was declared for the input parameter: COS
ResourceInUse.Cdn CDN is in use.
ResourceInUse.Cmq CMQ is in use.
ResourceNotFound.Cdn CDN does not exist.
ResourceNotFound.Cmq CMQ does not exist.
ResourceNotFound.FunctionName Function does not exist.
UnauthorizedOperation.CAM CAM authentication failed.
UnsupportedOperation.Cdn CDN is not supported.