Queries the information about image layers of an image.


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
InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

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 return value.

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

The ID of the request.

Layers Array N/A

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.


Sample requests

http(s)://[Endpoint]/? Action=GetRepoTagLayers
&<Common request parameters>

Sample success responses

XML format

    <LayerCMD>/usr/bin/virtual-kubelet /usr/bin/virtual-kubelet # buildkit</LayerCMD>

JSON format

            "LayerCMD":"/usr/bin/virtual-kubelet /usr/bin/virtual-kubelet # buildkit",

Error codes

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