复制服务。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
POST /api/v2/services/{ClusterId}/{ServiceName}/clone
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClusterId | string | 是 | 集群 Id | cn-hangzhou |
ServiceName | string | 是 | 服务名 | foo |
body | string | 否 | 请求 body。 | { "name": "foo", "model_path": "http://path/to/model.tar.gz", "processor": "tensorflow_cpu", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 } } |
返回参数
示例
正常返回示例
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"
}
错误码
访问错误中心查看更多错误码。