Queries the execution result of a command.
Operation description
- 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.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
swas-open:DescribeInvocationResult | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the simple application server. | ace0706b2ac4454d984295a94213**** |
InvokeId | string | Yes | The execution ID. You can call the DescribeInvocations operation to query execution IDs. | t-bj02prjhw1n**** |
RegionId | string | Yes | The region ID of the simple application server. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"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****"
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history