指定された環境に対して、関数コードのバージョンを段階的にリリースします。
操作説明
リクエストの説明
Routine コードバージョンのデプロイメントを作成する際、環境名
Envには、テスト環境stagingまたは本番環境productionのみを指定できます。CodeVersionsパラメーターでは、最大 2 つのバージョンによる段階的リリースがサポートされており、これらのバージョンの割合の合計は 100 % である必要があります。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:CreateRoutineCodeDeployment |
none |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Name |
string |
必須 |
関数の名前です。 |
test |
| Env |
string |
必須 |
環境の名前です。テスト環境 |
staging |
| Strategy |
string |
必須 |
デプロイメントポリシーです。有効な値: percentage。 |
percentage |
| CodeVersions |
array<object> |
必須 |
段階的リリース対象のバージョン番号の構成リストです。最大 2 つのバージョンを指定でき、各バージョンの割合の合計は 100 である必要があります。 |
|
|
object |
必須 |
段階的リリース対象のバージョン番号です。 |
||
| Percentage |
integer |
必須 |
コードバージョンの段階的リリース比率です。有効な値: 1 ~ 100。 |
100 |
| CodeVersion |
string |
必須 |
コードのバージョンです。 |
1723599747213377175 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマです。 |
||
| RequestId |
string |
リクエスト ID です。 |
EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395 |
| Strategy |
string |
段階的リリースポリシーです。定数文字列は percentage です。 |
percentage |
| DeploymentId |
string |
デプロイメント記録 ID です。 |
234 |
| CodeVersions |
array<object> |
段階的リリース対象のバージョン番号の構成リストです。 |
|
|
object |
段階的リリース対象のバージョン番号の構成です。 |
||
| Percentage |
integer |
段階的リリース比率です。 |
100 |
| CodeVersion |
string |
コードのバージョンです。 |
1723599747213377175 |
例
成功レスポンス
JSONJSON
{
"RequestId": "EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395",
"Strategy": "percentage",
"DeploymentId": "234",
"CodeVersions": [
{
"Percentage": 100,
"CodeVersion": "1723599747213377175"
}
]
}
エラーコード
|
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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。