最近更新时间:2023.08.14 16:44:49
首次发布时间:2023.02.15 19:04:54
本接口用于根据函数域名获取函数发布过的所有代码版本。
名称 | 位置 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|---|
Action | Query | String | 是 | ListRevision | 要执行的操作。取值:ListRevision |
domain | Query | String | 是 | test-sparrow.test.test | 函数域名 |
page | Query | Int32 | 否 | 1 | 页码 |
limit | Query | Int32 | 否 | 10 | 每页条数 |
order_by | Query | Int32 | 否 | 2 | 数据顺序,1为降序,2为升序(默认按照id的升序排列) |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
revisions | []Revision | 见下文说明 | 代码版本列表 |
total_count | Int64 | 1 | 代码版本个数 |
Revision
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
id | Int64 | 1 | id |
version_tag | String | 1.0.1 | 版本tag |
description | String | this is a sparrow | 发布描述 |
creator | String | zhangsan | 创建人 |
GET https://veefedge.volcengineapi.com/?Action=ListRevision &domain=test-sparrow.test.test &<公共请求参数>
正常返回示例
{ "ResponseMetadata": { "RequestId": "2022011310282201022524312506*******", "Action": "ListRevision", "Version": "2021-04-30", "Service": "veefedge", "Region": "cn-north-1" }, "Result": { "revisions": [ { "id": 133, "version_tag": "1.0.1", "description": "test publish", "creator": "*****" } ], "total_count": 1 } }