镜像仓库查询镜像仓库详情

最近更新时间:2024-11-08 22:38:17

我的收藏

1. 接口描述

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

镜像仓库镜像仓库列表详情

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

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

2. 输入参数

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

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeAssetImageRegistryDetail。
Version String 公共参数,本接口取值:2020-11-01。
Region String 公共参数,此参数为可选参数。
Id Integer 仓库列表id
示例值:137884016
ImageId String 镜像ID
示例值:sha256:6aeb261851b58e56bda1d5186208c814a9fb92a0b20dcf5e1520ebd4bced****

3. 输出参数

参数名称 类型 描述
ImageDigest String 镜像Digest
示例值:sha256:4aa748c6f2ed738e7f91efb51e23be7fe42d79d902547065b932da7b667b****
ImageRepoAddress String 镜像地址
示例值:image-center.tencentcloudcr.com/base/cyf****
RegistryType String 镜像类型
示例值:tcr
ImageName String 仓库名称
示例值:cyfljdk
ImageTag String 镜像版本
示例值:11
ScanTime String 扫描时间
示例值:2024-11-01T00:02:07+0****
ScanStatus String 扫描状态
示例值:SCANNED
VulCnt Integer 安全漏洞数
示例值:0
VirusCnt Integer 木马病毒数
示例值:0
RiskCnt Integer 风险行为数
示例值:0
OsName String 镜像系统
示例值:linux
ScanVirusError String 木马扫描错误
示例值:MessageRegistryScan
ScanVulError String 漏洞扫描错误
示例值:MessageRegistryScan
LayerInfo String 层文件信息
示例值:2024-10-16 10:18:03COPY /rootfs/ / # buildkit2024-10-16 10:18:03CMD ["/bin/bash"]2024-10-16 10:18:03ARG version=11.0.25.9-12024-10-16 10:18:03RUN |1 version=11.0.25.9-1 /bin/sh -c set -eux && export GNUPGHOME="$(mktemp -d)" && curl -fL -o corretto.key https://yum.corretto.aws/corretto.key && gpg --batch --import corretto.key && gpg --batch --export --armor '6DC3636DAE534049C8B94623A122542AB04F24E3' > corretto.key && rpm --import corretto.key && rm -r "$GNUPGHOME" corretto.key && curl -fL -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo && grep -q '^gpgcheck=1' /etc/yum.repos.d/corretto.repo && echo "priority=9" >> /etc/yum.repos.d/corretto.repo && yum install -y java-11-amazon-corretto-devel-$version && (find /usr/lib/jvm/java-11-amazon-corretto -name src.zip -delete || true) && yum install -y fontconfig && yum clean all # buildkit2024-10-16 10:18:03ENV LANG=C.UTF-82024-10-16 10:18:03ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto2024-10-25 17:07:21/bin/sh -c #(nop) WORKDIR /app2024-10-25 17:07:22/bin/sh -c #(nop) ARG TIME_ZONE=Asia/Shanghai2024-10-31 15:36:40/bin/sh -c #(nop) ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 TZ=Asia/Shanghai2024-10-31 15:36:41/bin/sh -c #(nop) COPY dir:b6be22d5f6b7ecac64178d9ecb1776130408ba2ceefd1ccb00a8a74e963020c6 in /apps 2024-10-31 15:36:41/bin/sh -c #(nop) WORKDIR /agent2024-10-31 15:36:43/bin/sh -c #(nop) COPY dir:d820fbe9b16780dc71f1dde615f814fa61606b4016d71379d146e6ca0f3241a4 in /agent 2024-10-31 15:36:43/bin/sh -c #(nop) ENTRYPOINT ["/bin/sh" "-c" "bash****]
InstanceId String 实例id
示例值:tcr-o03y****
InstanceName String 实例名称
示例值:image-ce****
Namespace String 命名空间
示例值:base
ScanRiskError String 高危扫描错误
示例值:MessageRegistryScan
ScanVirusProgress Integer 木马信息扫描进度
示例值:100
ScanVulProgress Integer 漏洞扫描进度
示例值:100
ScanRiskProgress Integer 敏感扫描进度
示例值:100
ScanRemainTime Integer 剩余扫描时间秒
示例值:0
CveStatus String cve扫描状态
示例值:SCANNED
RiskStatus String 高危扫描状态
示例值:SCANNED
VirusStatus String 木马扫描状态
示例值:SCANNED
Progress Integer 总进度
示例值:100
IsAuthorized Integer 授权状态
示例值:1
ImageSize Integer 镜像大小
示例值:245311264
ImageId String 镜像Id
示例值:sha256:6aeb261851b58e56bda1d5186208c814a9fb92a0b20dcf5e1520ebd4bced****
RegistryRegion String 镜像区域
示例值:None
ImageCreateTime Timestamp ISO8601 镜像创建的时间
示例值:2019-10-24T14:20:51+0800
SensitiveInfoCnt Integer 敏感信息数
示例值:0
Id Integer Id
示例值:1
RequestId String 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 查看仓库镜像详情

输入示例

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

{
    "Id": "5427"
}

输出示例

{
    "Response": {
        "RequestId": "acc92f01-ee14-4eec-a1b6-e78d3ea0b7e9",
        "ImageDigest": "sha256:615475135bb705517e749767a28f6bd57199008d3e9b688efa0f73a8befccc97",
        "ImageId": "sha256:e68ba1280908f76a9e22a813b9ea0c7358e9bcf0ed616fddf88dad557e33d1ca",
        "RegistryType": "ccr",
        "ImageRepoAddress": "ccr.ccs.tencentyun.com/yunding/person1",
        "InstanceId": "ins-apqv42***",
        "InstanceName": "ccr-default",
        "Namespace": "yunding",
        "ImageName": "person1",
        "ImageTag": "v1",
        "ImageSize": 74866818,
        "ScanTime": "2022-01-14T21:03:19+08:00",
        "ScanStatus": "SCANNED",
        "Progress": 100,
        "VulCnt": 172,
        "VirusCnt": 0,
        "RiskCnt": 1,
        "SentiveInfoCnt": 1,
        "OsName": "linux",
        "ScanVirusError": "MessageRegistryScan",
        "ScanVulError": "MessageRegistryScan",
        "ScanRiskError": "MessageRegistryScan",
        "ScanVirusProgress": 0,
        "ScanVulProgress": 100,
        "ScanRiskProgress": 100,
        "ScanRemainTime": 0,
        "CveStatus": "SCANNED",
        "RiskStatus": "SCANNED",
        "VirusStatus": "NOT_SCAN",
        "IsAuthorized": 1,
        "LayerInfo": "#2020-06-17 00:22:24.918233762 +0000 UTC\n\n/bin/sh -c #(nop) ADD file:84700c11fcc969ac08ef25f115513d76c7b72a4118c01fbc86ef0a6056fdebeb in / \n\n#2020-06-17 00:22:25.276021438 +0000 UTC\n\n/bin/sh -c #(nop)  LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20200611\n\n#2020-06-17 00:22:25.47282687 +0000 UTC\n\n/bin/sh -c #(nop)  CMD [\"/bin/bash\"]\n\n#2020-12-18 10:06:01.1576746 +0000 UTC\n\n/bin/sh -c echo \"RSYNC_PASSWORD='passwd' rsync\"\n\n",
        "RegistryRegion": "default",
        "ImageCreateTime": "2020-12-25T16:40:39+08:00"
    }
}

示例2 镜像仓库查询镜像仓库详情

输入示例

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

{
    "Id": 3421599
}

输出示例

{
    "Response": {
        "RequestId": "8a64a4f9-864c-49c6-adcb-21b483de477a",
        "ImageDigest": "sha256:8d8faaa36c253a8745c392fc71640757d29a5f026fc0e44bb9c98d56544f5175",
        "ImageId": "sha256:bb804a9c85d7199b8fd6a0c1a34ef1d049689604046fc5ce1ee6b968de78281b",
        "RegistryType": "ccr",
        "ImageRepoAddress": "hkccr.ccs.tencentyun.com/mhzou/mhccrxg",
        "InstanceId": "ins-apqv42***",
        "InstanceName": "ccr-ap-hongkong",
        "Namespace": "mhzou",
        "ImageName": "mhccrxg",
        "ImageTag": "mhccrxg1",
        "ImageSize": 8544764,
        "ScanTime": "2022-01-19T22:58:23+08:00",
        "ScanStatus": "SCANNED",
        "Progress": 100,
        "VulCnt": 2425,
        "VirusCnt": 0,
        "RiskCnt": 0,
        "SentiveInfoCnt": 0,
        "OsName": "linux",
        "ScanVirusError": "MessageRegistryScan",
        "ScanVulError": "MessageRegistryScan",
        "ScanRiskError": "MessageRegistryScan",
        "ScanVirusProgress": 0,
        "ScanVulProgress": 100,
        "ScanRiskProgress": 100,
        "ScanRemainTime": 0,
        "CveStatus": "SCANNED",
        "RiskStatus": "SCANNED",
        "VirusStatus": "NOT_SCAN",
        "IsAuthorized": 1,
        "LayerInfo": "#2020-06-17 00:22:24.918233762 +0000 UTC\n\n/bin/sh -c #(nop) ADD file:84700c11fcc969ac08ef25f115513d76c7b72a4118c01fbc86ef0a6056fdebeb in / \n\n#2020-06-17 00:22:25.276021438 +0000 UTC\n\n/bin/sh -c #(nop)  LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20200611\n\n#2020-06-17 00:22:25.47282687 +0000 UTC\n\n/bin/sh -c #(nop)  CMD [\"/bin/bash\"]\n\n#2020-12-18 10:06:01.1576746 +0000 UTC\n\n/bin/sh -c echo \"RSYNC_PASSWORD='passwd' rsync\"\n\n",
        "RegistryRegion": "ap-hongkong",
        "ImageCreateTime": "1900-01-01T00:00:00+00:00"
    }
}

5. 开发者资源

腾讯云 API 平台

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

API Inspector

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

SDK

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

命令行工具

6. 错误码

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

错误码 描述
InvalidParameter 参数错误。
ResourceNotFound 资源不存在。