如何查看云助手命令的执行结果并且在指定ECS实例中的实际执行结果

坏嘻嘻
Lepaskan: 2018-09-27 15:01:40
asal
2805 orang telah melayarinya

本篇文章给大家带来的内容是关于如何查看云助手命令的执行结果并且在指定ECS实例中的实际执行结果,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。

DescribeInvocationResults

描述

当您执行命令后,不代表命令一定成功运行,并且一定有预期的命令效果。您需要通过DescribeInvocationResults查看实际的具体执行结果,以实际输出结果为准。

请求参数

微信截图_20180927145036.png

返回参数

微信截图_20180927145043.png

命令执行结果集InvocationResultSetType

微信截图_20180927145048.png

实例执行结果类型InvocationResultType

微信截图_20180927145055.png

示例

请求示例

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

正常返回示例

XML格式

<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>
Salin selepas log masuk

JSON格式

{
    "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"
}
Salin selepas log masuk

异常返回示例

XML格式

<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>
Salin selepas log masuk

JSON格式

{
    "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."
}
Salin selepas log masuk

错误码

以下为本接口特有的错误码。更多错误码,请访问 API错误中心。

微信截图_20180927145114.png

Atas ialah kandungan terperinci 如何查看云助手命令的执行结果并且在指定ECS实例中的实际执行结果. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan