Mengkueri detail tentang eksekusi perintah.
Deskripsi operasi
After you execute a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.
You can query the execution results that were generated within the last two weeks. Up to 100,000 entries of execution results can be retained.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:DescribeInvocations |
get |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID Wilayah server aplikasi sederhana. Anda dapat memanggil operasi ListRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| InstanceId |
string |
Yes |
ID server aplikasi sederhana. |
3a658ca270df4df39f22e289b338**** |
| PageNumber |
integer |
No |
Nomor halaman. Halaman dimulai dari halaman 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai maksimum: 50. Nilai default: 10. |
10 |
| InvokeStatus |
string |
No |
Status eksekusi perintah. Nilai valid:
|
Finished |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
30637AD6-D977-4833-A54C-CC89483E**** |
| Invocations |
array<object> |
The command name. |
|
|
array<object> |
|||
| CreationTime |
string |
The time when the command was created. |
2022-07-11T06:37:16Z |
| InvocationStatus |
string |
The status of the command. Valid values:
|
Success |
| CommandType |
string |
The type of the command. Valid values:
|
RunShellScript |
| CommandContent |
string |
The content of the command, which is Base64-encoded. |
bHM= |
| Parameters |
object |
The custom parameters in the command. If no custom parameter exists in the command, the default value is {}. |
{} |
| InvokeStatus |
string |
The status of the command. Valid values:
|
Finished |
| InvokeId |
string |
The ID of the command task. |
t-hz02p9545t6**** |
| CommandName |
string |
The name of the command. |
testname |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| TotalCount |
integer |
The total number of entries returned. |
10 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "30637AD6-D977-4833-A54C-CC89483E****",
"Invocations": [
{
"CreationTime": "2022-07-11T06:37:16Z",
"InvocationStatus": "Success",
"CommandType": "RunShellScript",
"CommandContent": "bHM=",
"Parameters": {},
"InvokeStatus": "Finished",
"InvokeId": "t-hz02p9545t6****",
"CommandName": "testname"
}
],
"PageSize": 10,
"PageNumber": 1,
"TotalCount": 10
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.