Creates an image scan task.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the instance. | cri-xkx6vujuhay0**** |
RepoId | string | Yes | The ID of the image repository. | crr-xwvi3osiy4ff**** |
Tag | string | Yes | The version of the image. | 1.24 |
Digest | string | No | The digest of the image. | sha256:815386ebbe9a3490f38785ab11bda34ec8dacf4634af77b8912832d4f85dca04 |
ScanService | string | No | The type of the scanning engine.
| ACR_SCAN_SERVICE |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "BC648259-91A7-4502-BED3-EDF64361FA83"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
403 | NoPrivilege | Access denied for this user. |
500 | SystemError | Unknown error. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2021-05-28 | Add Operation | see changesets |