tencent cloud

Serverless Cloud Function

DeleteTrigger

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-10-13 15:53:10

1. API Description

Domain name for API request: scf.intl.tencentcloudapi.com.

This API is used to delete existing trigger modes based on parameters.

A maximum of 100 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DeleteTrigger.
Version Yes String Common Params. The value used for this API: 2018-04-16.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
FunctionName Yes String Function name
TriggerName Yes String Trigger name to delete
Type Yes String Trigger type to delete. Currently only timer, ckafka, apigw, cls, cos, cmq, and http are supported.
Namespace No String Namespace of the function
TriggerDesc No String If the trigger type to delete is COS trigger, this field must be specified, storing data in JSON format {"event":"cos:ObjectCreated:*"}. The data content is in the same format as this field in the SetTrigger API. If the trigger type to delete is scheduled trigger or CMQ trigger, this field can be unspecified.
Qualifier No String The version or alias that the trigger to be deleted actually points to. Default value: $LATEST.

3. Output Parameters

Parameter Name Type Description
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Delete the trigger.

Users use this function to delete triggers.

Input Example

POST / HTTP/1.1
Host: scf.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DeleteTrigger
<Common request parameters>

{
    "Type": "timer",
    "FunctionName": "ledDummyAPITest",
    "TriggerName": "test3"
}

Output Example

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

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
FailedOperation.CreateTrigger The function status currently does not allow this operation.
FailedOperation.DeleteTrigger Failed to delete the trigger.
FailedOperation.DeleteTrigger.UrlUsed The Url is occupied and cannot be deleted.
InternalError Internal error.
InternalError.System Internal system error.
InvalidParameterValue Incorrect parameter value.
InvalidParameterValue.ApiGateway ApiGateway parameter error.
InvalidParameterValue.Cdn Cdn input error.
InvalidParameterValue.Cmq Cmq input error.
InvalidParameterValue.Cos Cos input error.
InvalidParameterValue.FunctionName The function does not exist.
InvalidParameterValue.TriggerDesc TriggerDesc input parameter error.
InvalidParameterValue.TriggerName TriggerName input error.
InvalidParameterValue.Type Type input error.
ResourceInUse.Cdn Cdn is occupied.
ResourceInUse.Cmq Cmq is occupied.
ResourceNotFound The resource does not exist.
ResourceNotFound.Cdn Cdn does not exist.
ResourceNotFound.Cmq Cmq does not exist.
ResourceNotFound.Function Function does not exist.
ResourceNotFound.FunctionName Function does not exist.
ResourceNotFound.Timer Timer does not exist.
ResourceNotFound.Trigger The trigger does not exist.
ResourceNotFound.Version The version does not exist.
UnauthorizedOperation.CAM CAM authentication failed.
UnauthorizedOperation.DeleteTrigger No permissions.
UnsupportedOperation.Cdn Cdn is not supported.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백