复制服务。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eas:CloneService |
create |
*全部资源
|
无 | 无 |
请求语法
POST /api/v2/services/{ClusterId}/{ServiceName}/clone HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
服务所在地域。 |
cn-hangzhou |
| ServiceName |
string |
是 |
服务名。如何查看服务名称,请参见 ListServices 。 |
foo |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body |
string |
否 |
请求 body。参数配置说明,请参见 CreateService 。 |
{ "name": "foo", "model_path": "http://path/to/model.tar.gz", "processor": "tensorflow_cpu", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 } } |
| Labels |
object |
否 |
复制服务对应的 Label。 |
|
|
string |
否 |
用户定义标签。 |
{"key":"value"} |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
40325405-579C-4D82**** |
| ServiceId |
string |
服务 Id。 |
eas-m-r9knx7n9guf2p***** |
| ServiceName |
string |
服务名。 |
foo |
| Status |
string |
服务状态。 |
Creating |
| InternetEndpoint |
string |
公网访问地址。 |
http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo |
| IntranetEndpoint |
string |
快速访问地址。 |
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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。