Mengkueri daftar aplikasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetApplicationList |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
Wilayah. |
cn-hangzhou |
| AppName |
string |
No |
Nama aplikasi. |
rest-container |
| AppId |
string |
No |
ID aplikasi. |
hkhon1po62@c3df23522b***** |
| Source |
string |
No |
Sumber aplikasi. Nilainya ditetapkan sebagai edasmsc. |
edasmsc |
| Language |
string |
No |
Bahasa pemrograman, seperti Java atau Go. |
Java |
| PageNumber |
integer |
Yes |
Nomor halaman. |
1 |
| PageSize |
integer |
Yes |
Jumlah entri per halaman. |
10 |
| SwitchEnable |
boolean |
No |
Apakah akan mengaktifkan switch. |
true |
| SentinelEnable |
boolean |
No |
Apakah akan mengaktifkan Komponen Sentinel. |
true |
| Namespace |
string |
No |
namespace layanan mikro tempat aplikasi berada. |
default |
| Tags |
array<object> |
No |
Tag Alibaba Cloud. Anda dapat memfilter aplikasi berdasarkan tag Alibaba Cloud. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The custom tag key. It can contain up to 128 characters and cannot start with |
tagKey |
| Value |
string |
No |
The tag value. |
tagValue |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Message |
string |
The message. |
请求处理成功 |
| RequestId |
string |
The request ID. |
F55E608F-7C15-****-9CFD-DF832EBC4A0F |
| Data |
object |
The data structure. |
|
| Result |
array<object> |
The information about the applications. |
|
|
array<object> |
The data structure. |
||
| Status |
integer |
The status. |
0 |
| ExtraInfo |
string |
The additional information. |
{} |
| AppName |
string |
The application name. |
finance |
| AppId |
string |
The application ID. |
hkhon1po62@5f1b08becb***** |
| UserId |
string |
The user ID. |
1234567890 |
| InstancesNumber |
integer |
The total number of instances. |
1 |
| Source |
string |
The source of the application. |
edasmsc |
| Language |
string |
The programming language of the application. |
JAVA |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| Namespace |
string |
The microservice namespace to which the application belongs. |
default |
| Tags |
object |
The Alibaba Cloud tags. |
{"tagKey1":"tagValue1","tagKey2":"tagValue2"} |
| TotalSize |
integer |
The total number of entries. |
11 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"Message": "请求处理成功",
"RequestId": "F55E608F-7C15-****-9CFD-DF832EBC4A0F",
"Data": {
"Result": [
{
"Status": 0,
"ExtraInfo": "{}",
"AppName": "finance",
"AppId": "hkhon1po62@5f1b08becb*****",
"UserId": "1234567890",
"InstancesNumber": 1,
"Source": "edasmsc",
"Language": "JAVA",
"RegionId": "cn-hangzhou",
"Namespace": "default",
"Tags": {
"tagKey1": "tagValue1",
"tagKey2": "tagValue2"
}
}
],
"TotalSize": 11,
"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.