获取触发器日志
最近更新时间: 2026-09-17 00:02:57
1. 接口描述
接口请求域名: tcr.api3.fincloud.tencent.cn。
获取触发器日志
默认接口请求频率限制:20次/秒。
接口更新时间:2023-09-05 10:07:01。
接口只验签名不鉴权。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。
| 参数名称 | 必选 | 允许NULL | 类型 | 描述 |
|---|---|---|---|---|
| Action | 是 | 否 | String | 公共参数,本接口取值:DescribeWebhookTriggerLog |
| Version | 是 | 否 | String | 公共参数,本接口取值:2019-09-24 |
| Region | 是 | 否 | String | 公共参数,地域信息本接口不需要传递此参数。 |
| RegistryId | 是 | 否 | String | 实例 Id 示例值: |
| Namespace | 是 | 否 | String | 命名空间 示例值: |
| Id | 否 | 否 | Int64 | 触发器 Id 示例值: |
| Limit | 否 | 否 | Int64 | 分页单页数量 示例值: |
| Offset | 否 | 否 | Int64 | 分页偏移量 示例值: |
3. 输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| TotalCount | Int64 | 总数 示例值: |
| Logs | Array of WebhookTriggerLog | 日志列表 示例值:查看 |
| RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
4. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError | 内部错误。 |
| InternalError.DbError | 数据库错误。 |
| InternalError.ErrorTcrInternal | Tcr实例内部错误。 |
| InternalError.ErrorTcrUnauthorized | 没有Tcr操作权限。 |
| InvalidParameter.ErrorTcrInvalidParameter | 无效的TCR请求。 |
| ResourceNotFound.TcrResourceNotFound | Tcr实例中的资源未找到。 |
| ResourceNotFound | 资源不存在。 |
5. 示例
示例1 查询触发器日志
输入示例
https://tcr.api3.fincloud.tencent.cn/?Action=DescribeWebhookTriggerLog
&<公共请求参数>
&RegistryId=tcr-ak9876
&Namespace=someNs
&Id=9
输出示例
{
"Response": {
"RequestId": "be17f554-32fd-451c-a1cd-64f9bd164e3f",
"TotalCount": 3,
"Logs": [
{
"Id": 2,
"TriggerId": 25,
"EventType": "pushImage",
"NotifyType": "http",
"Status": "finished",
"Detail": "{\"type\":\"pushImage\",\"occur_at\":1586774843,\"event_data\":{\"resources\":[{\"digest\":\"sha256:7ac7819e1523911399b798309025935a9968b277d86d50e5255465d6592c0266\",\"tag\":\"v1\",\"resource_url\":\"wcctest.cloudcloudcr.com/nginx/nginx:v1\"}],\"repository\":{\"date_created\":1586777885,\"name\":\"nginx\",\"namespace\":\"nginx\",\"repo_full_name\":\"nginx/nginx\",\"repo_type\":\"public\"}},\"operator\":\"3211064422\"}",
"CreationTime": "2020-04-14T02:47:23.177329+08:00",
"UpdateTime": "2020-04-14T02:47:24.244664+08:00"
}
]
}
}