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


Sample requests

&<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 API Error Center.