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.
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. |
| 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. |
Users use this function to delete triggers.
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"
}
{
"Response": {
"RequestId": "eac6b301-a322-493a-8e36-83b295459397"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
文档反馈