Memperbarui layanan aplikasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateAppService |
update |
*All Resource
|
None | None |
Sintaks permintaan
PUT /api/v2/app_services/{ClusterId}/{ServiceName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah layanan. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan. |
foo |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
No |
ID ruang kerja. |
1234** |
| QuotaId |
string |
No |
ID kuota. |
abcdef |
| body |
object |
No |
Isi permintaan. |
|
| AppType |
string |
No |
Tipe aplikasi. Nilai yang valid:
Valid values:
|
LLM |
| AppVersion |
string |
No |
Versi aplikasi. |
v1 |
| ServiceSpec |
string |
No |
Spesifikasi layanan. Nilai yang valid:
|
llama_7b_fp16 |
| Replicas |
integer |
No |
Jumlah instans. Nilai ini harus lebih besar dari 0. |
1 |
| Config |
object |
No |
Konfigurasi tambahan yang diperlukan untuk penerapan layanan. |
|
|
any |
No |
Informasi aplikasi seperti pemasangan model. Untuk informasi selengkapnya, lihat CreateAppService. |
{ "ModelStorage": "oss", "OssPath": "oss://examplebucket/xxxx/" } |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
40325405-579C-4D82**** |
| Message |
string |
Pesan yang dikembalikan. |
Success |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"Message": "Success"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.