Mengkueri daftar aplikasi.
Coba sekarang
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadApplication |
*All Resource
|
None | None |
Sintaks permintaan
POST /pop/v5/app/app_list HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
No |
ID kluster. Tentukan parameter ini jika Anda ingin memfilter aplikasi berdasarkan kluster. |
c37aec2a-bcca-4ec1-****-************ |
| LogicalRegionId |
string |
No |
ID namespace. Tentukan parameter ini jika Anda ingin memfilter aplikasi berdasarkan namespace. |
cn-beijing:test |
| AppName |
string |
No |
Nama aplikasi. Tentukan parameter ini jika Anda ingin memfilter aplikasi berdasarkan nama aplikasi. |
testapp |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. Tentukan parameter ini jika Anda ingin memfilter aplikasi berdasarkan kelompok sumber daya. |
rg-aek24j4s4b***** |
| LogicalRegionIdFilter |
string |
No |
ID namespace yang Anda gunakan dalam pencarian tepat untuk memfilter aplikasi. |
cn-beijing:test |
| AppIds |
string |
No |
ID aplikasi. |
[ "5657d271-****-4f03-9bb2-431f942886bb", "5657d271-****-4f03-9bb2-431f942bbddd" ] |
| CurrentPage |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. |
20 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The content returned. |
||
| Code |
integer |
The HTTP status code that is returned. |
200 |
| Message |
string |
The message that is returned. |
success |
| RequestId |
string |
The request ID. |
5d6fa0bc-cc3********** |
| ApplicationList |
object |
||
| Application |
array<object> |
The information about applications. |
|
|
object |
The information about the array object. |
||
| AppId |
string |
The ID of the application. |
00ee517d-dd7d-4d4e-****-************ |
| RegionId |
string |
The region ID of the application. |
cn-beijing:docTes |
| Name |
string |
The name of the application. |
doc-test-consumer |
| Instances |
integer |
The number of application instances. |
5 |
| Port |
integer |
The service port of the application. |
8080 |
| State |
string |
The state of the application. Valid values:
|
RUNNING |
| CreateTime |
integer |
The time when the application was created. |
1664208000000 |
| SlbIp |
string |
The IP address of the internal-facing Server Load Balancer (SLB) instance. |
192.168.0.*** |
| SlbPort |
integer |
The port of the internal-facing SLB instance. |
80 |
| SlbListenerPort |
integer |
The listener port of the internal-facing SLB instance. |
8088 |
| ExtSlbListenerPort |
integer |
The listener port of the Internet-facing SLB instance. |
8080 |
| BuildPackageId |
integer |
The build package number of Enterprise Distributed Application Service (EDAS) Container. |
58 |
| ExtSlbIp |
string |
The IP address of the Internet-facing SLB instance. |
100.100.70.*** |
| ApplicationType |
string |
The deployment type of the application. Valid values:
|
FatJar |
| ClusterType |
integer |
The type of the cluster in which the application is deployed. Valid values:
|
2 |
| RunningInstanceCount |
integer |
The number of running application instances. |
0 |
| ClusterId |
string |
The ID of the cluster. |
c37aec2a-bcca-4ec1-****-************ |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-aek24j4s4b***** |
| K8sNamespace |
string |
The namespace of the Kubernetes cluster. |
default |
| NamespaceId |
string |
The ID of the microservices namespace. |
cn-hangzhou:test |
Contoh
Respons sukses
JSONformat
{
"Code": 200,
"Message": "success",
"RequestId": "5d6fa0bc-cc3**********",
"ApplicationList": {
"Application": [
{
"AppId": "00ee517d-dd7d-4d4e-****-************",
"RegionId": "cn-beijing:docTes",
"Name": "doc-test-consumer",
"Instances": 5,
"Port": 8080,
"State": "RUNNING",
"CreateTime": 1664208000000,
"SlbIp": "192.168.0.***",
"SlbPort": 80,
"SlbListenerPort": 8088,
"ExtSlbListenerPort": 8080,
"BuildPackageId": 58,
"ExtSlbIp": "100.100.70.***",
"ApplicationType": "FatJar",
"ClusterType": 2,
"RunningInstanceCount": 0,
"ClusterId": "c37aec2a-bcca-4ec1-****-************",
"ResourceGroupId": "rg-aek24j4s4b*****",
"K8sNamespace": "default",
"NamespaceId": "cn-hangzhou:test"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat 变更详情Release Notes untuk daftar lengkap.