Mengubah parameter perintah Asisten Cloud.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyCommand |
update |
*Command
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. Anda dapat memanggil DescribeRegions untuk melihat daftar wilayah Alibaba Cloud terbaru. |
cn-hangzhou |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to view the latest list of Alibaba Cloud regions. |
cn-hangzhou |
| CommandId |
string |
Yes |
ID perintah. Anda dapat memanggil operasi DescribeCommands untuk mengkueri semua CommandId yang tersedia. |
c-hz01272yr52**** |
| Name |
string |
No |
Nama perintah. Set karakter lengkap didukung. Nama tidak boleh melebihi 128 karakter. |
test-CommandName |
| Description |
string |
No |
Deskripsi perintah. Set karakter lengkap didukung. Deskripsi tidak boleh melebihi 512 karakter. |
This is description. |
| CommandContent |
string |
No |
Catatan
Parameter ini tidak digunakan lagi. Meneruskan parameter ini tidak akan berpengaruh. |
echo |
| WorkingDir |
string |
No |
Jalur eksekusi. Jalur tidak boleh melebihi 200 karakter. |
/home/ |
| Timeout |
integer |
No |
Periode waktu tunggu maksimum agar perintah yang Anda buat berjalan pada Instance ECS, dalam detik. Jika perintah tidak dapat berjalan dan selesai dalam periode yang dikonfigurasi, waktu tunggu akan habis. Setelah waktu tunggu habis, proses perintah akan dihentikan secara paksa, yaitu PID perintah akan dibatalkan. |
120 |
| Launcher |
string |
No |
Program bootstrap untuk eksekusi skrip. Panjang tidak boleh melebihi 1 KB. |
python3 -u {{ACS::ScriptFileName|Ext(".py")}} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
0DE9B41E-EF0D-40A0-BB43-37749C5BDA9C |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0DE9B41E-EF0D-40A0-BB43-37749C5BDA9C"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.