自动驾驶云服务 OCTOPUS-创建算法:请求示例

时间:2025-06-18 16:20:48

请求示例

创建算法

POST https://{endpoint}/v2/{project_id}/sim/pm/algorithms
 
{ 
  "category" : "image", 
  "name" : "algorithm-xx", 
  "description" : "add-new-algorithm", 
  "run" : { 
    "command" : "custom define cmd xxx", 
    "keyword" : "custom define keyword xx", 
    "cpu" : 2, 
    "memory" : 1024, 
    "gpu" : 0, 
    "pkg_log_dir" : "/srv/log" 
  }, 
  "image_repo_id" : 262463 
}
support.huaweicloud.com/api-octopus/toctopics/zh-cn_topic_0000002303806046.html