クラウドアシスタントコマンドのパラメーターを変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:ModifyCommand |
update |
*Command
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
コマンドが属するリージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| RegionId |
string |
必須 |
コマンドが属するリージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| CommandId |
string |
必須 |
コマンド ID。 DescribeCommands 操作を呼び出して、利用可能なすべてのコマンド ID を照会できます。 |
c-hz01272yr52**** |
| Name |
string |
任意 |
コマンド名。 すべての文字セットをサポートし、長さは最大 128 文字です。 |
test-CommandName |
| Description |
string |
任意 |
コマンドの説明。 すべての文字セットをサポートし、長さは最大 512 文字です。 |
This is description. |
| CommandContent |
string |
任意 |
説明
このパラメーターは現在使用されておらず、有効になりません。 |
echo |
| WorkingDir |
string |
任意 |
コマンドの作業ディレクトリ。 値の長さは最大 200 文字です。 |
/home/ |
| Timeout |
integer |
任意 |
インスタンスでコマンドを実行する際の最大タイムアウト期間です。 単位は秒です。 コマンドが指定された時間内に実行できない場合、コマンドはタイムアウトします。 その後、コマンドのプロセス ID (PID) を取り消すことで、コマンドプロセスは強制的に終了されます。 |
120 |
| Launcher |
string |
任意 |
スクリプト実行用のランチャー。 値の長さは 1 KB を超えることはできません。 |
python3 -u {{ACS::ScriptFileName|Ext(".py")}} |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
リクエスト ID。 |
||
| RequestId |
string |
リクエスト ID。 |
0DE9B41E-EF0D-40A0-BB43-37749C5BDA9C |
例
成功レスポンス
JSONJSON
{
"RequestId": "0DE9B41E-EF0D-40A0-BB43-37749C5BDA9C"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | RegionId.ApiNotSupported | The api is not supported in this region. | |
| 400 | InvalidParameter.WorkingDir | The specified parameter WorkingDir is not valid. | |
| 500 | InternalError.Dispatch | An error occurred when you dispatched the request. | |
| 403 | CmdName.Readonly | The command name is readonly after publishing. | |
| 403 | CmdName.ExceedLimit | The length of the command name exceeds the upper limit. | |
| 403 | CmdContent.ExceedLimit | The length of the command content exceeds the upper limit. | |
| 403 | CmdDesc.ExceedLimit | The length of the command description exceeds the upperlimit. | |
| 403 | Operation.Forbidden | The operation is not permitted. | |
| 403 | InvalidParameterCharacter.CommandName | The command Name contains illegal characters. | |
| 403 | InvalidParameterCharacter.CommandDescription | The command Description contains illegal characters. | |
| 403 | InvalidParameterCharacter.CommandWorkingDir | The command WorkingDir contains illegal characters. | |
| 403 | InvalidLauncher.LengthLimitExceeded | The length of the parameter Launcher exceeds the limit of 1 KB characters. | |
| 403 | InvalidTimeout.ExceedLimit | The specified parameter Timeout exceeds the upper limit. | |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 404 | InvalidCmdId.NotFound | The specified command ID does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。