コンテナ化アプリケーションのバージョンを作成します。バージョンに基づいてアプリケーションをイテレーションできます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:CreateEdgeContainerAppVersion |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| AppId |
string |
必須 |
アプリケーション ID。ListEdgeContainerApps 操作を呼び出すことで取得できます。 |
app-88068867578379**** |
| Name |
string |
必須 |
バージョン名。長さは 6~128 文字である必要があります。 |
verson1 |
| Remarks |
string |
任意 |
バージョンの説明。 |
test app |
| Containers |
array<object> |
必須 |
このバージョンでデプロイされるコンテナグループ。イメージに関する情報が含まれます。 |
[ { "Name": "container1", "Image": "image1", "Spec": "1C2G", "Command": "/bin/sh", "Args": "-c hello", "ProbeType": "tcpSocket", "ProbeContent": "{\"Port\":8080}" }, { "Name": "container2", "Image": "image2", "Spec": "2C4G", "ProbeType": "httpGet", "ProbeContent": "{\"Path\":\"/\",\"Port\":80,\"InitialDelaySeconds\":10}" } ] |
|
array<object> |
必須 |
コンテナの詳細。 |
||
| Name |
string |
必須 |
コンテナの名前。同じコンテナグループ内で一意である必要があります。 |
lxg-demo-er |
| Image |
string |
必須 |
イメージのアドレス。 |
registry-vpc.cn-shenzhen.aliyuncs.com/lihe****h/ea****ts_serv****am:3.** |
| IsACRImage |
boolean |
必須 |
イメージが Container Registry イメージであるかどうかを指定します。 |
false |
| ACRImageInfo |
object |
任意 |
Container Registry イメージに関する情報。 |
|
| IsEnterpriseRegistry |
boolean |
任意 |
イメージがエンタープライズレベルの Container Registry イメージであるかどうかを指定します。 |
false |
| Domain |
string |
任意 |
Container Registry イメージのドメイン名。 |
1500.***.net |
| InstanceId |
string |
任意 |
Container Registry インスタンスの ID。 |
xcdn-9axbo**** |
| RegionId |
string |
任意 |
Container Registry インスタンスが存在するリージョン。 |
cn-shanghai |
| RepoId |
string |
任意 |
イメージリポジトリの ID。 |
crr-h1ghghu60ct**** |
| RepoName |
string |
任意 |
イメージリポジトリの名前。 |
test_71 |
| RepoNamespace |
string |
任意 |
イメージリポジトリが属する名前空間。 |
safeline |
| Tag |
string |
任意 |
Container Registry イメージのタグ。 |
3.40.2 |
| TagUrl |
string |
任意 |
Container Registry イメージタグの URL。 |
registry-vpc.cn-shenzhen.aliyuncs.com/****/eas***m:31 |
| Spec |
string |
必須 |
コンテナのコンピューティング仕様。有効値:1C2G、2C4G、2C8G、4C8G、4C16G、8C16G、8C32G。 |
1C2G |
| Command |
string |
任意 |
コンテナを起動するために使用されるコマンド。引数はスペースで区切ります。 |
nginx |
| Args |
string |
任意 |
コンテナの起動コマンドに渡される引数。パラメーターはスペースで区切ります。 |
-a |
| Storage |
string |
必須 |
ストレージ容量。有効値:0.5G、10G、20G、30G。 |
0.5G |
| EnvVariables |
string |
任意 |
環境変数。環境変数はコンマ (,) で区切ります。 |
VITE_APP_TITLE=My App |
| PostStart |
string |
任意 |
コンテナが起動する前に実行されるコマンド。引数はスペースで区切ります。 |
sh poststart.sh "echo hello world" |
| PreStop |
string |
任意 |
コンテナが停止する前に実行されるコマンド。引数はスペースで区切ります。 |
sh prestop.sh "echo hello world" |
| ProbeType |
string |
必須 |
プローブのタイプ。有効値:
|
exec |
| ProbeContent |
object |
必須 |
コンテナのヘルスプローブの内容。 |
具体字段可参照k8s官方就绪探针的定义。 |
| InitialDelaySeconds |
integer |
任意 |
コンテナプローブ初期化のレイテンシー。 |
1 |
| TimeoutSeconds |
integer |
任意 |
コンテナのヘルスチェックのタイムアウト期間。 |
1 |
| PeriodSeconds |
integer |
任意 |
コンテナのヘルスチェックの間隔。 |
1 |
| SuccessThreshold |
integer |
任意 |
コンテナが正常であると見なされるために必要な、連続したヘルスチェックの成功回数。 |
1 |
| FailureThreshold |
integer |
任意 |
コンテナが異常であると見なされるために必要な、連続したヘルスチェックの失敗回数。 |
3 |
| Command |
string |
任意 |
exec タイプのプローブのコマンド。 |
echo ok |
| Port |
integer |
任意 |
ヘルスチェックポート。 |
9991 |
| Host |
string |
任意 |
ヘルスチェックに使用されるドメイン名。 |
www.rewrite.com |
| Path |
string |
任意 |
ヘルスチェックパス。 |
/ |
| Scheme |
string |
任意 |
コンテナのヘルスチェックリクエストが使用するプロトコル。 |
http |
| HttpHeaders |
string |
任意 |
コンテナのヘルスチェックリクエストに含まれるリクエストヘッダー。 |
[{\"Content-Type\":\"application/json\"}] |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| VersionId |
string |
作成されたバージョンの ID。 |
ver-87962637161651**** |
| RequestId |
string |
リクエスト ID。 |
04F0F334-1335-436C-A1D7-6C044FE73368 |
例
成功レスポンス
JSONJSON
{
"VersionId": "ver-87962637161651****",
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidParameter.Name | The specified Name is invalid. Please check the Name parameter, which must be between 6 and 128 characters. Kindly make the necessary modifications and call the interface again. | |
| 400 | InvalidParameter.Percentage | The Percentage parameter is invalid. Please check the Percentage parameter, which should be in the range of 1-100. Modify it accordingly and call the interface again. | |
| 400 | InvalidParameter.Image | The specified Image is invalid. Please check the Image parameter and make the necessary modifications and call the interface again. | |
| 400 | InvalidParameter.HttpHeaders | The specified HttpHeaders is invalid. Please check the HttpHeaders parameter. Please make the necessary changes and call the interface again. | |
| 400 | InvalidParameter.appid | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. | |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | ParameterAlreadyExist | Parameter uniqueness verification failed. Check for duplicate parameter values. | |
| 400 | NameAlreadyExists | The name already exists. | |
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。