You need to enable JavaScript to run this app.
导航
ListTriggers
最近更新时间:2024.08.07 11:48:17首次发布时间:2024.08.07 11:48:17

批量获取所有触发器。

请求说明

  • 请求方式:POST
  • 请求地址:http://open.volcengineapi.com/?Action=ListTriggers&Version=2024-06-06 HTTP/1.1

请求参数

参数类型是否必选示例值描述
ActionStringListTriggers接口名称。当前 API 的名称为 ListTriggers
VersionString2024-06-06接口版本。当前 API 的版本为 2024-06-06
FunctionIdStringpqyqo9qa函数 ID。

请求示例

POST http://open.volcengineapi.com/?Action=ListTriggers&Version=2024-06-06 HTTP/1.1
Content-Type: application/json
{
    "FunctionId": "pqyqo9qa"
}

返回参数

参数类型示例值描述
ItemsArray of Trigger[{"Id": "558ycnuu", "Type": "tls", "Name": "TLSTrigger3", "Description": "", "CreationTime": "2024-07-22 07:15:54.522 +0000 UTC", "LastUpdateTime": "2024-07-22 07:27:17.739 +0000 UTC", "DetailedConfig": "", "Enabled": false}]触发器列表。
TotalInteger1触发器总数。

Trigger

参数类型示例值描述
IdStringkhq1moat触发器 ID。
NameStringapig-sales触发器名称。

Type

String

timer

触发器类别:

  • timer: 定时触发器
  • kafka: 消费 Kafka 消息队列
  • bmq: 消费 BMQ 消息队列
  • rocketmq: 消费 RocketMQ 消息队列
  • apig: 通过 APIG 网关触发函数
  • tos: 通过 TOS 事件触发函数
  • tls: 消费 TLS 日志并触发函数

Enabled

Boolean

true

触发器是否启用:

  • true:启用
  • false:未启用
AccountIDString2100222152火山引擎账号 ID。
FunctionIDStringwrwskdhbd函数 ID。
DescriptionStringapig sales 触发器描述。
CreationTimeString2024-02-13 02:36:23.033 +0000 UTC创建时间。
ImageVersionStringmaster_613da8e949e60491ec31be8d0e7e3f5d3d1785b1_20230327163215触发器镜像版本。
DetailedConfigString{"UpstreamId":"uci4qt01aqt740c03bn80", "GatewayId":"gci4qsbefednv1ec32t5g"触发器配置详情。目前只有 apig 和 tos 触发器类型含有配置详情。
LastUpdateTimeString2024-02-13 02:36:23.033 +0000 UTC更新时间。

返回示例

HTTP/1.1 200 OK
Content-Type: application/json
{
    "ResponseMetadata": {
        "RequestId": "20230604110420****100232280022D31",
        "Action": "ListTriggers",
        "Version": "2024-06-06",
        "Service": "vefaas",
        "Region": "cn-beijing"
    },
    "Result": {
        "Items": [
            {
                "Id": "558ycnuu",
                "Type": "tls",
                "Name": "TLSTrigger3",
                "Description": "",
                "CreationTime": "2024-07-22 07:15:54.522 +0000 UTC",
                "LastUpdateTime": "2024-07-22 07:27:17.739 +0000 UTC",
                "DetailedConfig": "",
                "Enabled": false
            }
        ],
        "Total": 1
    }
}

错误码

当前接口暂无独立错误码,若接口调用返回异常,可参考 公共错误码 进行故障排查。