擷取邊緣容器應用的版本列表,包括使用者建立成功的所有應用列表資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
esa:ListEdgeContainerAppVersions |
none |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| AppId |
string |
是 |
應用 ID,可使用 ListEdgeContainerApps 介面擷取應用 ID。 |
app-88068867578379**** |
| PageNumber |
integer |
否 |
頁碼。取值:1~65535之間的任意整數。 |
1 |
| PageSize |
integer |
否 |
頁大小。取值:1~100之間的任意整數。 |
10 |
| OrderKey |
string |
否 |
排序欄位,取值如下:
|
Name |
| OrderType |
string |
否 |
排序方向。取值:
|
Desc |
| SearchType |
string |
否 |
模糊尋找的類型,支援 VersionId,Name。 |
VersionId |
| SearchKey |
string |
否 |
查詢參數。 |
ver-100568263967926**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
F61CDR30-E83C-4FDA-BF73-9A94CDD44229 |
| PageNumber |
integer |
返回資料的頁碼。 |
1 |
| PageSize |
integer |
頁大小。 |
10 |
| TotalCount |
integer |
總條數。 |
20 |
| Versions |
array<object> |
版本列表。 |
|
|
array<object> |
描述版本資訊對象。 |
||
| LastPublishTime |
string |
該版本上次的發布時間。日期格式按照 ISO8601 標記法,並使用 UTC 時間,格式為 yyyy-MM-ddTHH:mm:ssZ。 |
2023-02-10T02:48:36Z |
| PublishTime |
string |
版本的本次發布時間。日期格式按照 ISO8601 標記法,並使用 UTC 時間,格式為 yyyy-MM-ddTHH:mm:ssZ。 |
2023-02-10T02:48:36Z |
| Status |
string |
目前的版本的狀態。取值:
|
created |
| CreateTime |
string |
版本建立時間。日期格式按照 ISO8601 標記法,並使用 UTC 時間,格式為 yyyy-MM-ddTHH:mm:ssZ。 |
2022-11-10T02:53:16Z |
| AppId |
string |
應用版本歸屬的應用 ID。 |
app-88068867578379**** |
| VersionId |
string |
版本 ID。 |
ver-87962637161651**** |
| Name |
string |
版本名稱。 |
version01 |
| UpdateTime |
string |
版本的上次修改時間。日期格式按照 ISO8601 標記法,並使用 UTC 時間,格式為 yyyy-MM-ddTHH:mm:ssZ。 |
2023-04-16 10:51:00 |
| Remarks |
string |
備忘資訊 |
test version |
| Containers |
array<object> |
該版本包含的容器數組。 |
|
|
array<object> |
該版本包含的容器數組。 |
||
| EnvVariables |
string |
容器環境變數。 |
ENV=prod |
| Args |
string |
容器啟動參數。 |
-c a=1 |
| Spec |
string |
容器規格。 |
1C2G |
| Image |
string |
容器鏡像地址。 |
nginx |
| Command |
string |
容器啟動命令。 |
openresty -g \"daemon off;\" |
| ProbeType |
string |
容器探針類型。 |
httpGet |
| Name |
string |
容器名稱。 |
container1 |
| PreStop |
string |
容器停止前執行命令。 |
sh prestop.sh "echo hello world" |
| PostStart |
string |
容器啟動前執行命令。 |
sh poststart.sh "echo hello world" |
| ProbeContent |
object |
描述容器探針的具體對象。 |
|
| SuccessThreshold |
integer |
容器的健全狀態檢查連續成功次數。 |
1 |
| Host |
string |
容器健全狀態檢查的網域名稱。 |
test.com |
| HttpHeaders |
string |
容器健全狀態檢查攜帶要求標頭。 |
{\"Content-Type\":\"application/json\"} |
| Scheme |
string |
容器健全狀態檢查請求協議。 |
http |
| InitialDelaySeconds |
integer |
容器探針初始化延遲時間。 |
10 |
| Command |
string |
探針運行命令。 |
openresty -g "daemon off; |
| FailureThreshold |
integer |
容器健全狀態檢查連續失敗次數。 |
3 |
| TimeoutSeconds |
integer |
容器健全狀態檢查的逾時時間。 |
30 |
| Path |
string |
容器健全狀態檢查的路徑。 |
/health_check |
| Port |
integer |
容器健全狀態檢查的連接埠。 |
80 |
| PeriodSeconds |
integer |
容器健全狀態檢查的間隔時間。 |
5 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "F61CDR30-E83C-4FDA-BF73-9A94CDD44229",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 20,
"Versions": [
{
"LastPublishTime": "2023-02-10T02:48:36Z\n",
"PublishTime": "2023-02-10T02:48:36Z",
"Status": "created",
"CreateTime": "2022-11-10T02:53:16Z",
"AppId": "app-88068867578379****",
"VersionId": "ver-87962637161651****",
"Name": "version01",
"UpdateTime": "2023-04-16 10:51:00",
"Remarks": "test version",
"Containers": [
{
"EnvVariables": "ENV=prod",
"Args": "-c a=1",
"Spec": "1C2G",
"Image": "nginx",
"Command": "openresty -g \\\"daemon off;\\\"",
"ProbeType": "httpGet",
"Name": "container1",
"PreStop": "sh prestop.sh \"echo hello world\" ",
"PostStart": "sh poststart.sh \"echo hello world\" ",
"ProbeContent": {
"SuccessThreshold": 1,
"Host": "test.com",
"HttpHeaders": "{\\\"Content-Type\\\":\\\"application/json\\\"}",
"Scheme": "http",
"InitialDelaySeconds": 10,
"Command": "openresty -g \"daemon off;",
"FailureThreshold": 3,
"TimeoutSeconds": 30,
"Path": "/health_check",
"Port": 80,
"PeriodSeconds": 5
}
}
]
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.OrderType | The specified OrderType is invalid. Please check the OrderType parameter. You may not have set it to either Asc or Desc. Please make the necessary changes and call the interface again. | OrderType參數無效。請檢查OrderType參數,你有可能未設定為 Asc、Desc其中一種,請進行修改後,重新調用介面。 |
| 400 | InvalidParameter.OrderKey | The specified OrderKey is invalid. Please check the OrderKey parameter. | OrderKey參數無效。請檢查OrderKey參數,該參數不能賦值為非法字元如 @、#、% 等,請進行修改後,重新調用介面。 |
| 400 | InvalidParameter | Invalid parameter. Check the parameter configuration. | 參數正確性校正失敗,請檢查的參數內容。 |
| 400 | InvalidParameter.appid | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. | 傳入的應用ID格式不正確,可使用ListEdgeContainerApps介面擷取應用ID。 |
| 400 | InvalidPageSize.ValueNotSupported | The PageSize value is invalid. The default value is set to 20. The acceptable range is between 1 and 500. | 請求PageSize值非法,預設取值為20,取值區間為1-500。 |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | 調用服務失敗,請稍後重試或聯絡客服諮詢詳情。 |
| 404 | InvalidApp.NotFound | The application does not exist. Check whether the application ID you specified is correct and try again. | 您傳入的應用ID對應的應用不存在,請檢查後重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。