查询镜像信息

最近更新时间:2026-04-29 03:09:11

我的收藏

1. 接口描述

接口请求域名: tcss.tencentcloudapi.com 。

查询镜像详细信息

默认接口请求频率限制:20次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeAssetImageDetail。
Version String 公共参数,本接口取值:2020-11-01。
Region String 公共参数,此参数为可选参数。
ImageID String

镜像id


示例值:sha256:b0c74d449d6f6e2883c6a39dd4ad5b9d95211778f48d30069feeaa0ffc41****

3. 输出参数

参数名称 类型 描述
ImageID String

镜像ID


示例值:sha256:b0c74d449d6f6e2883c6a39dd4ad5b9d95211778f48d30069feeaa0ffc41****
ImageName String

镜像名称


示例值:commons-container-registry.tencentcloudcr.com/dcf/lbcloud-all:20241031****
ImageDigest String

镜像摘要


示例值:sha256:d66d2c7e3b26ae35ab6bc254e1032c5c035a7e372bb53c69cd7aa2631de3****
CreateTime String

创建时间


示例值:2024-10-31 18:0****
Size Integer

镜像大小


示例值:1754112211
HostCnt Integer

关联主机个数(包含普通节点数和超级节点数)


示例值:2
ContainerCnt Integer

关联容器个数


示例值:2
SuperNodeCnt Integer

超级节点数


示例值:1
ScanTime String

最近扫描时间


示例值:2024-10-31 22:3****
VulCnt Integer

漏洞个数


示例值:0
RiskCnt Integer

风险行为数


示例值:0
SensitiveInfoCnt Integer

敏感信息数


示例值:0
IsTrustImage Boolean

是否信任镜像


示例值:false
OsName String

镜像系统


示例值:windows
AgentError String

agent镜像扫描错误


示例值:timeout
ScanError String

后端镜像扫描错误


示例值:timeout
Architecture String

系统架构


示例值:Metadata
Author String

作者


示例值:symon
BuildHistory String

构建历史


示例值:# create_time:2024-10-31 10:07:49
ScanVirusProgress Integer

木马扫描进度


示例值:0
ScanVulProgress Integer

漏洞扫进度


示例值:0
ScanRiskProgress Integer

敏感信息扫描进度


示例值:0
ScanVirusError String

木马扫描错误


示例值:timeout
ScanVulError String

漏洞扫描错误


示例值:timeout
ScanRiskError String

敏感信息错误


示例值:timeout
ScanStatus String

镜像扫描状态


示例值:SCANNED
VirusCnt Integer

木马病毒数


示例值:0
Status Integer

镜像扫描状态


示例值:2
RemainScanTime Integer

剩余扫描时间


示例值:0
IsAuthorized Integer

授权为:1,未授权为:0


示例值:1
Solution String

解决方案


示例值:解决方案
Reason String

原因


示例值:原因
RepoDigests Array of String

仓库Digests


示例值:["sha256:2414035b086e3c42b99654c8b26e6f5b1b1598080d65fd03c7f499552ff4dc94"]
RequestId String 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 查询镜像详细信息

查询镜像详细信息

输入示例

POST / HTTP/1.1
Host: tcss.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAssetImageDetail
<公共请求参数>

{
    "ImageID": "sha256:707540fd8a54ab3ebc086ecc96d2d6143fd92c1cac4d0b23353e1b7078b5937b"
}

输出示例

{
    "Response": {
        "AgentError": "timeout",
        "Architecture": "Metadata",
        "Author": "symon",
        "BuildHistory": "# create_time:2021-09-15 18:20:05 tags:docker.io/centos:latest,yancyw:1,yancyw:2,yancyw:3, ADD file:1114113413411342942e068863ce2a8491bb71522c652f31fb466 in / ",
        "ContainerCnt": 51,
        "CreateTime": "2021-09-16 02:20:05",
        "HostCnt": 24,
        "SuperNodeCnt": 1,
        "ImageDigest": "sha256:707540fd8a54ab3ebc086ecc96d2d6143fd92c1cac4d0b23353e1b7078b5937b",
        "ImageID": "sha256:707540fd8a54ab3ebc086ecc96d2d6143fd92c1cac4d0b23353e1b7078b5937b",
        "ImageName": "docker.io/centos:latest",
        "IsAuthorized": 1,
        "IsTrustImage": true,
        "OsName": "centos:8.4.2105",
        "RemainScanTime": 0,
        "RequestId": "a11d268f-1601-4f63-9131-0382537b9e55",
        "RiskCnt": 211,
        "ScanError": "timeout",
        "ScanRiskError": "timeout",
        "ScanRiskProgress": 0,
        "ScanStatus": "SCANNED",
        "ScanTime": "2024-10-25 16:13:39",
        "ScanVirusError": "timeout",
        "ScanVirusProgress": 0,
        "ScanVulError": "timeout",
        "ScanVulProgress": 0,
        "SensitiveInfoCnt": 0,
        "Size": 231268856,
        "Status": 5,
        "VirusCnt": 0,
        "VulCnt": 230
    }
}

5. 开发者资源

腾讯云 API 平台

腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。

API Inspector

用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。

SDK

云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

命令行工具

6. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码

错误码 描述
InternalError 内部错误。
InternalError.MainDBFail 操作数据库失败。
InvalidParameter 参数错误。
InvalidParameter.ParsingError 参数解析错误。
ResourceNotFound 资源不存在。