functiongraph__CreateFunctionTrigger
Creates a Huawei Cloud FunctionGraph trigger to connect event sources, such as timers, APIs, object storage, or message queues, to a cloud function for automated event-driven execution.
Instructions
[FUNCTIONGRAPH] 创建触发器。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event_data": "<event_data>",
"function_urn": "<function_urn>",
"project_id": "<project_id>",
"trigger_type_code": "<trigger_type_code>"
},
"name": "functiongraph__CreateFunctionTrigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_data | Yes | 触发器源事件。 | |
| project_id | Yes | 租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。 | |
| function_urn | Yes | 函数的URN,详细解释见FunctionGraph函数模型的描述。 | |
| trigger_status | No | 触发器状态,取值为ACTIVE,DISABLED。 | |
| event_type_code | No | 消息代码。 | |
| trigger_type_code | Yes | 触发器类型。 |