Queries the details of a command.
Operation description
After you run a command, the command is not guaranteed to succeed or produce the expected results. Check the actual execution results based on the response of this operation.
You can query execution information from the last two weeks. A maximum of 100,000 execution records can be retained.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:DescribeInvocations |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call ListRegions to query the most recent region list. |
cn-hangzhou |
| InstanceId |
string |
Yes |
The instance ID of the simple application server. |
3a658ca270df4df39f22e289b338**** |
| PageNumber |
integer |
No |
The page number. Minimum value: 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page in a paged query. Settings for paging. Maximum value: 50. Default value: 10. |
10 |
| InvokeStatus |
string |
No |
The execution status of the command. Valid values:
|
Finished |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
30637AD6-D977-4833-A54C-CC89483E**** |
| Invocations |
array<object> |
The command execution records. |
|
|
array<object> |
The command execution records. |
||
| CreationTime |
string |
The time when the command was created. The time is displayed in UTC (Z) in the YYYY-MM-DDThh:mm:ssZ format. |
2022-07-11T06:37:16Z |
| InvocationStatus |
string |
The execution status of the command. Valid values:
|
Success |
| CommandType |
string |
The type of the command. Valid values:
|
RunShellScript |
| CommandContent |
string |
The command content, which is transmitted in Base64 encoding. |
bHM= |
| Parameters |
object |
The custom parameters included in the command. If no parameters exist, the default value is {}. |
{} |
| InvokeStatus |
string |
The status of the command. Valid values:
|
Finished |
| InvokeId |
string |
The command execution ID. |
t-hz02p9545t6**** |
| CommandName |
string |
The command name. |
testname |
| PageSize |
integer |
The number of entries per page settings for the paged query. This value indicates the paging size. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| TotalCount |
integer |
The total number of commands. |
10 |
Examples
Success response
JSON format
{
"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
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.