Queries the information about image layers of an image.
Debugging
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. |
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
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 the API Error Center.