文档

CloneService - 复制服务

更新时间:

复制服务。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

POST /api/v2/services/{ClusterId}/{ServiceName}/clone

请求参数

名称类型必填描述示例值
ClusterIdstring

集群 Id

cn-hangzhou
ServiceNamestring

服务名

foo
bodystring

请求 body。

{ "name": "foo", "model_path": "http://path/to/model.tar.gz", "processor": "tensorflow_cpu", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 } }

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

Id of the request

40325405-579C-4D82****
ServiceIdstring

服务 Id

eas-m-r9knx7n9guf2p*****
ServiceNamestring

服务名

foo
Statusstring

服务状态

Creating
InternetEndpointstring

公网访问地址

http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo
IntranetEndpointstring

快速访问地址

http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo

示例

正常返回示例

JSON格式

{
  "RequestId": "40325405-579C-4D82****",
  "ServiceId": "eas-m-r9knx7n9guf2p*****",
  "ServiceName": "foo",
  "Status": "Creating",
  "InternetEndpoint": "http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo",
  "IntranetEndpoint": "http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo"
}

错误码

访问错误中心查看更多错误码。

  • 本页导读
文档反馈