Mengkueri hasil eksekusi sebuah 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 execution result of a command.
You can query the execution results that were generated within the last two weeks. A maximum of 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:DescribeInvocationResult |
get |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID server aplikasi sederhana. |
ace0706b2ac4454d984295a94213**** |
| InvokeId |
string |
Yes |
ID eksekusi. Anda dapat memanggil operasi DescribeInvocations untuk mengkueri ID eksekusi. |
t-bj02prjhw1n**** |
| RegionId |
string |
Yes |
ID wilayah server aplikasi sederhana. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
20758A-585D-4A41-A9B2-28DA8F4F**** |
| InvocationResult |
object |
The execution results. |
|
| StartTime |
string |
The time when the execution started. |
2022-07-11T06:37:16Z |
| FinishedTime |
string |
The time when the execution ended. |
2022-07-11T06:37:17Z |
| InvocationStatus |
string |
The status of the execution progress. Valid values:
|
Success |
| ExitCode |
integer |
The exit code of the command.
|
0 |
| ErrorInfo |
string |
The error message returned when the command is not successfully sent or executed. Valid values:
|
the specified instance does not exists |
| ErrorCode |
string |
The error code that is returned if the command failed to be sent or executed.
|
InstanceNotExists |
| InvokeId |
string |
The execution ID. |
t-bj02prjje65**** |
| InvokeRecordStatus |
string |
The status of the execution. Valid values:
|
Finished |
| InvokeUser |
string |
The username who executes the command on the simple application server. |
root |
| Output |
string |
The command output. |
YWRtaW4K |
| InstanceId |
string |
The ID of the simple application server. |
ace0706b2ac4454d984295a94213**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "20758A-585D-4A41-A9B2-28DA8F4F****",
"InvocationResult": {
"StartTime": "2022-07-11T06:37:16Z",
"FinishedTime": "2022-07-11T06:37:17Z",
"InvocationStatus": "Success",
"ExitCode": 0,
"ErrorInfo": "the specified instance does not exists",
"ErrorCode": "InstanceNotExists",
"InvokeId": "t-bj02prjje65****",
"InvokeRecordStatus": "Finished",
"InvokeUser": "root",
"Output": "YWRtaW4K",
"InstanceId": "ace0706b2ac4454d984295a94213****"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.