調用ListApplications列出建立的應用列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:ListApplications |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterNames |
string |
否 |
應用叢集名。支援多選,以","分割;輸入 All,查詢使用者名稱下所有叢集的應用列表;預設查詢全量。 |
poc,pre |
| AppVersions |
string |
否 |
應用的商務服務版本號碼。支援多選,以","分割;輸入 All,輸出所有版本資料。預設只輸出穩定版版本號碼的關聯資料。 |
v1,v2 |
| Level |
string |
否 |
應用邊緣資源的地區統計層級。枚舉類型,取值範圍:
預設 National。 枚舉值:
|
National |
| OutAppInfoParams |
string |
否 |
是否輸出統計資源執行個體/容器 Pod 等維度資訊。Json 的字串格式。預設輸出所有資訊。 |
{\"appInfo\":true,\"detailStat\": true, \"appVersionStat\": true, \"districtStat\":true ,\"instanceStat\": true, \"podCountStat\": true} |
| PageNumber |
integer |
否 |
頁碼,起始值為 1,匯出全部資訊時可不傳入。 |
1 |
| PageSize |
integer |
否 |
分頁查詢時設定的每頁行數,匯出全部時可不傳入。 |
10 |
| MinDate |
string |
否 |
查詢起始時間,格式"2006-01-02";預設無時間限制。 |
2022-02-15 |
| MaxDate |
string |
否 |
查詢終止時間,格式"2006-01-02";預設無時間限制。 |
2022-02-20 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Applications |
object |
||
| Application |
array<object> |
應用列表。 |
|
|
array<object> |
應用列表。 |
||
| AppList |
object |
||
| App |
array<object> |
應用列表。 |
|
|
object |
應用列表。 |
||
| AppId |
string |
應用 ID。 |
e76f8985-7965-41fc-925b-9648bb6bf650 |
| AppInfo |
string |
應用資訊。包括資源規格、商務服務參數配置、當前資源清單等資訊。 |
{ "AppStatus":{ "Phase":"RUNNING", "StatusDescrip":"{\"status\":\"UPDATE_SUCCESS\",\"step\":\"DONE\",\"descrip\":\"update to version:1022 success\",\"start_time\":\"2022-03-01 16:18:22\"}", "UpdateTime":"2022-03-01 16:18:22", "OrderStatus":null }, "ResourceAttribute":{ "NetSecurityInfo":null, "InitConfig":null, "InventoryType":"Ens", "InstanceSpec":"ens.gi6s-c12g1.large", "SystemDiskSize":100, "DataDiskSize":0, "BandwithOut":5000, "SchedulingStrategy":"Disperse", "ImageId":"m-5or73kzkuxytv7hh6wxr6yc5q", "ResourceType":"Linux", "AreaLevel":"National", "IpType":"PublicIP" }, "WorkloadAttribute":[ { "Name":"andorid", "Count":15, "ServiceConfig":{ "PortsBindConfig":{ "NetServiceContainer":"uravi-service", "Ports":[ { "Protocol":"TCP", "BindType":"Mapping", "StartNodePorts":"31000-31009", "ContainerPorts":"4440-4449" }, { "Protocol":"TCP", "BindType":"PassThrough", "StartNodePorts":"59000-59000", "ContainerPorts":"59000-59000" }, { "Protocol":"UDP", "BindType":"PassThrough", "StartNodePorts":"40001-40010", "ContainerPorts":"40001-40010" } ] }, "ServiceContainerName":"android" } }, { "Name":"coturn", "Count":1, "ServiceConfig":{ "PortsBindConfig":{ "NetServiceContainer":"coturn", "Ports":[ { "Protocol":"TCP", "BindType":"PassThrough", "StartNodePorts":"3478-3478", "ContainerPorts":"3478-3478" }, { "Protocol":"UDP", "BindType":"PassThrough", "StartNodePorts":"3478-3478", "ContainerPorts":"3478-3478" } ] }, "ServiceContainerName":"coturn" } }, { "Name":"aic-manager", "Count":1, "ServiceConfig":null } ] } |
| ClusterName |
string |
叢集名稱。 |
ay-ads-hz-h |
| PageNumber |
integer |
分頁查詢的頁碼。 |
1 |
| PageSize |
integer |
分頁查詢時設定的每頁行數。 |
10 |
| RequestId |
string |
請求 ID。 |
50373E71-7710-4620-8AAB-133CCE49451C |
| TotalCount |
integer |
總條目數。 |
49 |
樣本
正常返回樣本
JSON格式
{
"Applications": {
"Application": [
{
"AppList": {
"App": [
{
"AppId": "e76f8985-7965-41fc-925b-9648bb6bf650",
"AppInfo": "{\n \"AppStatus\":{\n \"Phase\":\"RUNNING\",\n \"StatusDescrip\":\"{\\\"status\\\":\\\"UPDATE_SUCCESS\\\",\\\"step\\\":\\\"DONE\\\",\\\"descrip\\\":\\\"update to version:1022 success\\\",\\\"start_time\\\":\\\"2022-03-01 16:18:22\\\"}\",\n \"UpdateTime\":\"2022-03-01 16:18:22\",\n \"OrderStatus\":null\n },\n \"ResourceAttribute\":{\n \"NetSecurityInfo\":null,\n \"InitConfig\":null,\n \"InventoryType\":\"Ens\",\n \"InstanceSpec\":\"ens.gi6s-c12g1.large\",\n \"SystemDiskSize\":100,\n \"DataDiskSize\":0,\n \"BandwithOut\":5000,\n \"SchedulingStrategy\":\"Disperse\",\n \"ImageId\":\"m-5or73kzkuxytv7hh6wxr6yc5q\",\n \"ResourceType\":\"Linux\",\n \"AreaLevel\":\"National\",\n \"IpType\":\"PublicIP\"\n },\n \"WorkloadAttribute\":[\n {\n \"Name\":\"andorid\",\n \"Count\":15,\n \"ServiceConfig\":{\n \"PortsBindConfig\":{\n \"NetServiceContainer\":\"uravi-service\",\n \"Ports\":[\n {\n \"Protocol\":\"TCP\",\n \"BindType\":\"Mapping\",\n \"StartNodePorts\":\"31000-31009\",\n \"ContainerPorts\":\"4440-4449\"\n },\n {\n \"Protocol\":\"TCP\",\n \"BindType\":\"PassThrough\",\n \"StartNodePorts\":\"59000-59000\",\n \"ContainerPorts\":\"59000-59000\"\n },\n {\n \"Protocol\":\"UDP\",\n \"BindType\":\"PassThrough\",\n \"StartNodePorts\":\"40001-40010\",\n \"ContainerPorts\":\"40001-40010\"\n }\n ]\n },\n \"ServiceContainerName\":\"android\"\n }\n },\n {\n \"Name\":\"coturn\",\n \"Count\":1,\n \"ServiceConfig\":{\n \"PortsBindConfig\":{\n \"NetServiceContainer\":\"coturn\",\n \"Ports\":[\n {\n \"Protocol\":\"TCP\",\n \"BindType\":\"PassThrough\",\n \"StartNodePorts\":\"3478-3478\",\n \"ContainerPorts\":\"3478-3478\"\n },\n {\n \"Protocol\":\"UDP\",\n \"BindType\":\"PassThrough\",\n \"StartNodePorts\":\"3478-3478\",\n \"ContainerPorts\":\"3478-3478\"\n }\n ]\n },\n \"ServiceContainerName\":\"coturn\"\n }\n },\n {\n \"Name\":\"aic-manager\",\n \"Count\":1,\n \"ServiceConfig\":null\n }\n ]\n}"
}
]
},
"ClusterName": "ay-ads-hz-h"
}
]
},
"PageNumber": 1,
"PageSize": 10,
"RequestId": "50373E71-7710-4620-8AAB-133CCE49451C",
"TotalCount": 49
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. | 介面調用出錯。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。