AI开发平台MODELARTS-更新服务配置:请求示例

时间:2024-11-22 17:41:04

请求示例

如下以更新“real-time”类型的服务为例。

PUT https://{endpoint}/v1/{project_id}/services/{service_id}

{
  "description" : "",
  "status" : "running",
  "config" : [ {
    "model_id" : "xxxx",
    "weight" : "100",
    "specification" : "modelarts.vm.cpu.2u",
    "instance_count" : 1
  } ]
}
support.huaweicloud.com/api-modelarts/UpdateService.html