Mengkloning sebuah layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:CloneService |
create |
*全部资源
|
None | None |
Sintaks permintaan
POST /api/v2/services/{ClusterId}/{ServiceName}/clone HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID klaster. |
cn-hangzhou |
| ServiceName |
string |
Yes |
Nama layanan. Untuk informasi selengkapnya tentang cara mengkueri nama layanan, lihat ListServices. |
foo |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
string |
No |
Isi permintaan. Untuk informasi selengkapnya, lihat CreateService. |
{ "name": "foo", "model_path": "http://path/to/model.tar.gz", "processor": "tensorflow_cpu", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 } } |
| Labels |
object |
No |
Label layanan yang akan dikloning. |
|
|
string |
No |
Label layanan kustom. |
{"key":"value"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan |
40325405-579C-4D82**** |
| ServiceId |
string |
ID layanan. |
eas-m-r9knx7n9guf2p***** |
| ServiceName |
string |
Nama layanan. |
foo |
| Status |
string |
Status layanan. |
Creating |
| InternetEndpoint |
string |
Endpoint publik layanan. |
http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo |
| IntranetEndpoint |
string |
Endpoint privat layanan. |
http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.