调用ListInstancePatches获取实例补丁信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ListInstancePatches

系统规定参数。取值:ListInstancePatches。

RegionId String cn-hangzhou

地域ID。

InstanceId String i-bp1jaxa2bs4bps7*****

实例ID。

MaxResults Integer 50

分页大小。

NextToken String -

翻页标记Token。

PatchStatuses String Installed

补丁过滤状态,不设置为不过滤。

返回数据

名称 类型 示例值 描述
MaxResults Integer 50

分页大小。

NextToken String -

翻页标记Token。

Patches Array of Patch

补丁信息。

Classification String “”

分类。

InstalledTime String 2021-01-28T07:07:20Z

安装时间。

KBId String apt-utils.amd64

KBId

Severity String important

严重性级别。

Status String Installed

安装状态。

Title String isc-dhcp-common.amd64:4.3.5-3ubuntu7.3

名称。

RequestId String 0A615755-9C86-5EA6-BF9E-6E8F1AFF9403

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=ListInstancePatches
&<公共请求参数>

正常返回示例

XML格式

<NextToken>gAAAAABhRD9bBho0d6-YdrQgww0bsuOJZ9JeEK4v022ZMvgEog5FJW9mMYPZkeSglRrN2IxXWjADx8gefw9sQJ5sL2d3R4IxztxS_rhBftY2317dkOtX0UE3IFIBguQxdYuisDZ52Ycbj-ocjgOG_wrpK-kEO3w64UarmmZX2WrJXRo6yywR2HtfmoaD4qCTiVUtv5Vp_codHcVOLa4m4WrDWnGDrD2srA==</NextToken>
<RequestId>0A615755-9C86-5EA6-BF9E-6E8F1AFF9403</RequestId>
<MaxResults>50</MaxResults>
<Patches>
    <Status>Installed</Status>
    <KBId>apt-utils.amd64</KBId>
    <InstalledTime>2021-01-28T07:07:20Z</InstalledTime>
    <Classification/>
    <Title>apt-utils.amd64:1.6.12ubuntu0.2</Title>
    <Severity>important</Severity>
</Patches>
<Patches>
    <Status>Installed</Status>
    <KBId>apt.amd64</KBId>
    <InstalledTime>2021-01-28T07:07:20Z</InstalledTime>
    <Classification/>
    <Title>apt.amd64:1.6.12ubuntu0.2</Title>
    <Severity>important</Severity>
</Patches>
<Patches>
    <Status>Installed</Status>
    <KBId>bsdutils.amd64</KBId>
    <InstalledTime>2021-01-28T07:07:12Z</InstalledTime>
    <Classification/>
    <Title>bsdutils.amd64:1:2.31.1-0.4ubuntu3.7</Title>
    <Severity>required</Severity>
</Patches>
<Patches>
    <Status>Installed</Status>
    <KBId>busybox-initramfs.amd64</KBId>
    <InstalledTime>2021-01-28T07:07:18Z</InstalledTime>
    <Classification/>
    <Title>busybox-initramfs.amd64:1:1.27.2-2ubuntu3.3</Title>
    <Severity>important</Severity>
</Patches>
<Patches>
    <Status>Installed</Status>
    <KBId>bzip2.amd64</KBId>
    <InstalledTime>2019-08-05T18:30:59Z</InstalledTime>
    <Classification/>
    <Title>bzip2.amd64:1.0.6-8.1ubuntu0.2</Title>
    <Severity>important</Severity>
</Patches>
<Patches>
    <Status>Installed</Status>
    <KBId>ca-certificates.amd64</KBId>
    <InstalledTime>2021-09-17T06:59:25Z</InstalledTime>
    <Classification/>
    <Title>ca-certificates.amd64:20210119~18.04.1</Title>
    <Severity>important</Severity>
</Patches>
<Patches>
    <Status>Installed</Status>
    <KBId>cpio.amd64</KBId>
    <InstalledTime>2021-09-17T06:59:25Z</InstalledTime>
    <Classification/>
    <Title>cpio.amd64:2.12+dfsg-6ubuntu0.18.04.4</Title>
    <Severity>important</Severity>
</Patches>
<Patches>
    <Status>Installed</Status>
    <KBId>dbus.amd64</KBId>
    <InstalledTime>2021-01-28T07:07:15Z</InstalledTime>
    <Classification/>
    <Title>dbus.amd64:1.12.2-1ubuntu1.2</Title>
    <Severity>important</Severity>
</Patches>
<Patches>
    <Status>Installed</Status>
    <KBId>distro-info-data.amd64</KBId>
    <InstalledTime>2021-09-17T06:59:25Z</InstalledTime>
    <Classification/>
    <Title>distro-info-data.amd64:0.37ubuntu0.11</Title>
    <Severity>important</Severity>
</Patches>

JSON格式

{
    "NextToken": "gAAAAABhRD9bBho0d6-YdrQgww0bsuOJZ9JeEK4v022ZMvgEog5FJW9mMYPZkeSglRrN2IxXWjADx8gefw9sQJ5sL2d3R4IxztxS_rhBftY2317dkOtX0UE3IFIBguQxdYuisDZ52Ycbj-ocjgOG_wrpK-kEO3w64UarmmZX2WrJXRo6yywR2HtfmoaD4qCTiVUtv5Vp_codHcVOLa4m4WrDWnGDrD2srA==",
    "RequestId": "0A615755-9C86-5EA6-BF9E-6E8F1AFF9403",
    "MaxResults": 50,
    "Patches": [
        {
            "Status": "Installed",
            "KBId": "apt-utils.amd64",
            "InstalledTime": "2021-01-28T07:07:20Z",
            "Classification": "",
            "Title": "apt-utils.amd64:1.6.12ubuntu0.2",
            "Severity": "important"
        },
        {
            "Status": "Installed",
            "KBId": "apt.amd64",
            "InstalledTime": "2021-01-28T07:07:20Z",
            "Classification": "",
            "Title": "apt.amd64:1.6.12ubuntu0.2",
            "Severity": "important"
        },
        {
            "Status": "Installed",
            "KBId": "bsdutils.amd64",
            "InstalledTime": "2021-01-28T07:07:12Z",
            "Classification": "",
            "Title": "bsdutils.amd64:1:2.31.1-0.4ubuntu3.7",
            "Severity": "required"
        },
        {
            "Status": "Installed",
            "KBId": "busybox-initramfs.amd64",
            "InstalledTime": "2021-01-28T07:07:18Z",
            "Classification": "",
            "Title": "busybox-initramfs.amd64:1:1.27.2-2ubuntu3.3",
            "Severity": "important"
        },
        {
            "Status": "Installed",
            "KBId": "bzip2.amd64",
            "InstalledTime": "2019-08-05T18:30:59Z",
            "Classification": "",
            "Title": "bzip2.amd64:1.0.6-8.1ubuntu0.2",
            "Severity": "important"
        },
        {
            "Status": "Installed",
            "KBId": "ca-certificates.amd64",
            "InstalledTime": "2021-09-17T06:59:25Z",
            "Classification": "",
            "Title": "ca-certificates.amd64:20210119~18.04.1",
            "Severity": "important"
        },
        {
            "Status": "Installed",
            "KBId": "cpio.amd64",
            "InstalledTime": "2021-09-17T06:59:25Z",
            "Classification": "",
            "Title": "cpio.amd64:2.12+dfsg-6ubuntu0.18.04.4",
            "Severity": "important"
        },
        {
            "Status": "Installed",
            "KBId": "dbus.amd64",
            "InstalledTime": "2021-01-28T07:07:15Z",
            "Classification": "",
            "Title": "dbus.amd64:1.12.2-1ubuntu1.2",
            "Severity": "important"
        },
        {
            "Status": "Installed",
            "KBId": "distro-info-data.amd64",
            "InstalledTime": "2021-09-17T06:59:25Z",
            "Classification": "",
            "Title": "distro-info-data.amd64:0.37ubuntu0.11",
            "Severity": "important"
        }
    ]
}

错误码

访问错误中心查看更多错误码。