Menampilkan daftar instance dari layanan yang ditentukan.
Deskripsi operasi
Pastikan Anda memahami metode penagihan dan harga Elastic Algorithm Service (EAS) sebelum memanggil operasi ini.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ListServiceInstances |
get |
*Service
|
None | None |
Sintaks permintaan
GET /api/v2/services/{ClusterId}/{ServiceName}/instances HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID region tempat layanan di-deploy. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan. Untuk informasi selengkapnya, lihat ListServices. |
foo |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default-nya adalah 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman. Nilai default-nya adalah 100. |
20 |
| Filter |
string |
No |
Kata kunci untuk pencarian. Anda dapat mencari berdasarkan nama instance, alamat IP instance, alamat IP host, atau tipe instance. |
10.118.xx.xx |
| ResourceType |
string |
No |
Tipe grup resource tempat instance layanan berada. Valid values:
|
PublicResource |
| InstanceType |
string |
No |
Tipe instance. |
ecs.c7.large |
| InstanceStatus |
string |
No |
Status instance layanan. |
Running |
| InstanceIP |
string |
No |
Alamat IP instance layanan. |
10.224.xx.xx |
| InstanceName |
string |
No |
Nama instance layanan. |
foo-bdc5xxxx-8l7rk |
| HostIP |
string |
No |
Alamat IP host tempat instance layanan di-deploy. |
10.224.xx.xx |
| IsSpot |
boolean |
No |
Menentukan apakah instance merupakan spot instance. |
false |
| Role |
string |
No |
Peran layanan. Valid values:
|
Queue |
| Sort |
string |
No |
Field yang digunakan untuk pengurutan. Valid values:
|
StartTime |
| Order |
string |
No |
Urutan pengurutan. Valid values:
|
desc |
| MemberType |
string |
No |
Tipe sub-layanan. Parameter ini hanya valid untuk layanan agregasi. |
LLMDecode |
| ListReplica |
boolean |
No |
Menentukan apakah akan mengkueri daftar replika instance. |
true |
| ReplicaName |
string |
No |
Nama replika instance. |
cbh-qwen3-a1bc-prefill-ep1tp4dp |
| QuotaId |
string |
No |
ID kuota. |
quota1**** |
| Resource |
string |
No |
Grup resource tempat instance berada. |
eas-r-xxxxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| RequestId |
string |
ID permintaan. |
40325405-579C-4D82**** |
| Instances |
array |
Daftar instance layanan. |
|
| Instance |
Instance layanan. |
||
| PageNumber |
integer |
Nomor halaman yang dikembalikan. |
1 |
| PageSize |
integer |
Jumlah entri yang dikembalikan per halaman. |
20 |
| TotalCount |
integer |
Jumlah total instance. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"Instances": [
{
"HostIP": "11.0.XX.XX",
"HostName": "smart-scene-cls-854dbdc99d-****",
"InnerIP": "172.17.0.17",
"InstanceName": "foo-5fc8946767-v****",
"InstancePort": 8080,
"LastState": [
[]
],
"Namespace": "foo",
"Reason": "RUNNING",
"RestartCount": 1,
"Status": "Running",
"TotalProcesses": 1,
"ReadyProcesses": 1,
"StartAt": "2021-05-27T09:46:05Z",
"Role": "Standard",
"ResourceType": "PublicResource",
"TenantInstanceIP": "192.168.xx.xx",
"TenantHostIP": "192.168.xx.xx",
"IsSpot": false,
"CurrentAmount": 0.444,
"OriginalAmount": 2.2,
"Isolated": false,
"Zone": "cn-shanghai-a",
"ExternalIP": "192.168.1.100",
"ExternalInstancePort": 8080,
"StartTime": "2021-05-27T09:46:05Z",
"InstanceType": "ecs.c7.large",
"IsLatest": false,
"Detached": false,
"IsReplica": false,
"ReplicaName": "",
"CreateTime": ""
}
],
"PageNumber": 1,
"PageSize": 20,
"TotalCount": 1
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.