GetPipelineRun -

更新时间:
复制 MD 格式

查询流水线单次执行详情

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

agentloop:GetPipelineRun

none

*Pipeline

acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}

无 无

请求语法

GET /agentspace/{agentSpace}/pipeline/{pipelineName}/runs/{runId} HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

agentSpace

string

否

AgentSpace 名称

my-agent-space

pipelineName

string

否

流水线名称

my-pipeline

runId

string

否

运行 Id

run-20260101-0001

请求参数

名称

类型

必填

描述

示例值

当前API无需请求参数

返回参数

名称

类型

描述

示例值

object

响应数据

requestId

string

请求 Id,用于排查问题时定位本次请求

9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M

runId

string

Run Id

run-20260101-0001

pipelineName

string

流水线名称

my-pipeline

agentSpaceName

string

所在 AgentSpace 名称

my-agent-space

fromTime

integer

数据窗口起始,unix 秒

1735660800

toTime

integer

数据窗口结束,unix 秒

1735747200

triggerType

string

触发类型:Scheduled / Manual / RunOnce

Scheduled

triggerTime

string

触发时间,ISO 8601 UTC 格式

2026-01-01T00:00:00.000Z

status

string

Run 状态:Pending / Running / Succeeded / Failed / Cancelled

Succeeded

attempt

integer

当前重试次数

0

maxAttempts

integer

最大重试次数

3

startTime

string

开始执行时间,ISO 8601 UTC 格式

2026-01-01T00:00:01.000Z

finishTime

string

结束时间,ISO 8601 UTC 格式

2026-01-01T00:00:10.000Z

nextRetryTime

string

下次重试时间,ISO 8601 UTC 格式

2026-01-01T00:01:00.000Z

stats

object

运行统计指标,包含:processedRows(处理行数)、processedBytes(处理字节数)、outputRows(输出行数)、outputBytes(输出字节数)、elapsedMs(耗时毫秒)、cpuSec(CPU 秒)、cpuCores(CPU 核数)、tokenCount(Token 消耗数)

any

errorMessage

string

错误信息

errorCode

string

语义错误码

results

object

内联运行结果(仅当触发时 output.inline=true 才返回)

any

示例

正常返回示例

JSON格式

{
  "requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
  "runId": "run-20260101-0001",
  "pipelineName": "my-pipeline",
  "agentSpaceName": "my-agent-space",
  "fromTime": 1735660800,
  "toTime": 1735747200,
  "triggerType": "Scheduled",
  "triggerTime": "2026-01-01T00:00:00.000Z",
  "status": "Succeeded",
  "attempt": 0,
  "maxAttempts": 3,
  "startTime": "2026-01-01T00:00:01.000Z",
  "finishTime": "2026-01-01T00:00:10.000Z",
  "nextRetryTime": "2026-01-01T00:01:00.000Z",
  "stats": {
    "key": ""
  },
  "errorMessage": "",
  "errorCode": "",
  "results": {
    "key": ""
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。