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

查询函数实例日志信息。

请求说明

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

请求参数

参数类型是否必选示例值描述
ActionStringGetFunctionInstanceLogs接口名称。当前 API 的名称为 GetFunctionInstanceLogs
VersionString2024-06-06接口版本。当前 API 的版本为 2024-06-06
FunctionIdStringnwwzoaq1函数 ID。
NameStringnwwzoaq1-vd9qztck6t-74b9cf8975-bkd99函数实例名称。

Limit

Long

500

设置返回日志的最大行数,取值大于 0。

  • 不设置,则显示从容器创建开始的日志。
  • 设置为 N,则显示最新 N 行日志。

请求示例

POST http://open.volcengineapi.com/?Action=GetFunctionInstanceLogs&Version=2024-06-06 HTTP/1.1
Content-Type: application/json
{
    "FunctionId": "nwwzoaq1",
    "Name": "nwwzoaq1-vd9qztck6t-74b9cf8975-bkd99",
    "Limit": 500
}

返回参数

参数类型示例值描述
LogsString2024-06-25T11:18:25.136415053+08:00 Model loaded in 11.1s (load weights from disk: 3.7s, create model: 0.6s, apply weights to model: 5.5s, load textual inversion embeddings: 0.2s, calculate empty prompt: 1.0s).\n函数实例日志数据。

返回示例

HTTP/1.1 200 OK
Content-Type: application/json
{
    "ResponseMetadata": {
        "RequestId": "20230604110420****100232280022D31",
        "Action": "GetFunctionInstanceLogs",
        "Version": "2024-06-06",
        "Service": "vefaas",
        "Region": "cn-beijing"
    },
    "Result": {
        "Logs": "2024-06-25T11:18:25.136415053+08:00 Model loaded in 11.1s (load weights from disk: 3.7s, create model: 0.6s, apply weights to model: 5.5s, load textual inversion embeddings: 0.2s, calculate empty prompt: 1.0s).\\n"
    }
}

错误码

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