Home  >  Article  >  Operation and Maintenance  >  How to view the execution results of Cloud Assistant commands and the actual execution results in a specified ECS instance

How to view the execution results of Cloud Assistant commands and the actual execution results in a specified ECS instance

坏嘻嘻
坏嘻嘻Original
2018-09-27 15:01:402807browse

The content of this article is about how to view the execution results of cloud assistant commands and the actual execution results in the specified ECS instance. It has certain reference value. Friends in need can refer to it. I hope it will be useful to you. Helps.

DescribeInvocationResults

Description

After you execute the command, it does not mean that the command will run successfully and there will be expected results. command effect. You need to check the actual specific execution results through DescribeInvocationResults, and the actual output results shall prevail.

Request parameters

How to view the execution results of Cloud Assistant commands and the actual execution results in a specified ECS instance

##Return parameters

How to view the execution results of Cloud Assistant commands and the actual execution results in a specified ECS instance

Command execution result setInvocationResultSetType

How to view the execution results of Cloud Assistant commands and the actual execution results in a specified ECS instance

##Instance execution result typeInvocationResultType

How to view the execution results of Cloud Assistant commands and the actual execution results in a specified ECS instance

Example##Request Example

https://ecs.aliyuncs.com/?Action=DescribeInvocationResults
&RegionId=cn-hangzhou
&InvokeId=t-7d2a745b412b4601b2d47f6a768d3a14
&<公共请求参数>
Normal return example

XML format

<DescribeInvocationResultsResponse>
    <TotalCount>5</TotalCount>
    <PageNumber>1</PageNumber>
    <PageSize>5</PageSize>
    <InvocationResults>
        <InvocationResult>
            <FinishedTime>2018-01-05 15:45:02</FinishedTime>
            <InstanceId>i-uf614fhehhzmxdqw</InstanceId>
            <Output>MTU6NDU6MDEK</Output>
<InvokeRecordStatus> Finished<InvokeRecordStatus>
            <ExitCode>0</ExitCode>
        </InvocationResult>
        <InvocationResult>
            <FinishedTime>2018-01-05 15:40:02</FinishedTime>
            <InstanceId>i-uf614fhehhzmxdqw</InstanceId>
            <Output> </Output>
<InvokeRecordStatus> Finished<InvokeRecordStatus>
            <ExitCode>0</ExitCode>
        </InvocationResult>
        <InvocationResult>
            <FinishedTime>2018-01-05 15:30:02</FinishedTime>
            <InstanceId>i-uf614fhehhzmxdqw</InstanceId>
            <Output>MTU6MzA6MDEK</Output>
            <ExitCode>0</ExitCode>
        </InvocationResult>
        <InvocationResult>
            <FinishedTime>2018-01-05 15:20:02</FinishedTime>
            <InstanceId>i-uf614fhehhzmxdqw</InstanceId>
            <Output> </Output>
            <ExitCode>0</ExitCode>
        </InvocationResult>
        <InvocationResult>
            <FinishedTime>2018-01-05 15:15:02</FinishedTime>
            <InstanceId>i-uf614fhehhzmxdqw</InstanceId>
            <Output>MTU6MTU6MDEK</Output>
            <ExitCode>0</ExitCode>
        </InvocationResult>
        </InvocationResults>
<RequestId>"E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId>
</DescribeInvocationResultsResponse>
JSON format

{
    "Invocation": {
        "TotalCount": 5,
        "PageNumber": 1,
        "InvocationResults": {
            "InvocationResult": [
                {
                    "FinishedTime": "2018-01-05 15:45:02",
                    "InstanceId": "i-uf614fhehhzmxdqw",
                    "Output": "MTU6NDU6MDEK",
      “InvokeRecordStatus”:“Finished”,
                    "ExitCode": 0
                },
                {
                    "FinishedTime": "2018-01-05 15:40:02",
                    "InstanceId": "i-uf614fhehhzmxdqw",
“InvokeRecordStatus”:“Finished”,
                    "Output": "",
                    "ExitCode": 0
                },
                {
                    "FinishedTime": "2018-01-05 15:30:02",
                    "InstanceId": "i-uf614fhehhzmxdqw",
                    "Output": "MTU6MzA6MDEK",
                    "ExitCode": 0
                },
                {
                    "FinishedTime": "2018-01-05 15:20:02",
                    "InstanceId": "i-uf614fhehhzmd3zj4k74",
                    "Output": "",
                    "ExitCode": 0
                },
                {
                    "FinishedTime": "2018-01-05 15:15:02",
                    "InstanceId": "i-uf614fhehhzmd3zj4k74",
“InvokeRecordStatus”:“Finished”,
                    "Output": "MTU6MTU6MDEK",
                    "ExitCode": 0
                }
            ]
        },
        "PageSize": 5
    },
    "RequestId": ""E69EF3CC-94CD-42E7-8926-F133B86387C0"
}
Exception return Example

XML format

<Error>
    <RequestId>E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId>
    <HostId>ecs.aliyuncs.com</HostId>
    <Code>MissingParameter.RegionId</Code>
    <Message>The input parameter “RegionId” that is mandatory for processing this request is not supplied.</Message>
</Error>
JSON format

{
    "RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0",
    "HostId": "ecs.aliyuncs.com"
    "Code": "MissingParameter.RegionId"
    "Message": "The input parameter “RegionId” that is mandatory for processing this request is not supplied."
}

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

How to view the execution results of Cloud Assistant commands and the actual execution results in a specified ECS instance

The above is the detailed content of How to view the execution results of Cloud Assistant commands and the actual execution results in a specified ECS instance. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn