Creates a security scan task for an image.
Debugging
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-xkx6vujuhay0**** |
The ID of the instance. |
RegionId | String | Yes | cn-shanghai |
The ID of the region. |
RepoId | String | Yes | crr-xwvi3osiy4ff**** |
The ID of the image repository. |
Tag | String | Yes | 1.24 |
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. |
RequestId | String | B7E3720B-DFE3-4D5D-AE13-E2AE962F0564 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateRepoTagScanTask
&InstanceId=cri-xkx6vujuhay0****
&RegionId=cn-shanghai
&RepoId=crr-xwvi3osiy4ff****
&Tag=1.24
&<Common request parameters>
Sample success responses
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>B7E3720B-DFE3-4D5D-AE13-E2AE962F0564</RequestId>
<Code>success</Code>
JSON
format
{
"IsSuccess":true,
"RequestId":"B7E3720B-DFE3-4D5D-AE13-E2AE962F0564",
"Code":"success"
}
Error codes
For a list of error codes, visit API Error Center.