华为云用户手册

  • 响应参数 状态码:200 表4 响应Body参数 参数 参数类型 描述 count Integer 数量信息 next String 下一页结果集资源地址 previous String 上一页结果集资源地址 results Array of ExtensionListSrlz objects 当前页结果集信息 表5 ExtensionListSrlz 参数 参数类型 描述 url String 扩展文件资源地址 id Integer 扩展文件ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 status Integer 扩展文件状态 10 - 编辑中 0 - 已发布 name String 扩展文件名称 mount_path String 挂载路径 filename String 扩展文件的文件名称
  • 响应示例 状态码:200 { "count": 1, "next": null, "previous": null, "results": [ { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/extensions/120/", "id": 120, "created_at": 1747986791.733739, "updated_at": 1748310687.507957, "status": 0, "name": "extension_xxx", "filename": "Octopus-xxx.zip", "mount_path": "/opt/mount_path" } ] }
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token,通过调用 IAM 服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 表3 Query参数 参数 是否必选 参数类型 描述 id 否 Integer 扩展文件ID name 否 String 扩展文件名称,最大长度64位,支持中文,字母,数字及下划线命名 status 否 Integer 扩展文件状态 10 - 编辑中 0 - 已发布 limit 否 Integer 返回个数上限,最大值为100,默认值为10 offset 否 Integer 查询偏移量
  • 响应示例 状态码:200 { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/sm/scenarios/32050/", "id": 32050, "created_at": 1742353268.604604, "updated_at": 1742353269.253803, "labels": [ ], "gen_scenario": null, "road_scenario": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/sm/road-scenarios/865/", "description": { "content": "" }, "file": { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/sm/scenarios/32050/files/d3f8b502c334296765xxxxxxxx951ff42a02b71eaeb7ebd118e2898/", "sha256": "d3f8b502c334296765xxxxxxxx951ff42a02b71eaeb7ebd118e2898", "created_at": 1742353268.593741, "updated_at": 1742353269.144296, "path": "sim/ifiles/scenario/d3f8b502c334296765xxxxxxxx951ff42a02b71eaeb7ebd118e2898.xosc", "bucket": "octopus-raw-54d37c8f25af42xxxxx4ee9772687bf", "filename": "scenario_1742353244.xosc", "ready": true }, "map": { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/sm/maps/21668/", "id": 21668, "created_at": 1742353260.93824, "updated_at": 1744074022.312378, "file": { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/sm/maps/21668/files/15f9598b9e4a2677xxxxxxxxa7f0ed31f98da0954b0ab4171c7ec203/", "sha256": "15f9598b9e4a2677xxxxxxxxa7f0ed31f98da0954b0ab4171c7ec203", "created_at": 1742353260.934919, "updated_at": 1742353261.36653, "path": "sim/ifiles/map/15f9598b9e4a2677xxxxxxxxa7f0ed31f98da0954b0ab4171c7ec203.xodr", "bucket": "octopus-raw-54d37c8f25af42xxxxx4ee9772687bf", "filename": "road.xodr", "ready": true }, "version": "v1.5.0", "agreement_confirm": true }, "model": null, "simulator": "SimPro", "version": "v0.9.1", "filename": "scenario_174xxx244.xosc", "map_filename": "road.xodr", "model_filename": null, "user_id": "5ffa2cb7631340xxxxx4736284af7dc4", "user_name": "octopus_admin", "source": "UPLOAD", "name": "sc_7BgqxxxxuKCKwYw", "priority": 60, "status": 0 }
  • 响应参数 状态码:200 表3 响应Body参数 参数 参数类型 描述 url String 场景资源地址 id Integer 场景ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 labels Array of LabelBriefSrlz objects 场景标签。场景标签体系为树状结构,按照OpenLABEL标准进行设计 gen_scenario String 泛化场景资源地址 road_scenario String 路采场景资源地址 description description object 描述 file FileNestedSrlz object 场景文件信息 map map object 场景地图信息 model model object 场景模型信息 simulator String 仿真器,如 SimPro version String 场景对应的OpenSCENARIO版本 filename String 场景文件名称 map_filename String 场景地图文件名称 model_filename String 场景模型文件名称 user_id String 用户ID user_name String 用户名称 name String 场景名称 priority Integer 优先级,取值越大,优先级越高。可从如下范围中选择: 120 – S:至关重要 100 – A:很重要 80 – B:重要 60 – C:普通 status Integer 状态信息: 0 - Released 已发布 1 - Available 可用 10 - Initial 初始化中 11 - Unavailable 不可用 12 - Releasing 发布中 100 - Deprecated 已弃用 source String 来源,如 UPLOAD - 用户上传 表4 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 父标签名称 表5 description 参数 参数类型 描述 content String 描述的内容 表6 map 参数 参数类型 描述 url String 地图资源地址 id Integer 地图ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 file FileNestedSrlz object 地图文件信息 version String 地图版本 v1.4.0 - v1.4.0 v1.5.0 - v1.5.0 v1.6.0 - v1.6.0 v1.6.1 - v1.6.1 v1.7.0 - v1.7.0 agreement_confirm Boolean 协议确认 true - 同意 false - 不同意 表7 model 参数 参数类型 描述 url String 模型资源地址 id Integer 模型ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 file FileNestedSrlz object 模型文件信息 format String 模型文件格式 osgb - osgb fbx - fbx agreement_confirm Boolean 协议确认 true - 同意 false - 不同意 表8 FileNestedSrlz 参数 参数类型 描述 url String 文件资源地址 sha256 String 文件SHA256 信息 created_at Double 创建时间 updated_at Double 更新时间 filename String 文件名称 ready Boolean 文件状态。完成文件上传状态为true,未完成文件上传状态为false
  • 响应示例 状态码:201 { "url": "/v2/54d37c8f25axxxxxxxe9772687bf/sim/pm/batch-configs/357/", "id": 357, "created_at": 1747984785.434156, "updated_at": 1747984785.434175, "algorithm": "/v2/54d37c8f25axxxxxxxe9772687bf/sim/pm/algorithms/64/", "algorithm_name": "algorithm_xxx", "builtins_evaluation": false, "custom_evaluation_image": "/v2/54d37c8f25axxxxxxxe9772687bf/sim/pm/evaluation-images/11/", "custom_simulator_image_id": 303973, "simulator_config": "", "evaluation_info": { "IMAGE": { "id": 74, "name": "eva_xxx", "image_id": 11, "image_version": "1" } }, "batch_size": 0, "duration": "00:10:00", "repeat_times": 100000, "passing_score": 60, "scenario_type": 0, "extensions": [], "user_id": "5ffa2cb7631xxxxxxx736284af7dc4", "name": "batch_config_xxx", "description": "batch_config description", "simulator_name": "SimPro", "record_mode": 1, "priority": 60, "datahub": false, "scenario_set_id": 41, "triggerable": false, "traffic": null, "evaluations": [ "/v2/54d37c8f25axxxxxxxe9772687bf/sim/pm/evaluations/74/" ] }
  • 请求示例 创建仿真任务配置 POST https://{endpoint}/v2/{project_id}/sim/pm/batch-configs { "name": "batch_config_xxx", "description": "batch_config description", "duration": 600, "evaluations": [ "/v2/54d37c8f25axxxxxxxe9772687bf/sim/pm/evaluations/74/" ], "priority": 60, "scenarios": { }, "algorithm": "/v2/54d37c8f25axxxxxxxe9772687bf/sim/pm/algorithms/64/", "datahub": false, "simulator_name": "SimPro", "repeat_times": 100000, "builtins_evaluation": false, "custom_evaluation_image": "/v2/54d37c8f25axxxxxxxe9772687bf/sim/pm/evaluation-images/11/", "passing_score": 60, "scenario_type": 0, "scenario_set_id": 41, "record_mode": 1, "custom_simulator_image_id": 303973 }
  • 响应参数 状态码:201 表5 响应Body参数 参数 参数类型 描述 url String 仿真任务配置的资源地址 id Integer 仿真任务配置ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 algorithm String 关联算法资源地址 algorithm_name String 算法名称 builtins_evaluation Boolean 是否使用内置评测 custom_evaluation_image String 关联评测镜像资源地址 custom_simulator_image_id Integer 镜像管理中的仿真器镜像的版本id simulator_config String 仿真器配置信息 evaluation_info 表6 object 评测配置信息 batch_size Integer 任务数量 duration String 子任务最大运行时长 repeat_times Integer 重复运行次数 user_id String 用户id name String 仿真任务配置名称 description String 仿真任务配置描述 simulator_name String 仿真器名称,取值范围:SimPro record_mode Integer 录制模式 0 - 不录制 1 - 录制 priority Integer 优先级,取值越大,优先级越高。可从如下范围中选择: 120 – S:至关重要 100 – A:很重要 80 – B:重要 60 – C:普通 datahub Boolean 是否使用datahub passing_score Integer 融合评测通过分数,默认60 scenario_type Integer 场景类型: 0 - 场景库:从场景库选择场景 1 - 逻辑场景:从泛化任务选择任务 2 – 测试套件:从测试套件选择场景 triggerable Boolean 是否可通过流水线功能触发 evaluations Array of strings 关联评测管理项目 scenario_set_id Int 场景集合 id traffic String 交通流量 extensions Array Of Strings 扩展文件资源地址列表 表6 evaluation_info 参数 参数类型 描述 image 表7 object 镜像信息 表7 image 参数 参数类型 描述 id Integer 项目id name String 项目名称 image_id Integer 镜像id image_version String 镜像版本
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 Content-Type 是 String 内容类型。填application/json X-Auth-Token 是 String 用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 表3 请求Body参数 参数 是否必选 参数类型 描述 name 是 String 仿真任务配置名称,最大长度64位,支持中文,字母,数字及下划线命名 description 否 String 仿真任务配置描述,最大长度256位,支持中文,字母,数字及下划线命名 duration 是 String 子任务最大运行时长,单位秒,最小为60,最大为1800 repeat_times 是 Integer 重复运行次数,最小1次,最大100000次 record_mode 是 Integer 录制模式,可从以下状态选择: 0 - 不录制 1 - 录制 priority 是 Integer 优先级,取值越大,优先级越高。可从如下范围中选择: 120 – S:至关重要 100 – A:很重要 80 – B:重要 60 – C:普通 simulator_name 是 String 仿真器名称,比如:SimPro builtins_evaluation 是 Boolean 是否使用内置评测 true:使用内置评测 false:不使用内置评测 algorithm 否 String 关联算法资源地址 datahub 否 Boolean 是否使用datahub evaluations 是 Array of strings 关联评测管理项目列表 custom_evaluation_image 是 String 关联评测镜像资源地址 custom_simulator_image_id 是 Integer 镜像管理中的仿真器镜像的版本id passing_score 是 Integer 融合评测通过分数,默认60 scenario_type 是 Integer 场景类型: 0 - 场景库:从场景库选择场景 1 - 逻辑场景:从泛化任务选择任务 2 – 测试套件:从测试套件选择场景 scenarios 否 scenarios object 场景信息 scenario_set_id 否 Int 场景集合 id 表4 scenarios 参数 是否必选 参数类型 描述 group_ids 否 Array of integers 场景库id信息 generalization_ids 否 Array of integers 泛化任务id信息 suit_ids 否 Array of integers 测试套件id信息
  • 响应示例 状态码:200 { "count": 1, "next": null, "previous": null, "results": [ { "url": "/v2/54d37c8f25af42xxxxxf4ee9772687bf/sim/pm/algorithms/30/", "id": 30, "updated_at": 1742461691.855977, "created_at": 1742373587.541192, "name": "algorithms_xxx", "description": "algorithms_xxx" } ] }
  • 响应参数 状态码:200 表4 响应Body参数 参数 参数类型 描述 count Integer 数量信息 next String 下一页结果集资源地址 previous String 上一页结果集资源地址 results Array of AlgListSrlz objects 当前页结果集信息 表5 AlgListSrlz 参数 参数类型 描述 url String 算法的资源地址 id Integer 算法ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 name String 算法名称 description String 算法描述
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 表3 Query参数 参数 是否必选 参数类型 描述 id 否 Integer 算法ID name 否 String 名称,最大长度64位,支持中文,字母,数字及下划线命名 limit 否 Integer 返回个数上限,最大值为100,默认值为10 offset 否 Integer 查询偏移量
  • 响应示例 状态码:200 { { "count": 1, "next": null, "previous": null, "results": [ { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/batch-configs/360/", "id": 360, "created_at": 1748249591.709321, "updated_at": 1748249591.709342, "algorithm": null, "algorithm_name": null, "builtins_evaluation": false, "custom_evaluation_image": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/evaluation-images/16/", "custom_simulator_image_id": 303973, "evaluation_info": { "IMAGE": { "id": 74, "name": "evaluation_xxx", "image_id": 16, "image_version": "2" } }, "batch_size": 0, "duration": "00:01:00", "repeat_times": 1, "passing_score": 60, "scenario_type": 0, "extensions": [ ], "name": "batch-config-xxx", "description": "batch-config-xxx", "simulator_name": "SimPro", "record_mode": 0, "priority": 60, "datahub": true, "scenario_set_id": 155, "traffic": null, "evaluations": [ "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/evaluations/74/" ] } ] }
  • 响应参数 状态码:200 表4 响应Body参数 参数 参数类型 描述 count Integer 数量信息 next String 下一页结果集资源地址 previous String 上一页结果集资源地址 results Array of BatchConfigListSrlz objects 当前页结果集信息 表5 BatchConfigListSrlz 参数 参数类型 描述 url String 仿真任务配置的资源地址 id Integer 仿真任务配置ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 algorithm String 关联算法资源地址 algorithm_name String 算法名称 builtins_evaluation Boolean 是否使用内置评测 custom_evaluation_image String 关联评测镜像资源地址 custom_simulator_image_id Integer 镜像管理中的仿真器镜像的版本id evaluation_info evaluation_info object 评测配置信息 batch_size Integer 任务数量 duration String 子任务最大运行时长 repeat_times Integer 重复运行次数 passing_score Integer 融合评测通过分数,默认60 scenario_type Integer 场景类型 0 - 场景库:从场景库选择场景 1 - 逻辑场景:从泛化任务选择任务 2 – 测试套件:从测试套件选择场景 extensions Array Of Strings 扩展文件资源地址列表 name String 仿真任务配置名称 description String 仿真任务配置描述 simulator_name String 仿真器名称,如:SimPro record_mode Integer 录制模式 0 - 不录制 1 - 录制 priority Integer 优先级,取值越大,优先级越高。可从如下范围中选择 120 – S:至关重要 100 – A:很重要 80 – B:重要 60 – C:普通 datahub Boolean 是否使用datahub scenario_set_id Int 场景集合 id traffic String 交通流量 evaluations Array of strings 关联评测管理项目列表 表6 evaluation_info 参数 参数类型 描述 image 表7 object 镜像信息 表7 image 参数 参数类型 描述 id Integer 项目id name String 项目名称 image_id Integer 镜像id image_version String 镜像版本
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 表3 Query参数 参数 是否必选 参数类型 描述 id 否 Integer 仿真任务配置ID name 否 String 仿真任务配置名称,最大长度64位,支持中文,字母,数字及下划线命名 description 否 String 描述,最大长度256位,支持中文,字母,数字及下划线命名 algorithm_id 否 Integer 算法ID algorithm_name 否 String 算法名称 evaluation_id 否 Integer 评测ID evaluation_name 否 String 评测名称 scenario_set_id 否 Integer 场景集合ID builtins_evaluation 否 Boolean 是否使用内置评测 custom_evaluation_image_id 否 Integer 自定义评测镜像ID custom_simulator_image_id 否 Integer 自定义仿真器镜像ID limit 否 Integer 返回个数上限,最大值为100,默认值为10 offset 否 Integer 查询偏移量
  • 响应参数 状态码:200 表4 响应Body参数 参数 参数类型 描述 count Integer 数量信息 next String 下一页结果集资源地址 previous String 上一页结果集资源地址 results Array of CategoriesListSrlz objects 当前页结果集信息 表5 CategoriesListSrlz 参数 参数类型 描述 url String 场景库分类的资源地址 id Integer 场景库分类ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 name String 场景库分类名称 parent String 父级资源地址 parent_id Integer 父级ID count Integer 包含场景数量
  • 响应示例 状态码:200 { "count": 3, "next": null, "previous": null, "results": [ { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/sm/categories/45/", "id": 45, "created_at": 1744772710.859864, "updated_at": 1744772710.859905, "parent_id": 0, "count": 2, "name": "category-x1", "parent": null }, { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/sm/categories/44/", "id": 44, "created_at": 1744708154.885394, "updated_at": 1744708154.885428, "parent_id": 0, "count": 0, "name": "categories-x2", "parent": null }, { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/sm/categories/34/", "id": 34, "created_at": 1743125723.734035, "updated_at": 1743125723.734062, "parent_id": 0, "count": 6, "name": "category-x3", "parent": null } ] }
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 表3 Query参数 参数 是否必选 参数类型 描述 is_root 否 Boolean 是否是根节点,true是根节点,false非根节点 name 否 String 名称,最大长度64位,支持中文,字母,数字及下划线命名 parent 否 Integer 父级ID limit 否 Integer 返回个数上限,最大值为100,默认值为10 offset 否 Integer 查询偏移量 ordering 否 String 查询结果的排序方式(默认升序,-为降序) id 根据id排序 created_at 根据创建时间排序
  • 响应示例 状态码:200 { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/batch-configs/360/", "id": 360, "created_at": 1748249591.709321, "updated_at": 1748249591.709342, "algorithm": null, "algorithm_name": null, "builtins_evaluation": false, "custom_evaluation_image": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/evaluation-images/16/", "custom_simulator_image_id": 303973, "simulator_config": "", "evaluation_info": { "IMAGE": { "id": 74, "name": "evaluation_xxx", "image_id": 16, "image_version": "2" } }, "batch_size": 0, "duration": "00:01:00", "repeat_times": 1, "passing_score": 60, "scenario_type": 0, "extensions": [ ], "name": "batch-config-xxx", "description": "batch-config-xxx", "simulator_name": "SimPro", "record_mode": 0, "priority": 60, "datahub": true, "scenario_set_id": 155, "traffic": null, "evaluations": [ "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/evaluations/74/" ] }
  • 响应参数 状态码:200 表3 响应Body参数 参数 参数类型 描述 url String 仿真任务配置的资源地址 id Integer 仿真任务配置ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 algorithm String 关联算法资源地址 algorithm_name String 算法名称 builtins_evaluation Boolean 是否使用内置评测 custom_evaluation_image String 关联评测镜像资源地址 custom_simulator_image_id Integer 镜像管理中的仿真器镜像的版本id simulator_config String 仿真器配置信息 evaluation_info evaluation_info object 评测配置信息 batch_size Integer 任务数量 duration String 子任务最大运行时长 repeat_times Integer 重复运行次数 passing_score Integer 融合评测通过分数,默认60 scenario_type Integer 场景类型 0 - 场景库:从场景库选择场景 1 - 逻辑场景:从泛化任务选择任务 2 – 测试套件:从测试套件选择场景 extensions Array Of Strings 扩展文件资源地址列表 name String 仿真任务配置名称 description String 仿真任务配置描述 simulator_name String 仿真器名称,如:SimPro record_mode Integer 录制模式 0 - 不录制 1 - 录制 priority Integer 优先级,取值越大,优先级越高。可从如下范围中选择 120 – S:至关重要 100 – A:很重要 80 – B:重要 60 – C:普通 datahub Boolean 是否使用datahub scenario_set_id Int 场景集合 id traffic String 交通流量 evaluations Array of strings 关联评测管理项目列表 表4 evaluation_info 参数 参数类型 描述 image image object 镜像信息 表5 image 参数 参数类型 描述 id Integer 项目id name String 项目名称 image_id Integer 镜像id image_version String 镜像版本
  • 响应示例 状态码:200 { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/extensions/51/", "id": 51, "created_at": 1746797584.176377, "updated_at": 1746797587.791306, "status": 0, "file": { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/extensions/51/files/36bf5e70295ed993fdb459ec47e5aee2e9f73200c4edd50aaa6d728b2c748932/", "sha256": "36bf5e70295ed993fdb459ec47e5aee2e9f73200c4edd50aaa6d728b2c748932", "created_at": 1746797584.172998, "updated_at": 1746797587.78853, "path": "sim/ifiles/extension/36bf5e70295ed993fdb459ec47e5aee2e9f73200c4edd50aaa6d728b2c748932.zip", "bucket": "octopus-raw-54d37c8f25af42xxxxx4ee9772687bf", "filename": "pblog-xxx.zip", "ready": true }, "name": "pblog_xxx", "description": "", "filename": "pblog-xxx.zip", "mount_path": "/home/sim" }
  • 响应参数 状态码:200 表3 响应Body参数 参数 参数类型 描述 url String 扩展文件资源地址 id Integer 扩展文件ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 status Integer 扩展文件状态 10 - 编辑中 0 - 已发布 name String 扩展文件名称 description String 扩展文件描述 filename String 扩展文件的文件名称 mount_path String 挂载路径 file FileSrlz object 扩展文件信息 表4 FileSrlz 参数 参数类型 描述 url String 文件资源地址 sha256 String 文件sha256值 created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 filename Integer 文件名称 ready Boolean 文件状态。完成文件上传状态为true,未完成文件上传状态为false
  • 响应示例 状态码:200 { "count": 1, "next": null, "previous": null, "results": [ { "url": "/v2/54d37c8f25af42xxxx9772687bf/sim/pm/batches/988/", "id": 988, "created_at": 1748309503.834751, "updated_at": 1748309577.768622, "passing_score": 60, "algorithm_name": "algorithm_xxx", "algorithm_image": "/v2/54d37c8f25af42xxxxx9772687bf/sim/pm/algorithm-images/63/", "algorithm_image_version": "3", "started_at": 1748309506.263967, "ended_at": 1748309577.765106, "success": 1, "fail": 0, "simulation_size": 1, "name": "v1", "description": "", "status": 0, "user_id": "5ffa2cb76313xxxxxx284af7dc4", "designated_simulation_ids": null, "batch_config": "/v2/54d37c8f25af42xxxxxx9772687bf/sim/pm/batch-configs/361/" } ] }
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 表3 Query参数 参数 是否必选 参数类型 描述 id 否 Integer 仿真任务ID name 否 String 仿真任务名称,最大长度64位,支持中文,字母,数字及下划线命名 description 否 String 描述 algorithm_image_version 否 String 算法镜像版本 algorithm_name 否 String 算法名称 batch_config_id 否 Integer 仿真任务配置ID status 否 Integer 任务状态 limit 否 Integer 返回个数上限,最大值为100,默认值为10 offset 否 Integer 查询偏移量
  • 响应参数 状态码:200 表4 响应Body参数 参数 参数类型 描述 count Integer 数量信息 next String 下一页结果集资源地址 previous String 上一页结果集资源地址 results Array of BatchListSrlz objects 当前页结果集信息 表5 BatchListSrlz 参数 参数类型 描述 url String 场景资源地址 id Integer 场景ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 passing_score Integer 融合评测通过分数 algorithm_name String 算法名称 algorithm_image String 算法镜像资源地址 algorithm_image_version String 算法镜像版本 started_at TimeStamp 任务开始时间 ended_at TimeStamp 任务结束时间 success Integer 子任务成功数量 fail Integer 子任务失败数量 simulation_size Integer 子任务数量 name String 名称 description String 文本描述 status Integer 任务状态 0 - Success 成功 1 - Pending 等待中 2 - Scheduling 调度中 3 - Running 运行中 4 - Canceled 已取消 5 - All Fail 全部失败 6 - Partial Fail 部分成功 7 - Start Fail 启动失败 8 - K8S Conflict 任务冲突 10 - Not Run 未运行 11 - Cpu Not Enough CPU不足 12 - Mem Not Enough 内存不足 13 - Gpu Not Enough GPU不足 14 - Init K8S Fail 初始化集群失败 31 - Timeout 超时 32 - Unknown 未知 100 - Init 初始化 101 - Init Fail 初始化失败 102 - Task Lost 任务中断 103 - FEEDBACK FAILED 反馈失败 104 - Queue 排队中 105 - Alg Img Not Found 算法镜像丢失 106 - Eva Img Not Found 评测镜像丢失 107 - Sim Img Not Found 仿真器镜像丢失 designated_simulation_ids Array of Integers 用户指定重跑子任务ID列表 batch_config String 仿真任务配置ID
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 Content-Type 是 String 内容类型。填application/json X-Auth-Token 是 String 用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 表3 请求Body参数 参数 是否必选 参数类型 描述 version 是 String 镜像版本,只支持数字,最大长度32位 algorithm 是 String 算法资源地址
  • 响应示例 状态码:201 { "url" : "/v2/54d37c8f25af42xxxxxxxxe9772687bf/sim/pm/algorithm-images/36/", "id" : 36, "created_at" : 1746579828.060311, "updated_at" : 1746579828.060332, "version" : "2", "command" : "cmd xxxx", "keyword" : "keyword xxx", "algorithm" : "/v2/54d37c8f25af42xxxxxxxxe9772687bf/sim/pm/algorithms/30/", "pkg_log_dir": "" }
  • 响应参数 状态码:201 表4 响应Body参数 参数 参数类型 描述 url String 算法镜像的资源地址 id Integer 算法镜像ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 version String 镜像版本 command String 运行命令 keyword String 算法关键字 algorithm String 算法资源地址 pkg_log_dir String 目录打包路径
  • 响应示例 状态码:200 { "url": "/v2/54d37c8f25af42xxxxx4ee9772687bf/sim/pm/algorithms/90/", "id": 90, "created_at": 1748249187.490056, "updated_at": 1748249187.490077, "description": "test001", "name": "algorithms_xxx", "mount_dir": "/srv/code", "repository_id": 262383, "run": { "command": "sh test", "pkg_log_dir": "", "keyword": "finished!", "cpu": 2.0, "memory": 1024, "gpu": 0 } }
  • 响应参数 状态码:200 表3 响应Body参数 参数 参数类型 描述 url String 算法的资源地址 id Integer 算法ID created_at TimeStamp 创建时间 updated_at TimeStamp 更新时间 run 表4 object 运行信息 name String 算法名称 description String 算法描述 mount_dir String 加载路径 repository_id Integer 镜像仓库ID 表4 run 参数 参数类型 描述 command String 运行命令 keyword String 算法关键字 pkg_log_dir String 日志打包目录,需绝对路径 cpu Double cpu配额 memory Integer 内存配额 gpu Integer gpu配额
共100000条
提示

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