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-kmsiwlxxdcva****

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-kwgb20p8wwmh****

The ID of the image repository.

Tag String Yes master

The tag of the image.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the operation is successful.

Layers Array of Layers

The information about image layers.

BlobDigest String sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e

The digest of the blob.

BlobSize Long 23655489

The size of the blob.

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.

LayerInstruction String COPY

The instruction used to create the image layer.

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

The ID of the request.

Examples

Sample requests

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

Sample success responses

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>

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"
}

Error codes

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