首页 运维编排服务 API参考 API目录 补丁管理 补丁状态 ListInstancePatches - 列出实例修补程序

ListInstancePatches - 列出实例修补程序

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

调试

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

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用加粗字体表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
oos:ListInstancePatchesLIST
  • OOS
    acs:oos:{#regionId}:{#accountId}:*

请求参数

名称类型必填描述示例值
RegionIdstring

地域ID。

cn-hangzhou
InstanceIdstring

实例ID。

i-bp1jaxa2bs4bps7*****
MaxResultsinteger

分页大小。

50
NextTokenstring

翻页标记Token。

-
PatchStatusesstring

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

Installed

返回参数

名称类型描述示例值
object
NextTokenstring

翻页标记Token。

-
RequestIdstring

请求ID。

0A615755-9C86-5EA6-BF9E-6E8F1AFF9403
MaxResultsinteger

分页大小。

50
Patchesarray

补丁信息。

object
Severitystring

严重性级别。

important
Statusstring

安装状态。

Installed
InstalledTimestring

安装时间。

2021-01-28T07:07:20Z
KBIdstring

KBId

apt-utils.amd64
Titlestring

名称。

isc-dhcp-common.amd64:4.3.5-3ubuntu7.3
Classificationstring

分类。

“”

示例

请求示例

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

正常返回示例

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"
        }
    ]
}

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>

错误码

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

阿里云首页 运维编排 相关技术圈