查询镜像版本 Manifest 信息

调试

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

请求参数

名称 类型 是否必选 示例值 描述
InstanceId String cri-kmsiwlxxdcvaduwb

实例 ID

RegionId String cn-shanghai

地区

RepoId String crr-kwgb20p8wwmhol1t

仓库 ID

Tag String master

镜像版本

SchemaVersion Integer 2

Schema 版本,可选 1、2

返回数据

名称 类型 示例值 描述
IsSuccess Boolean true

是否成功

Code String success

返回值

RequestId String D39D7151-0299-47E3-B948-E49E1EA8D406

请求ID

Manifest Struct

Manifest信息

SchemaVersion Integer 2

schema版本

Name String null

名称

Tag String master

镜像TAG

Architecture String null

架构

MediaType String application/vnd.docker.distribution.manifest.v2+json

类型

FsLayers Array

文件层信息

BlobSum String null

块sum值

History Array

历史信息

V1Compatibility Map null

v1兼容性

Signatures Array

签名列表

Header Map null

头信息

Signature String null

签名信息

Protected String null

受保护

Layers Array

层列表

MediaType String application/vnd.docker.image.rootfs.diff.tar.gzip

文件类型

Size Long 32654

大小

Digest String sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f

digest值

Config Struct

配置信息

MediaType String application/vnd.docker.container.image.v1+json

文件类型

Size Long 7023

大小

Digest String sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7

digest值

示例

请求示例

http(s)://[Endpoint]/?Action=GetRepoTagManifest
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoId=crr-kwgb20p8wwmhol1t
&Tag=master
&SchemaVersion=2
&<公共请求参数>

正常返回示例

JSON 格式

{
    "Code": "success",
    "IsSuccess": true,
    "Tag": "master",
    "RequestId": "D39D7151-0299-47E3-B948-E49E1EA8D406",
    "Manifest": 
    {
        "schemaVersion": 2,
        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
        "config": {
            "mediaType": "application/vnd.docker.container.image.v1+json",
            "size": 7023,
            "digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
        },
        "layers": [
            {
                "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                "size": 32654,
                "digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f"
            },
            {
                "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                "size": 16724,
                "digest": "sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b"
            },
            {
                "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                "size": 73109,
                "digest": "sha256:ec4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867736"
            }
        ]
    }
}

XML 格式

<Code>success</Code>
<IsSuccess>true</IsSuccess>
<Tag>master</Tag>
<RequestId>D39D7151-0299-47E3-B948-E49E1EA8D406</RequestId>
<Manifest>
    <schemaVersion>2</schemaVersion>
    <mediaType>application/vnd.docker.distribution.manifest.v2+json</mediaType>
    <config>
        <mediaType>application/vnd.docker.container.image.v1+json</mediaType>
        <size>7023</size>
        <digest>sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7</digest>
    </config>
    <layers>
        <mediaType>application/vnd.docker.image.rootfs.diff.tar.gzip</mediaType>
        <size>32654</size>
        <digest>sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f</digest>
    </layers>
    <layers>
        <mediaType>application/vnd.docker.image.rootfs.diff.tar.gzip</mediaType>
        <size>16724</size>
        <digest>sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b</digest>
    </layers>
    <layers>
        <mediaType>application/vnd.docker.image.rootfs.diff.tar.gzip</mediaType>
        <size>73109</size>
        <digest>sha256:ec4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867736</digest>
    </layers>
</Manifest>

错误码

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