RescaleApplication 操作を呼び出し、非同期でリソースのスケーリングインまたはスケーリングアウトを実行し、コンテナの Deployment またはリリース操作を完了します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:RescaleApplication |
update |
*すべてのリソース。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| AppId |
string |
必須 |
アプリケーションの ID。ListApplications 操作を呼び出してこの値を取得できます。 |
474bdef0-d149-4695-abfb-52912d9143f0 |
| RescaleType |
string |
必須 |
リソースのスケーリング操作。有効な値:
列挙値:
|
Add |
| RescaleLevel |
string |
任意 |
スケーリングリージョンのレベル。有効な値:
デフォルト値: AreaIspCode。 列挙値:
|
RegionId |
| ResourceSelector |
string |
必須 |
スケーリングリソースの要件。値は JSON 配列フォーマットの文字列です。 |
[{\"regionCode\": \"cn-wuxi-telecom_unicom_cmcc-3\", \"ispCode\": \"telecom\", \"count\": 2 },{ \"regionCode\": \"cn-shanghai-cmcc\", \"count\": 4 }] |
| ToAppVersion |
string |
任意 |
新しいリソースのアプリケーション Deployment バージョン。このパラメーターは、リソースが追加された場合にのみ効果があります。デフォルト値: アプリケーションの安定バージョン番号。 |
v2 |
| Timeout |
integer |
任意 |
非同期スケーリングのタイムアウト期間 (秒単位)。デフォルト値: 300。 |
1800 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエストの ID。 |
AAE90880-4970-4D81-A534-A6C0F3631F74 |
例
成功レスポンス
JSONJSON
{
"RequestId": "AAE90880-4970-4D81-A534-A6C0F3631F74"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。