Menjalankan perintah Command Assistant untuk satu atau beberapa server aplikasi sederhana.
Deskripsi operasi
-
The simple application servers for which you want to call the operation must meet the following conditions. If a simple application server cannot meet the conditions, you must call this operation again.
The simple application servers are in the
Runningstate. You can call the ListInstances operation to query the status of simple application servers.Cloud Assistant Agent is installed on the simple application servers. For more information, see InstallCloudAssistant.
If you run a PowerShell command, make sure that the PowerShell module is configured for the simple application servers.
-
The command may fail to be run due to the abnormal states of simple application servers, network exceptions, or exceptions in Cloud Assistant Agent. If the command fails to be run, no execution information is generated.
-
If you enable the custom parameter feature when you create a command, you must set the
Parametersparameter to specify custom parameters when you run the command. -
When you call this operation, you can select only one common command or a custom command that you have created.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:InvokeCommand |
none |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID Wilayah. Anda dapat memanggil operasi ListRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| CommandId |
string |
Yes |
ID perintah. Anda dapat memanggil operasi DescribeCommands untuk mengkueri semua ID perintah yang tersedia. |
c-sh02yh0932w**** |
| Parameters |
object |
No |
Pasangan kunci-nilai parameter kustom yang akan ditentukan ketika fitur parameter kustom diaktifkan.
|
{"delayed_insert_timeout":"600","max_length_for_sort_data":"2048"} |
| Username |
string |
No |
Nama pengguna yang menjalankan perintah di server aplikasi sederhana. Nama pengguna tidak boleh melebihi 255 karakter.
Anda hanya dapat mengubah pengguna untuk menjalankan perintah pada server aplikasi sederhana Linux. |
test |
| InstanceIds |
string |
Yes |
ID server aplikasi sederhana. Nilainya dapat berupa array JSON yang terdiri dari hingga 50 ID server aplikasi sederhana. Pisahkan beberapa ID dengan koma (,). |
["2ad1ae67295445f598017499dc****", "2ad1ae67295445f598017123dc****"] |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
20758A-585D-4A41-A9B2-28DA8F4F**** |
| InvokeId |
string |
The execution ID of the command. |
t-bj02prjhw1n**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "20758A-585D-4A41-A9B2-28DA8F4F****",
"InvokeId": "t-bj02prjhw1n****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.