Creates an image scan task that is not limited by a single primary task.
Operation description
Before calling this operation, call the PublicPreCheckImageScanTask operation to query the number of container images covered by the image scan node and the number of authorizations consumed. This ensures that sufficient authorizations are available for the image scan node and prevents the image scan node from a break due to insufficient authorizations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:PublicCreateImageScanTask |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The IP address of the access source. |
192.168..XX.XX |
| RegistryTypes |
string |
No |
The types of image registries. Separate multiple types with commas (,). Valid values:
|
acr |
| RegionIds |
string |
No |
The region IDs of the images. Separate multiple region IDs with commas (,). |
cn-hangzhou |
| InstanceIds |
string |
No |
The IDs of the Container Registry (ACR) instances. Separate multiple IDs with commas (,). |
i-uf6j8vq9l4r5ntht**** |
| RepoNamespaces |
string |
No |
The namespaces of the image registries. Separate multiple namespaces with commas (,). |
hanghai-namespace |
| RepoIds |
string |
No |
The IDs of the image registries. Separate multiple IDs with commas (,). |
crr-vridcl4**** |
| RepoNames |
string |
No |
The names of the image registries. Separate multiple names with commas (,). |
centos |
| Digests |
string |
No |
The SHA256 digest values of the images. Separate multiple SHA256 values with commas (,). |
6a5e103187b31a94592a47a5858617f7a6c |
| Tags |
string |
No |
The tags of the images. Separate multiple tags with commas (,). |
0.2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. Alibaba Cloud generates a unique identifier for each request. You can use the request ID to troubleshoot issues. |
F9353221-40F4-5F98-B73C-2803DC804033 |
| Data |
object |
The data returned when the operation is successful. |
|
| TaskId |
string |
The ID of the scan task. |
a410bb3e68c217a3368bc0238c66886d |
| TotalCount |
integer |
The total number of images to scan. |
5 |
| FinishCount |
integer |
The number of images that have been scanned. |
5 |
| CollectTime |
integer |
The timestamp when image information was collected, in milliseconds. |
1644286364150 |
| ExecTime |
integer |
The timestamp when the scan task started running, in milliseconds. |
1644286364150 |
| Status |
string |
The status of the scan task. Valid values:
|
SUCCESS |
| Progress |
integer |
The progress percentage of the scan task. |
100 |
| Result |
string |
The execution result of the scan task. Valid values:
Note
For the regions that support image security scanning, see the table of supported regions after the response parameters table in this topic. |
SUCCESS |
| CanCreate |
boolean |
Indicates whether more scan tasks can be created. Valid values:
Note
By default, up to 10 scan tasks can exist at the same time. If the number of scan tasks exceeds 10, creating a scan task by calling this operation fails. Wait until an existing scan task is completed before creating a new scan task. |
true |
Regions that support image security scanning
| Region | City | Region ID |
| China (Hangzhou) | Hangzhou | cn-hangzhou |
| China (Shanghai) | Shanghai | cn-shanghai |
| China (Shenzhen) | Shenzhen | cn-shenzhen |
| China (Qingdao) | Qingdao | cn-qingdao |
| China (Beijing) | Beijing | cn-beijing |
| China (Zhangjiakou) | Zhangjiakou | cn-zhangjiakou |
| China (Hohhot) | Hohhot | cn-huhehaote |
| China (Hong Kong) | Hong Kong | cn-hongkong |
| Japan (Tokyo) | Tokyo | ap-northeast-1 |
| Indonesia (Jakarta) | Jakarta | ap-southeast-5 |
| US (Silicon Valley) | Silicon Valley | us-west-1 |
| US (Virginia) | Virginia | us-east-1 |
| Germany (Frankfurt) | Frankfurt | eu-central-1 |
| UK (London) | London | eu-west-1 |
Examples
Success response
JSON format
{
"RequestId": "F9353221-40F4-5F98-B73C-2803DC804033",
"Data": {
"TaskId": "a410bb3e68c217a3368bc0238c66886d",
"TotalCount": 5,
"FinishCount": 5,
"CollectTime": 1644286364150,
"ExecTime": 1644286364150,
"Status": "SUCCESS",
"Progress": 100,
"Result": "SUCCESS",
"CanCreate": true
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | BeyondQuata | Please check the scan quota | |
| 400 | TaskNumEmpty | Create task quantity is empty. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.