华为云用户手册

  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token,通过调用 IAM 服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) Content-Type 是 String 内容类型。填application/json 表3 请求Body参数 参数 是否必选 参数类型 描述 description 否 String 描述 visibility 否 String 可见范围 image_repo_id 否 Integer 镜像仓库id。如需修改镜像,image_repo_id需同时传入 image_version 否 Integer 镜像仓库版本号。如需修改镜像,image_repo_id需同时传入 config 否 DataProcessorConfigRequest object 算子配置,更新command参数时,config必传 表4 DataProcessorConfigRequest 参数 是否必选 参数类型 描述 command 是 String 启动命令
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) Content-Type 是 String 内容类型。填application/json 表3 请求Body参数 参数 是否必选 参数类型 描述 action 是 String 更新操作 resource_spec 否 String 资源规格,示例:1Core_4GiB。具体获取方式可参考“查询可用资源规格“接口。重启作业时运行重新指定作业使用的资源规格。 cluster_type 否 String 集群类型 cluster_id 否 String 集群id
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 Content-Type 是 String 内容类型。填application/json X-Auth-Token 是 String 用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 表3 请求Body参数 参数 是否必选 参数类型 描述 action 否 String 可填值CANCEL_PUSH,表示将“推送中”和“二次推送中”的版本回退到上一个状态。 status和action字段至少填写一项,若两项都存在则action字段生效而忽略status字段 status 否 Integer 内部使用,用于其他服务自行构建镜像而不经过镜像仓库服务上传镜像的场景。版本创建时为“初始化”状态,构建完成后通过调用该接口并将status的值设置为0表示镜像构建完成。 status和action字段至少填写一项,若两项都存在则action字段生效而忽略status字段
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 Content-Type 是 String 内容类型。填application/json X-Auth-Token 是 String 用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 表3 请求Body参数 参数 是否必选 参数类型 描述 description 否 String 描述信息 name 否 String 镜像名称
  • 响应示例 状态码:200 请求成功 type=algorithm_log响应: { "algorithm_log_url": "https://obs.cn-north-x.xxx.huawei.com/octopus-raw-xxx" } type=evaluation_log响应: { "evaluation_log_url": "https://obs.cn-north-x.xxx.huawei.com/octopus-raw-xxx.eva.log?xxx" } type=sim_osi响应: { "sim_osi_url": "https://obs.cn-north-x.xxx.huawei.com/octopus-raw-xxx.osi.pb?xxx" } type=evaluation响应: { "sim_osi_url": "https://obs.cn-north-x.xxx.huawei.com/octopus-raw-xxx.eva.pb?xxx" }
  • 请求示例 http://{endpoint}/v2/{project_id}/sim/pm/simulations/41994/files?type=algorithm_log http://{endpoint}/v2/{project_id}/sim/pm/simulations/41994/files?type=evaluation_log http://{endpoint}/v2/{project_id}/sim/pm/simulations/41994/files?type=sim_osi http://{endpoint}/v2/{project_id}/sim/pm/simulations/41994/files?type=evaluation
  • URI GET https://{hostURL}/v2/{project_id}/sim/pm/simulations/{id}/files 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID。 id 是 String 仿真子任务ID 表2 Query参数 参数 是否必选 参数类型 描述 type 是 String 文件类型信息,支持如下4个选项: algorithm_log:算法日志下载 evaluation_log:评测日志下载 sim_osi:仿真pb下载 evaluation:测评pb下载
  • 响应示例 状态码:200 请求成功 { "count": 1, "next": null, "previous": null, "results": [ { "url": "/v2/my_project_id/sim/pm/simulations/46500/", "id": 46500, "created_at": 1747039717.501947, "updated_at": 1747039853.849712, "started_at": null, "ended_at": 1747039853.849553, "batch_name": "更新对象定位相关代码", "algorithm_name": "kyber_simpro_xzw", "algorithm_image_version": "5", "record_mode": 1, "datahub": false, "custom_evaluation_image": null, "passing_score": 60, "evaluation_result": { "version": 2, "score": 100.0, "avgSpeed": 3.117966413497925, "distance": 151.62461853027344, "metrics": [ { "type": "TYPE_COLLISION", "status": "RESULT_PASSED", "displayName": "", "importance": "CATEGORY_MINOR", "source": "SOURCE_DEFAULT_OFFLINE", "module": "MODULE_WHOLE", "performance": "PERFORMANCE_SAFETY" }, { "type": "TYPE_ONTO_SOLID_LINE", "status": "RESULT_PASSED", "displayName": "", "importance": "CATEGORY_MINOR", "source": "SOURCE_DEFAULT_OFFLINE", "module": "MODULE_WHOLE", "performance": "PERFORMANCE_REGULATION" } ], "reachTime": -1.0, "source": "SOURCE_DEFAULT_OFFLINE" }, "files_path_info": { "evaluation_path": "sim/sim/eva/sim-939-46500-32212.eva.pb", "algorithm_log_path": "sim/sim/alg/sim-939-46500-32212.alg.log", "replay_path": "sim/sim/record/sim-939-46500-32212.b", "sim_osi_path": "sim/sim/record/sim-939-46500-32212.osi.pb" }, "simulator_name": "SimPro", "labels": [ ], "scenario_type": 0, "scenario_id": 32212, "evaluation": "{\"version\": 2, \"score\": 100.0, \"avgSpeed\": 3.117966413497925, \"distance\": 151.62461853027344, \"metrics\": [{\"type\": \"TYPE_COLLISION\", \"status\": \"RESULT_PASSED\", \"displayName\": \"\", \"importance\": \"CATEGORY_MINOR\", \"source\": \"SOURCE_DEFAULT_OFFLINE\", \"module\": \"MODULE_WHOLE\", \"performance\": \"PERFORMANCE_SAFETY\"}, {\"type\": \"TYPE_ONTO_SOLID_LINE\", \"status\": \"RESULT_PASSED\", \"displayName\": \"\", \"importance\": \"CATEGORY_MINOR\", \"source\": \"SOURCE_DEFAULT_OFFLINE\", \"module\": \"MODULE_WHOLE\", \"performance\": \"PERFORMANCE_REGULATION\"}], \"reachTime\": -1.0, \"source\": \"SOURCE_DEFAULT_OFFLINE\"}", "score": 100.0, "distance": 151.624618530273, "average_speed": 3.11796641349792, "reach_time": -1.0, "status": 0, "batch": "/v2/my_project_id/sim/pm/batches/939/" } ] }
  • 响应参数 状态码:200 表3 响应Body参数 参数 参数类型 描述 count Integer 列表中实例的数量。 next String 下一个分页的查询地址。 previous String 上一个分页的查询地址。 results Array of SimulationListSrlz objects 仿真任务下的子任务列表。 表4 SimulationListSrlz 参数 参数类型 描述 url String 仿真任务下的子任务资源地址。 id Integer 子任务ID。 created_at Double 创建时间。 updated_at Double 更新时间。 started_at Double 子任务开始时间。 ended_at Double 子任务结束时间。 batch_name String 任务名称。 algorithm_name String 关联算法名称。 algorithm_image_version String 关联算法镜像版本。 record_mode Integer 录制模式: 0 - 不录制 1 - 录制 datahub Bool 是否使用datahub。 custom_evaluation_image String 关联评测镜像。 passing_score String 融合评测通过分数。 evaluation_result EvaluationSrlz object 融合评测结。 files_path_info FilePathSrlz object 仿真结果文件信息。 simulator_name Integer 仿真器名称。 labels Array of LabelBriefSrlz objects 场景标签。场景标签体系为树状结构,按照OpenLABEL标准进行设计。 scenario_type Integer 场景类型: 0 - NORMAL 1 - GENERALIZATION 2 - TESTCASE scenario_id Integer 场景ID。 evaluation String 评测结果。 score Number 评测评分。 distance Double 仿真里程。 average_speed Double 主车平均速度。 reach_time Number 到达终点时间。 status Integer 子任务状态: 0 - 成功 1 - 等待中 2 - 调度中 3 - 运行中 4 - 已取消 10 - 准备失败 11 - 控制失败 12 - 许可失败 13 - 仿真器失败 14 - 算法失败 15 - 评测失败 16 - 丢失 31 - 超时 32 - 未知 batch String 关联batch。 表5 LabelBriefSrlz 参数 参数类型 描述 name String 场景标签名称。 url String 场景标签资源地址。 id Integer 场景标签ID。 family Integer 0 - Customized 1 - Odd China 2 - Open Odd 3 - Odd Nhtsa 4 - Open Label root Long 场景标签所在标签树的根标签ID。 tag_type String 场景标签所属标签树名称。 parent_names Array of objects 父标签名称。 表6 EvaluationSrlz 参数 参数类型 描述 version Interger 版本信息。 score Number 评测评分。 distance Double 仿真里程。 average_speed Double 主车平均速度。 metrics Array of MetricListSrlz objects metrics信息。 reach_time Number 到达终点时间。 source String 资源信息。 表7 MetricListSrlz 参数 参数类型 描述 type String 类型信息。 status String 状态。 displayName String 显示名称。 importance String importance信息。 source String source信息。 module String module信息。 performance String performance信息。 表8 FilePathSrlz 参数 参数类型 描述 evaluation_path String 评测文件路径信息。 algorithm_log_path String 算法日志路径。 replay_path String 回放路径。 sim_osi_path String sim_osi路径信息。
  • URI GET https://{hostURL}/v2/{project_id}/sim/pm/simulations?ordering=id&offset=0&limit=10& batch_id={batch_id} 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID。 表2 Query参数 参数 是否必选 参数类型 描述 scenario_resource_id 否 Integer 场景资源ID。 scenario_resource_type 否 String 场景资源类型。 label 否 String 场景标签ID。 batch_name 否 String 任务名称。 algorithm_name 否 String 算法名称。 score_ge 否 Number 分数大于等于。 score_lt 否 Number 分数小于。 score_null 否 Number 分数不存在。 ordering 否 String 用于排序的字段,查询结果会基于该字段排序。 offset 否 Integer 分页查询的偏移。 limit 否 Integer 分页查询时查询结果数量。 search 否 String 查询条件。 id 否 Integer ID。 batch_id 否 Integer 任务ID。 status 否 Integer 子任务状态: 0 - 成功 1 - 等待中 2 - 调度中 3 - 运行中 4 - 已取消 10 - 准备失败 11 - 控制失败 12 - 许可失败 13 - 仿真器失败 14 - 算法失败 15 - 评测失败 16 - 丢失 31 - 超时 32 - 未知
  • 请求示例 创建仿真任务 POST https://{endpoint}/v2/{project_id}/sim/pm/batches/ { "name": "test_batches_create", "description": "test_batches_create", "algorithm_image": "/v2/my_project_id/sim/pm/algorithm-images/56/", "batch_config": "/v2/my_project_id/sim/pm/batch-configs/257/" }
  • 响应示例 状态码:201 请求成功 { "url": "/v2/my_project_id/sim/pm/batches/938/", "id": 938, "created_at": 1747035787.805102, "updated_at": 1747035787.805121, "passing_score": 60, "algorithm_name": "kyber_to_simpro", "algorithm_image": "/v2/my_project_id/sim/pm/algorithm-images/56/", "algorithm_image_version": "1", "started_at": null, "ended_at": null, "success": 0, "fail": 0, "simulation_size": 0, "status": 100, "name": "test_batches_create", "description": "test_batches_create", "user_id": "xxxx", "designated_simulation_ids": null, "batch_config": "/v2/my_project_id/sim/pm/batch-configs/257/" }
  • 响应参数 状态码:201 表3 响应Body参数 参数 参数类型 描述 url String 仿真任务的资源地址。 id Integer 仿真任务ID。 created_at Double 创建时间。 updated_at Double 更新时间。 passing_score Integer 融合评测通过分数。 algorithm_name String 关联算法名称。 algorithm_image String 关联算法镜像。 algorithm_image_version String 关联算法镜像版本。 started_at Double 任务开始时间。 ended_at Double 任务结束时间。 success Integer 子任务成功数量 fail Integer 子任务失败数量 simulation_size Integer 子任务数量 status Integer 任务状态: 0 - 成功 1 - 等待中 2 - 调度中 3 - 运行中 4 - 已取消 5 - 全部失败 6 - 部分失败 7 - 启动失败 8 - 任务冲突 10 - 未运行 11 - CPU不足 12 - 内存不足 13 - GPU不足 14 - 初始化集群失败 15 - 未购买SKU 31 - 超时 32 - 未知 100 - 初始化中 101 - 初始化失败 102 - 任务丢失 103 - 反馈失败 104 - 排队中 105 - 算法镜像丢失 106 - 评测镜像丢失 107 - 仿真器镜像丢失 name String 任务名称。 description String 任务描述。 user_id String 用户id。 designated_simulation_ids Array of objects 用户指定重跑子任务ids batch_config String 关联batch配置
  • 响应参数 状态码:200 表3 响应Body参数 参数 参数类型 描述 payload DataScenarioJobStatus object 实际返回信息 meta_info RespMetaInfo object 元数据 表4 DataScenarioJobStatus 参数 参数类型 描述 item String 回放转仿真场景作业状态 表5 RespMetaInfo 参数 参数类型 描述 current_time String 请求时间,UTC时间格式,时间为UTC标准时间
  • 响应参数 状态码: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标准时间
  • 响应示例 状态码: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 } } }
  • 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 排序方式
  • 响应示例 状态码:200 查询成功 { "meta_info" : { "current_time" : "2022-01-01T08:08:29Z" }, "payload" : { "item" : { "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 } } }
  • 响应参数 状态码:200 表3 响应Body参数 参数 参数类型 描述 payload DataProcessorDetailPayload object 实际返回信息 meta_info RespMetaInfo object 元数据 表4 DataProcessorDetailPayload 参数 参数类型 描述 item processorVo object 算子详情信息 表5 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 表6 DataProcessorConfigRequest 参数 参数类型 描述 command String 启动命令 表7 RespMetaInfo 参数 参数类型 描述 current_time String 请求时间,UTC时间格式,时间为UTC标准时间
  • 响应示例 状态码:200 查询成功 示例 1 { "meta_info" : { "current_time" : "2022-01-01T08:08:29Z" }, "payload" : { "list" : [ { "id" : 1, "job_id" : 1, "job_type" : "SCENARIO_AUTO_MINING", "data_id" : "DPK0000001", "rank_stamp" : 1640966400000, "project_id" : "087679f0aaxxxxxxxxxxxxxx2f5e902b", "resource_spec" : "1Core_4GiB", "priority" : 0, "queue_type" : "INTERNAL" } ], "page_info" : { "offset" : 0, "limit" : 10, "total" : 1 } } } 示例 2 { "meta_info" : { "current_time" : 1640966400000 }, "payload" : { "list" : [ { "id" : 1, "job_id" : 1, "job_type" : "SCENARIO_AUTO_MINING", "data_id" : "DPK0000001", "rank_stamp" : 1640966400000, "project_id" : "087679f0aaxxxxxxxxxxxxxx2f5e902b", "resource_spec" : "1Core_4GiB", "priority" : 0, "queue_type" : "PRO CES SOR", "cluster_type" : "CCE", "cluster_id" : "087679f0aaxxxxxxxxxxxxxx2f5e902b" } ], "page_info" : { "offset" : 0, "limit" : 10, "total" : 1 } } }
  • 请求示例 获取算子作业队列 https://{endpoint}/v1.0/{project_id}/data/queuing-jobs?limit=10&offset=0&queue_type=PROCESSOR 获取内部作业队列 https://{endpoint}/v1.0/{project_id}/data/queuing-jobs?limit=10&offset=0&queue_type=INTERNAL
  • 响应参数 状态码:200 表4 响应Body参数 参数 参数类型 描述 payload DataJobQueuePayload object 实际返回信息 meta_info RespMetaInfo object 元数据 表5 DataJobQueuePayload 参数 参数类型 描述 list Array of jobQueueVo objects 队列列表 page_info PageInfo object 分页信息 表6 jobQueueVo 参数 参数类型 描述 id Long id job_id Long 作业id processor_id Long 算子id(内部作业队列不返回) source String 来源(内部作业队列不返回) processor_name String 算子名称(内部作业队列不返回) job_type String 内部作业类型 data_id String 数据id output_type String 输出类型(内部作业队列不返回) rank_stamp Long 排序时间戳 project_id String 项目id resource_spec String 资源规格 priority Integer 优先级 queue_type String 队列类型 workspace_id String 工作空间id 表7 PageInfo 参数 参数类型 描述 offset Integer 查询偏移量 limit Integer 返回个数上限 total Integer 资源总数 表8 RespMetaInfo 参数 参数类型 描述 current_time String 请求时间,UTC时间格式,时间为UTC标准时间
  • URI GET /v1.0/{project_id}/data/queuing-jobs 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目id,获取方法请参见获取项目ID 表2 Query参数 参数 是否必选 参数类型 描述 job_id 否 Long 作业id output_type 否 String 输出类型 job_type 否 String 内部作业类型 data_id 否 String 数据id queue_type 是 String 队列类型 limit 否 Integer 返回个数上限 offset 否 Integer 查询偏移量 processor_name 否 String 算子名称 cluster_type 否 String 集群类型 cluster_id 否 String 集群id,当cluster_type为MODELARTS时,此字段必填
  • 响应参数 状态码:200 表3 响应Body参数 参数 参数类型 描述 payload DataJobLogListPayload object 实际返回信息 meta_info RespMetaInfo object 元数据 表4 DataJobLogListPayload 参数 参数类型 描述 list Array of DataJobLogPayload objects 日志列表 表5 DataJobLogPayload 参数 参数类型 描述 file_name String 日志文件名 file_size Long 日志文件大小 update_time Long 更新时间 表6 RespMetaInfo 参数 参数类型 描述 current_time String 请求时间,UTC时间格式,时间为UTC标准时间
  • 响应示例 状态码:200 查询成功 { "meta_info" : { "current_time" : "2022-01-01T08:08:29Z" }, "payload" : { "list" : [ { "file_name" : "job-std-stream.log", "file_size" : 1000, "update_time" : 1640966400000 } ] } }
  • URI GET /v1.0/{project_id}/data/logs/jobs/{job_id}/{file_name} 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目id,获取方法请参见获取项目ID job_id 是 Long 作业id file_name 是 String 日志文件名 表2 Query参数 参数 是否必选 参数类型 描述 start_byte 是 Long 查询起始位置(字节) end_byte 是 Long 查询结尾位置(字节)
  • 响应参数 状态码:200 表4 响应Body参数 参数 参数类型 描述 payload DataJobLogDetailPayload object 实际返回信息 meta_info RespMetaInfo object 元数据 表5 DataJobLogDetailPayload 参数 参数类型 描述 item DataJobLogDetail object 日志详情 表6 DataJobLogDetail 参数 参数类型 描述 content String 内容 end_byte Long 文件末位字节 表7 RespMetaInfo 参数 参数类型 描述 current_time String 请求时间,UTC时间格式,时间为UTC标准时间
  • 响应示例 状态码:200 查询成功 { "meta_info" : { "current_time" : "2022-01-01T08:08:29Z" }, "payload" : { "list" : [ { "id" : 1000, "processor_id" : 10000, "processor_name" : "myProcessor", "output_type" : "OPEN_DATA", "data_id" : "DPK0000001", "data_source" : "DATA_PACKAGE", "status" : "FINISHED", "create_at" : 1640966400000, "update_at" : 1640966400000, "start_at" : 1640966400000, "end_at" : 1640966400000, "project_id" : "087679f0aaxxxxxxxxxxxxxx2f5e902b", "submitting_duration" : 10000, "running_duration" : 10000, "resource_spec" : "4Core_8GiB", "cluster_type" : "CCE", "cluster_id" : "087679f0aaxxxxxxxxxxxxxx2f5e902b" }, { "id" : 1000, "processor_id" : 10000, "processor_name" : "myProcessor", "output_type" : "OPEN_DATA", "data_id" : "DPK0000001", "data_source" : "DATA_PACKAGE", "status" : "RUN_FAILED", "create_at" : 1640966400000, "update_at" : 1640966400000, "start_at" : 1640966400000, "end_at" : 1640966400000, "project_id" : "087679f0aaxxxxxxxxxxxxxx2f5e902b", "msg_code" : 1, "msg_error" : "内部异常", "submitting_duration" : 10000, "running_duration" : 10000, "resource_spec" : "1Core_1GiB", "cluster_type" : "CCE", "cluster_id" : "087679f0aaxxxxxxxxxxxxxx2f5e902b" } ], "page_info" : { "offset" : 0, "limit" : 10, "total" : 20 } } }
  • URI GET /v1.0/{project_id}/data/jobs 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目id,获取方法请参见获取项目ID 表2 Query参数 参数 是否必选 参数类型 描述 workspace_id 否 String 工作空间id data_id 否 String 数据ID id 否 Long 作业ID output_types 否 Array of strings 输出类型,类型不超过10个 processor_name 否 String 算子名称 status 否 String 作业状态 start_time 否 Long 最小创建时间,UTC标准时间毫秒时间戳 end_time 否 Long 最大更新时间,UTC标准时间毫秒时间戳 limit 否 Integer 返回个数上限 offset 否 Integer 查询偏移量 sort 否 String 排序方式 cluster_type 否 String 集群类型
  • 响应参数 状态码:200 表4 响应Body参数 参数 参数类型 描述 payload DataJobPayload object 实际返回信息 meta_info RespMetaInfo object 元数据 表5 DataJobPayload 参数 参数类型 描述 list Array of DataJobListVo objects 作业列表 page_info PageInfo object 分页信息 表6 DataJobListVo 参数 参数类型 描述 id Long 作业id processor_id Long 算子id processor_name String 算子名称 output_type String 输出类型 data_id String 数据id status String 作业状态 create_at Long 创建时间,UTC标准时间毫秒时间戳 update_at Long 更新时间,UTC标准时间毫秒时间戳 start_at Long 开始运行时间,作业未开始运行不返回该字段,UTC标准时间毫秒时间戳 end_at Long 运行结束时间,作业未结束不返回该字段,UTC标准时间毫秒时间戳 msg_code Integer 错误码,作业状态正常不返回该字段(1:内部异常,10003:镜像不存在,10005:pvc不存在,10009:算子不存在,10011:获取实例资源异常,106:创建容器配置失败,107:镜像拉取失败,108:无效镜像,109:容器启动异常,110:创建容器失败,111:未选择 数据仓库 ,201:数据包不存在,202:资源不可用,203:数据包类型异常,204:数据包状态不符合要求,205:场景片段不存在或源文件不存在,206:数据来源与算子类型不匹配,99999:作业运行失败) msg_error String 错误原因,作业状态正常不返回该字段 submitting_duration Long 提交时长,毫秒单位(作业创建到k8s开始运行的时长) running_duration Long 运行时长,作业未开始运行不返回该字段,毫秒单位(k8s运行时长) resource_spec String 资源规格 project_id String 项目id data_source String 输入数据来源 workspace_id String 工作空间id cluster_type String 集群类型 cluster_id String 集群id 表7 PageInfo 参数 参数类型 描述 offset Integer 查询偏移量 limit Integer 返回个数上限 total Integer 资源总数 表8 RespMetaInfo 参数 参数类型 描述 current_time String 请求时间,UTC时间格式,时间为UTC标准时间
共100000条
提示

您即将访问非华为云网站,请注意账号财产安全