Menampilkan daftar layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ListServices |
get |
*Service
|
None | None |
Sintaks permintaan
GET /api/v2/services HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Sort |
string |
No |
Bidang pengurutan. Secara default, hasil diurutkan berdasarkan timestamp dalam Pesanan menurun. |
CreateTime |
| Order |
string |
No |
Pesanan pengurutan. Nilai valid:
|
asc |
| Filter |
string |
No |
Kata kunci untuk pencarian fuzzy. Parameter ini hanya mendukung pencarian fuzzy berdasarkan nama layanan. |
foo |
| PageNumber |
integer |
No |
Nomor halaman hasil yang akan dikembalikan. Nilai default adalah 1. |
1 |
| PageSize |
integer |
No |
Jumlah layanan yang akan dikembalikan per halaman. Nilai default adalah 100. |
100 |
| GroupName |
string |
No |
Nama kelompok layanan. Untuk mengetahui cara mendapatkan nama ini, lihat ListServices. |
foo |
| ParentServiceUid |
string |
No |
UID layanan utama. Parameter ini berlaku untuk layanan anggota dalam kelompok layanan. |
eas-m-ijafy3c8cxxxx |
| ServiceType |
string |
No |
Tipe layanan. Nilai valid:
Valid values:
|
Standard |
| Label |
object |
No |
Memfilter layanan berdasarkan label. |
|
|
string |
No |
Specify the label in the |
{"key1":"value1","key2":null} |
|
| ServiceStatus |
string |
No |
Status layanan. Valid values:
|
Running |
| ServiceName |
string |
No |
Nama layanan. |
echo_test |
| ServiceUid |
string |
No |
UID layanan. |
eas-m-c9iw3yitxxxx |
ResourceName
deprecated
|
string |
No |
Nama atau ID kelompok sumber daya layanan. |
eas-r-hd0qwy8cxxxx |
| WorkspaceId |
string |
No |
ID ruang kerja. |
1234** |
| QuotaId |
string |
No |
ID kuota. |
quota1**** |
| Gateway |
string |
No |
ID gerbang privat. |
gw-1uhcqmsc7x22****** |
| Role |
string |
No |
Peran layanan. Valid values:
|
LLMGateway |
| ResourceType |
string |
No |
Tipe sumber daya yang digunakan layanan. Nilai valid:
Valid values:
|
PublicResource |
| IncludeNoWorkspace |
boolean |
No |
Apakah akan menyertakan layanan yang tidak termasuk dalam ruang kerja mana pun. Nilai default adalah true. |
true |
| ResourceAliasName |
string |
No |
Nama kustom kelompok sumber daya. |
example |
| ResourceId |
string |
No |
ID kelompok sumber daya. Untuk mengetahui cara mengkueri ID ini, lihat ListResources. |
eas-r-asdas**** |
| ResourceBurstable |
boolean |
No |
Apakah akan mengaktifkan kolam sumber daya burstable untuk layanan. Valid values:
|
true |
| CronscalerEnabled |
boolean |
No |
Apakah akan mengaktifkan penyesuaian skala otomatis terjadwal untuk layanan. Valid values:
|
true |
| AutoscalerEnabled |
boolean |
No |
Apakah akan mengaktifkan Penyesuaian Skala Otomatis untuk layanan. Valid values:
|
true |
| TrafficState |
string |
No |
Apakah layanan menerima trafik kelompok. Parameter ini hanya berlaku untuk layanan dalam kelompok layanan. Valid values:
|
grouping |
| CallerUid |
string |
No |
UID akun yang membuat layanan. |
19989224166xxxxxxx |
| Accessibility |
string |
No |
PUBLIC |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Services |
array |
The list of services. |
|
| Service |
A service instance. |
||
| PageNumber |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of services per page. |
100 |
| TotalCount |
integer |
The total number of services. |
2 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"Services": [
{
"ServiceGroup": "my_group",
"Memory": 1024,
"Cpu": 1,
"Image": "registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320",
"Gpu": 0,
"TotalInstance": 1,
"AccessToken": "MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********",
"ResourceBurstable": true,
"InternetEndpoint": "http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo",
"ResourceAlias": "my_resource",
"Status": "Running",
"TrafficState": "standalone",
"RequestId": "40325405-579C-4D82********",
"Resource": "eas-r-xxxxxxx",
"SecondaryInternetEndpoint": "http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\n",
"Labels": [
{
"LabelValue": "value1",
"LabelKey": "key1"
}
],
"Namespace": "echo",
"Weight": 100,
"Role": "Queue",
"SecondaryIntranetEndpoint": "http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo\n",
"PendingInstance": 0,
"ServiceName": "echo",
"SafetyLock": "dangerous",
"Region": "cn-shanghai",
"AppType": "LLM",
"InstanceCountInResource": {
"Quota": 10,
"Public": 10,
"Dedicated": 10
},
"IntranetEndpoint": "http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo",
"QuotaId": "quotaxxxxx",
"Message": "Service start successfully",
"CurrentVersion": 1,
"RunningInstance": 1,
"WorkspaceId": "123445",
"CallerUid": "20123*******",
"Reason": "RUNNING",
"Source": "dsw",
"ServiceId": "eas-m-xxasdat",
"AppVersion": "v1",
"CronscalerEnabled": true,
"ServiceConfig": "{\"metadata\":{\"cpu\":1,\"instance\":1,\"memory\":1024},\"name\":\"echo\",\"processor_entry\":\"libecho.so\",\"processor_path\":\"http://oss-cn-hangzhou-zmf.aliyuncs.com/059247/echo_processor_release.tar.gz\",\"processor_type\":\"cpp\"}",
"Gateway": "gw-xxxxxx",
"AppSpecName": "llama_7b_fp16",
"GPUCorePercentage": 50,
"GPUMemory": 20,
"AppConfig": "{\"ModelStorage\":\"oss\"}",
"CreateTime": "2021-01-29T11:13:20Z",
"AutoscalerEnabled": true,
"ExtraData": "{\"blue_green_services\":[\"test\",\"testxxxx\"]}",
"LatestVersion": 1,
"UpdateTime": "2021-01-29T11:13:20Z",
"ServiceUid": "eas-m-xxasdat\n",
"ParentUid": "11234*******",
"RoleAttrs": "{\"ApproxMaxLength\":null,\"Length\":null,\"MaxPayloadBytes\":null}"
}
],
"PageNumber": 1,
"PageSize": 100,
"TotalCount": 2
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.