You need to enable JavaScript to run this app.
文档中心
AgentKit

AgentKit

复制全文
下载 pdf
Runtime
GetRuntimeReleaseStatus - 查询运行时发布状态
复制全文
下载 pdf
GetRuntimeReleaseStatus - 查询运行时发布状态
查询运行时的发布状态。​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:GetRuntimeReleaseStatus​
要执行的操作,取值:GetRuntimeReleaseStatus。​
​
Version string 必选 示例值:2025-10-30​
API的版本,取值:2025-10-30。​
​
RuntimeId string 必选 示例值:r-yefj305tds75z4k3****​
运行时ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
CurrentTrafficWeight integer 示例值:60​
当前发布流量百分比。表示当前正在发布版本所占的流量比例,仅当status为 inprogress/failed时返回。​
  • 取值:0~100。​
​
ErrorCode string 示例值:function_start_failed​
发布失败时的错误码:​
  • function_start_failed:函数启动失败​
  • function_start_timeout:函数启动超时​
  • function_health_check_failed:函数健康检查失败​
  • system_internal_error:系统内部错误​
​
FailedInstanceLogs string 示例值:https://xx.tos-s3-cn.volces.com/release_failed_instance_logs/******​
发布失败的实例日志下载链接。​
​
NewVersionNumber integer 示例值:4​
发布的目标版本号。​
​
OldVersionNumber integer 示例值:3​
发布的历史版本号。​
说明​
在status为pending时不返回,为inprogress/failed/done时均返回。​
​
ReleaseRecordId string 示例值:5oivgbdpp4ji****​
发布记录ID。​
​
RuntimeId string 示例值:r-ye7agye1a8cr38iu****​
运行时ID。​
​
StableVersionNumber integer 示例值:2​
当前线上稳定运行的版本号。初次发布成功后生成, 初次发布前 (status=pending) StableVersionNumber为 -1。​
​
StartTime string 示例值:2026-02-10 07:05:12​
当前发布开始时间。​
说明​
在status为pending时不返回,为inprogress/failed/done时均返回。​
​
Status string 示例值:done​
运行时发布状态:​
  • pending:从未发布。​
  • inprogress:正在发布。​
  • done:发布成功。​
  • failed:发布失败。​
​
StatusMessage string 示例值:Runtime release finished successfully​
运行时发布状态详细信息。​
​
TargetTrafficWeight integer 示例值:60​
目标发布流量百分比。​
  • 取值范围1-100。​
  • 取值为100:全量发布。​
  • 取值小于100:灰度发布。​
​
​
​
请求示例​
​
POST https://agentkit.cn-beijing.volcengineapi.com?Action=GetRuntimeReleaseStatus&Version=2025-10-30 HTTP/1.1​
Content-Type: application/json​
{​
"RuntimeId": "r-yefj305tds75z4k3****",​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20260212164514578DDADB7457C5C9****",​
"Action": "GetRuntimeReleaseStatus",​
"Version": "2025-10-30",​
"Service": "agentkit",​
"Region": "cn-beijing"​
},​
"Result": {​
"RuntimeId": "r-yefj305tds75z4k3****",​
"Status": "done",​
"StatusMessage": "",​
"StableVersionNumber": 2,​
"NewVersionNumber": 4,​
"OldVersionNumber": 3,​
"StartTime": "2026-02-10 07:05:12",​
"TargetTrafficWeight": 60,​
"CurrentTrafficWeight": 60,​
"ErrorCode": "",​
"FailedInstanceLogs": "",​
"ReleaseRecordId": "n6tfbaejc25****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidResourceStatus​
The status of the specified resource does not support this request.​
当前资源的状态不支持此操作。​
400​
MissingParameter.RuntimeId​
The required parameter RuntimeId is not supplied.​
runtime id不能为空。​
​
​
最近更新时间:2026.07.21 20:57:35
这个页面对您有帮助吗?
有用
有用
无用
无用