Mengueri daftar instance aplikasi microservice.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetApplicationInstanceList |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
No |
Namespace Microservices Engine (MSE) tempat aplikasi berada. |
default |
| AppName |
string |
No |
Nama aplikasi. |
example-app |
AppId
deprecated
|
string |
No |
ID aplikasi. |
abcde@12345 |
| Tag |
string |
No |
Tag yang ingin Anda tambahkan ke node. |
gray |
| PageNumber |
integer |
Yes |
Nomor halaman. Halaman dimulai dari halaman 1. |
1 |
| PageSize |
integer |
Yes |
Jumlah entri per halaman. |
20 |
| Region |
string |
No |
Region. |
cn-hangzhou |
| AcceptLanguage |
string |
No |
Bahasa yang ingin digunakan untuk menampilkan hasil. Nilai yang valid: zh dan en. zh menunjukkan bahasa Tionghoa, yang merupakan nilai default. en menunjukkan bahasa Inggris. |
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
object |
Data yang dikembalikan. |
|
| Result |
array<object> |
Node yang dikueri. |
|
|
array<object> |
|||
| Ip |
string |
The node IP address. |
10.1.2.3 |
| Tags |
array<object> |
The node tags. |
|
|
object |
|||
| Tag |
string |
标签值。 |
gray |
| Port |
string |
The application port. |
8080 |
| TotalSize |
integer |
Jumlah total node. |
100 |
| PageNumber |
integer |
Nomor halaman. Halaman dimulai dari halaman 1. |
1 |
| PageSize |
integer |
Jumlah entri per halaman. |
10 |
Contoh
Respons sukses
JSONformat
{
"Data": {
"Result": [
{
"Ip": "10.1.2.3",
"Tags": [
{
"Tag": "gray"
}
],
"Port": "8080"
}
],
"TotalSize": 100,
"PageNumber": 1,
"PageSize": 10
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.