Clones a service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:CloneService |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v2/services/{ClusterId}/{ServiceName}/clone HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
cn-hangzhou |
| ServiceName |
string |
Yes |
The service name. For more information about how to query the service name, see ListServices. |
foo |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
string |
No |
The request body. For more information, see CreateService. |
{ "name": "foo", "model_path": "http://path/to/model.tar.gz", "processor": "tensorflow_cpu", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 } } |
| Labels |
object |
No |
The label of the service to be cloned. |
|
|
string |
No |
The custom service label. |
{"key":"value"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
Id of the request |
40325405-579C-4D82**** |
| ServiceId |
string |
The service ID. |
eas-m-r9knx7n9guf2p***** |
| ServiceName |
string |
The service name. |
foo |
| Status |
string |
The service status. |
Creating |
| InternetEndpoint |
string |
The public endpoint of the service. |
http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo |
| IntranetEndpoint |
string |
The private endpoint of the service. |
http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo |
Examples
Success response
JSON format
{
"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"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.