最近更新时间:2023.08.14 16:44:50
首次发布时间:2023.02.15 19:04:54
本接口用于根据函数域名和发布id获取发布记录详情。
名称 | 位置 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|---|
Action | Query | String | 是 | GetTicket | 要执行的操作。取值:GetTicket |
domain | Query | String | 是 | test-sparrow.test.test | 函数域名 |
ticket_id | Query | Int64 | 是 | 28 | 发布记录id |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ticket | Ticket | 见下文说明 | 发布记录详情 |
Ticket
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
id | Int64 | 1 | 发布记录id |
domain | String | test-sparrow.test.test | 函数域名 |
content | String(TicketContent) | 发布记录内容 | |
status | Int32 | 100 | 发布状态
|
description | String | this is a sparrow | 描述 |
creator | String | zhangsan | 创建人 |
create_time | Int64 | 1638326159 | 创建时间 |
update_time | Int64 | 1638326159 | 更新时间 |
TicketContent
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
CurrentTraffics | []*Traffic | [{"version_tag":"1.0.9"}] | 当前版本 |
OriginTraffics | []*Traffic | [{"version_tag":"1.0.9"}] | 原始版本 |
Traffic
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
VersionTag | String | 1.0.1 | 代码版本tag |
GET https://veefedge.volcengineapi.com/?Action=GetTicket &domain=test-sparrow.test.test &ticket_id=133 &<公共请求参数>
正常返回示例
{ "ResponseMetadata": { "RequestId": "2022011310531001022511001100*****", "Action": "GetTicket", "Version": "2021-04-30", "Service": "veefedge", "Region": "cn-north-1" }, "Result": { "tickets": { "id": 133, "domain": "test-sparrow.test.test", "content": "{\"current_traffics\":[{\"version_tag\":\"1.0.2\"}],\"origin_traffics\":[{\"version_tag\":\"1.0.1\"}]}", "status": 200, "description": "test publish", "creator": "****", "create_time": 1640077698, "update_time": 1640077759 } } }