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 |
ImageId | 否 | String | 镜像ID |
3. 输出参数
参数名称 | 类型 | 描述 |
---|---|---|
ImageDigest | String | 镜像Digest 注意:此字段可能返回 null,表示取不到有效值。 |
ImageRepoAddress | String | 镜像地址 注意:此字段可能返回 null,表示取不到有效值。 |
RegistryType | String | 镜像类型 注意:此字段可能返回 null,表示取不到有效值。 |
ImageName | String | 仓库名称 注意:此字段可能返回 null,表示取不到有效值。 |
ImageTag | String | 镜像版本 注意:此字段可能返回 null,表示取不到有效值。 |
ScanTime | String | 扫描时间 注意:此字段可能返回 null,表示取不到有效值。 |
ScanStatus | String | 扫描状态 注意:此字段可能返回 null,表示取不到有效值。 |
VulCnt | Integer | 安全漏洞数 注意:此字段可能返回 null,表示取不到有效值。 |
VirusCnt | Integer | 木马病毒数 注意:此字段可能返回 null,表示取不到有效值。 |
RiskCnt | Integer | 风险行为数 注意:此字段可能返回 null,表示取不到有效值。 |
OsName | String | 镜像系统 注意:此字段可能返回 null,表示取不到有效值。 |
ScanVirusError | String | 木马扫描错误 注意:此字段可能返回 null,表示取不到有效值。 |
ScanVulError | String | 漏洞扫描错误 注意:此字段可能返回 null,表示取不到有效值。 |
LayerInfo | String | 层文件信息 注意:此字段可能返回 null,表示取不到有效值。 |
InstanceId | String | 实例id 注意:此字段可能返回 null,表示取不到有效值。 |
InstanceName | String | 实例名称 注意:此字段可能返回 null,表示取不到有效值。 |
Namespace | String | 命名空间 注意:此字段可能返回 null,表示取不到有效值。 |
ScanRiskError | String | 高危扫描错误 注意:此字段可能返回 null,表示取不到有效值。 |
ScanVirusProgress | Integer | 木马信息扫描进度 注意:此字段可能返回 null,表示取不到有效值。 |
ScanVulProgress | Integer | 漏洞扫描进度 注意:此字段可能返回 null,表示取不到有效值。 |
ScanRiskProgress | Integer | 敏感扫描进度 注意:此字段可能返回 null,表示取不到有效值。 |
ScanRemainTime | Integer | 剩余扫描时间秒 注意:此字段可能返回 null,表示取不到有效值。 |
CveStatus | String | cve扫描状态 注意:此字段可能返回 null,表示取不到有效值。 |
RiskStatus | String | 高危扫描状态 注意:此字段可能返回 null,表示取不到有效值。 |
VirusStatus | String | 木马扫描状态 注意:此字段可能返回 null,表示取不到有效值。 |
Progress | Integer | 总进度 注意:此字段可能返回 null,表示取不到有效值。 |
IsAuthorized | Integer | 授权状态 注意:此字段可能返回 null,表示取不到有效值。 |
ImageSize | Integer | 镜像大小 注意:此字段可能返回 null,表示取不到有效值。 |
ImageId | String | 镜像Id 注意:此字段可能返回 null,表示取不到有效值。 |
RegistryRegion | String | 镜像区域 注意:此字段可能返回 null,表示取不到有效值。 |
ImageCreateTime | Timestamp ISO8601 | 镜像创建的时间 注意:此字段可能返回 null,表示取不到有效值。 示例值:"2019-10-24T14:20:51+0800" |
SensitiveInfoCnt | Integer | 敏感信息数 注意:此字段可能返回 null,表示取不到有效值。 示例值: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": "",
"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": "",
"ScanVulError": "",
"ScanRiskError": "",
"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='xxx' 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": "xxx",
"ImageDigest": "sha256:8d8faaa36c253a8745c392fc71640757d29a5f026fc0e44bb9c98d56544f5175",
"ImageId": "sha256:bb804a9c85d7199b8fd6a0c1a34ef1d049689604046fc5ce1ee6b968de78281b",
"RegistryType": "ccr",
"ImageRepoAddress": "hkccr.ccs.tencentyun.com/mhzou/mhccrxg",
"InstanceId": "",
"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": "",
"ScanVulError": "",
"ScanRiskError": "",
"ScanVirusProgress": 0,
"ScanVulProgress": 100,
"ScanRiskProgress": 100,
"ScanRemainTime": 0,
"CveStatus": "SCANNED",
"RiskStatus": "SCANNED",
"VirusStatus": "NOT_SCAN",
"IsAuthorized": 1,
"LayerInfo": "xxx",
"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。
- Tencent Cloud SDK 3.0 for Python: GitHub Gitee
- Tencent Cloud SDK 3.0 for Java: GitHub Gitee
- Tencent Cloud SDK 3.0 for PHP: GitHub Gitee
- Tencent Cloud SDK 3.0 for Go: GitHub Gitee
- Tencent Cloud SDK 3.0 for Node.js: GitHub Gitee
- Tencent Cloud SDK 3.0 for .NET: GitHub Gitee
- Tencent Cloud SDK 3.0 for C++: GitHub Gitee
- Tencent Cloud SDK 3.0 for Ruby: GitHub Gitee
命令行工具
6. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
错误码 | 描述 |
---|---|
InvalidParameter | 参数错误。 |
ResourceNotFound | 资源不存在。 |