指定された環境で Routine コードバージョンのパーセンテージベースのカナリアリリース Deployment を作成します。
操作説明
使用上の注意
Routine コードバージョンの Deployment を作成する際、
Envパラメーターはステージング環境のstagingまたは本番環境のproductionのみをサポートしています。CodeVersionsパラメーターはカナリアリリース用に最大値 2 つのバージョンをサポートしており、これらのバージョンの合計パーセンテージは 100% である必要があります。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:CreateRoutineCodeDeployment |
none |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Name |
string |
必須 |
エッジ関数 Routine の名前。 |
|
| Env |
string |
必須 |
環境名。
|
production |
| Strategy |
string |
必須 |
Deployment 戦略。
|
percentage |
| CodeVersions |
array<object> |
必須 |
パーセンテージベースのカナリアリリースバージョン構成のリスト。最大値 2 つのバージョンがサポートされており、合計パーセンテージは 100 である必要があります。 |
|
|
object |
必須 |
単一のパーセンテージベースのカナリアリリースバージョン構成。 |
||
| Percentage |
integer |
必須 |
コードバージョンのカナリアリリースパーセンテージ。有効な値: 1~100。 |
|
| CodeVersion |
string |
必須 |
コードバージョン番号。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ。 |
||
| RequestId |
string |
リクエスト ID。 |
|
| Strategy |
string |
カナリアリリース戦略。固定値: percentage。 |
|
| DeploymentId |
string |
Deployment Record の ID。 |
|
| CodeVersions |
array<object> |
パーセンテージベースのカナリアリリースコードバージョン構成のリスト。 |
|
|
object |
単一のパーセンテージベースのカナリアリリースコードバージョン構成。 |
||
| Percentage |
integer |
コードバージョンのカナリアリリースパーセンテージ。 |
|
| CodeVersion |
string |
コードバージョン番号。 |
例
成功レスポンス
JSONJSON
{
"RequestId": "",
"Strategy": "",
"DeploymentId": "",
"CodeVersions": [
{
"Percentage": 0,
"CodeVersion": ""
}
]
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | RoutineNotExist | The routine name does not exist. Check the routine name and try again. | |
| 400 | ParameterNotExist | The specified parameter does not exist. Check your configurations and try again. | |
| 400 | InternalOperationError | Failed to call the service. Try again later or contact technical support. | |
| 400 | DependedByOthers | Failed to call the service. Try again later or contact technical support. | |
| 400 | RoutineUserServiceStatusHalt | Failed to update the configurations because you have overdue payments. | |
| 400 | InvalidParameter | Parameter verification failed. Check your configurations and try again. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。