更新时间:2025-05-14 GMT+08:00
分享

查询算子列表

功能介绍

查询算子列表

URI

GET /v1.0/{project_id}/data/processors

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目id,获取方法请参见获取项目ID

表2 Query参数

参数

是否必选

参数类型

描述

workspace_id

String

工作空间id

id

Long

算子id

name

String

算子名称

output_type

Array of strings

输出类型

limit

Integer

返回个数上限

offset

Integer

查询偏移量

sort

String

排序方式

请求参数

表3 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)

响应参数

状态码:200

表4 响应Body参数

参数

参数类型

描述

payload

DataProcessorPayload object

实际返回信息

meta_info

RespMetaInfo object

元数据

表5 DataProcessorPayload

参数

参数类型

描述

list

Array of processorVo objects

算子列表

page_info

PageInfo object

分页信息

表6 processorVo

参数

参数类型

描述

id

Long

id

user_id

String

用户id

project_id

String

项目id

output_type

String

输出类型

config

DataProcessorConfigRequest object

算子配置

name

String

名称

description

String

描述

visibility

String

可见范围

update_at

Long

更新时间,UTC标准时间毫秒时间戳

create_at

Long

创建时间,UTC标准时间毫秒时间戳

image_repo_id

Integer

镜像仓库id

image_version

Integer

镜像仓库版本号

workspace_id

String

工作空间id

表7 DataProcessorConfigRequest

参数

参数类型

描述

command

String

启动命令

表8 PageInfo

参数

参数类型

描述

offset

Integer

查询偏移量

limit

Integer

返回个数上限

total

Integer

资源总数

表9 RespMetaInfo

参数

参数类型

描述

current_time

String

请求时间,UTC时间格式,时间为UTC标准时间

请求示例

算子列表

GET https://{endpoint}/v1.0/{project_id}/data/processors?offset=0&limit=10

响应示例

状态码:200

查询成功

{
  "meta_info" : {
    "current_time" : "2022-01-01T08:08:29Z"
  },
  "payload" : {
    "list" : [ {
      "id" : 10000,
      "user_id" : "087679f0aaxxxxxxxxxxxxxx2f5e902b",
      "project_id" : "087679f0aaxxxxxxxxxxxxxx2f5e902b",
      "output_type" : "DATA_MARK",
      "config" : {
        "command" : "this is command"
      },
      "name" : "processor",
      "description" : "this is description",
      "visibility" : "PUBLIC",
      "create_at" : 1640966400000,
      "update_at" : 1640966400000,
      "image_repo_id" : 10000,
      "image_version" : 1
    } ],
    "page_info" : {
      "offset" : 0,
      "limit" : 10,
      "total" : 1
    }
  }
}

状态码

状态码

描述

200

查询成功

400

请求参数错误

403

权限校验失败

500

系统内部错误

错误码

请参见错误码

相关文档