Queries the scanning state of an image tag.

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 GetRepoTagScanStatus

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

InstanceId String Yes cri-2j88dtld8yel****

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-uf082u9dg8do****

The ID of the image repository.

Tag String Yes 1

The name of the image tag.

ScanTaskId String No 6b0b094f-8a90-4f8f-b660-2427aed0****

The ID of the security scan task.

Digest String No 67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1d529

The digest of the image.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the operation is successful.

RequestId String 1EDB0A5B-C7B4-4D6A-91B1-95191B1C16C2

The ID of the request.

Status String COMPLETE

The image tag scanning state. Valid values:

  • SCANNING: The image tag is being scanned.
  • COMPLETE: The image tag is scanned.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetRepoTagScanStatus
&InstanceId=cri-2j88dtld8yel****
&RegionId=cn-shanghai
&RepoId=crr-uf082u9dg8do****
&Tag=1
&<Common request parameters>

Sample success responses

XML format

<code>200</code>
<data>
    <Status>COMPLETE</Status>
    <IsSuccess>true</IsSuccess>
    <RequestId>1EDB0A5B-C7B4-4D6A-91B1-95191B1C16C2</RequestId>
    <Code>success</Code>
</data>
<requestId>1EDB0A5B-C7B4-4D6A-91B1-95191B1C16C2</requestId>
<successResponse>true</successResponse>

JSON format

{
    "code":"200",
    "data":{
        "Status":"COMPLETE",
        "IsSuccess":true,
        "RequestId":"1EDB0A5B-C7B4-4D6A-91B1-95191B1C16C2",
        "Code":"success"
    },
    "requestId":"1EDB0A5B-C7B4-4D6A-91B1-95191B1C16C2",
    "successResponse":true
}

Error codes

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