Creates a security scan task for 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 CreateRepoTagScanTask

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

InstanceId String Yes cri-xkx6vujuhay0tssd

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

RepoId String Yes crr-xwvi3osiy4ffosss

The ID of the image repository.

Tag String Yes 1.24

The tag of the image.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

RequestId String B7E3720B-DFE3-4D5D-AE13-E2AE962F0564

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=CreateRepoTagScanTask
&InstanceId=cri-xkx6vujuhay0tssd
&RegionId=cn-shanghai
&RepoId=crr-xwvi3osiy4ffosss
&Tag=1.24
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RequestId":"B7E3720B-DFE3-4D5D-AE13-E2AE962F0564",
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RequestId>B7E3720B-DFE3-4D5D-AE13-E2AE962F0564</RequestId>
<Code>success</Code>

Error codes

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