Queries the information about image layers of an image.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetRepoTagLayers

The operation that you want to perform. Set the value to GetRepoTagLayers.

InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

RepoId String Yes crr-kwgb20p8wwmhol1t

The ID of the repository.

Tag String Yes master

The tag of the image.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

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

The ID of the request.

Layers Array

The information about image layers.

BlobDigest String sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e

The digest of the blob.

BlobSize Long 23655489

The size of the blob.

LayerInstruction String COPY

The instruction used to create the image layer.

LayerCMD String /usr/bin/virtual-kubelet /usr/bin/virtual-kubelet # buildkit

The command used to create the image layer.

LayerIndex Integer 0

The index of the image layer.

Examples

Sample requests

http(s)://[Endpoint]/? Action=GetRepoTagLayers
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoId=crr-kwgb20p8wwmhol1t
&Tag=master
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RequestId":"D39D7151-0299-47E3-B948-E49E1EA8D406",
    "Layers":[
        {
            "BlobDigest":"sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e",
            "LayerInstruction":"COPY",
            "BlobSize":23655489,
            "LayerCMD":"/usr/bin/virtual-kubelet /usr/bin/virtual-kubelet # buildkit",
            "LayerIndex":0
        }
    ],
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RequestId>D39D7151-0299-47E3-B948-E49E1EA8D406</RequestId>
<Layers>
    <BlobDigest>sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e</BlobDigest>
    <LayerInstruction>COPY</LayerInstruction>
    <BlobSize>23655489</BlobSize>
    <LayerCMD>/usr/bin/virtual-kubelet /usr/bin/virtual-kubelet # buildkit</LayerCMD>
    <LayerIndex>0</LayerIndex>
</Layers>
<Code>success</Code>

Error codes

For a list of error codes, visit the API Error Center.