すべてのコンテナ化アプリケーションのバージョンを一覧表示します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:ListEdgeContainerAppVersions |
none |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| AppId |
string |
必須 |
アプリケーション ID。ListEdgeContainerApps 操作を呼び出すことで取得できます。 |
app-88068867578379**** |
| PageNumber |
integer |
任意 |
ページ番号。有効値:1~65535。 |
1 |
| PageSize |
integer |
任意 |
1 ページあたりのエントリ数。有効値: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 |
1 ページあたりのエントリ数。 |
10 |
| TotalCount |
integer |
エントリの総数。 |
20 |
| Versions |
array<object> |
バージョン。 |
|
|
array<object> |
バージョンの詳細。 |
||
| LastPublishTime |
string |
バージョンが最後にリリースされた時刻。時刻は ISO 8601 標準に準拠した YYYY-MM-DDThh:mm:ss 形式で、協定世界時 (UTC) で表示されます。 |
2023-02-10T02:48:36Z |
| PublishTime |
string |
バージョンがリリースされた時刻。時刻は ISO 8601 標準に準拠した YYYY-MM-DDThh:mm:ss 形式で、協定世界時 (UTC) で表示されます。 |
2023-02-10T02:48:36Z |
| Status |
string |
現在のバージョンのステータス。有効値:
|
created |
| CreateTime |
string |
バージョンが作成された時刻。時刻は ISO 8601 標準に準拠した YYYY-MM-DDThh:mm:ss 形式で、協定世界時 (UTC) で表示されます。 |
2022-11-10T02:53:16Z |
| AppId |
string |
アプリケーション ID。 |
app-88068867578379**** |
| VersionId |
string |
バージョン ID。 |
ver-87962637161651**** |
| Name |
string |
バージョン名。 |
version01 |
| UpdateTime |
string |
バージョンが最終更新された時刻。時刻は ISO 8601 標準に準拠した YYYY-MM-DDThh:mm:ss 形式で、協定世界時 (UTC) で表示されます。 |
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 |
例
成功レスポンス
JSONJSON
{
"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 ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. | |
| 400 | InvalidParameter.OrderKey | The specified OrderKey is invalid. Please check the OrderKey parameter. | |
| 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. | |
| 400 | InvalidPageSize.ValueNotSupported | The PageSize value is invalid. The default value is set to 20. The acceptable range is between 1 and 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。