All Products
Search
Document Center

Container Registry:CreateRepoTagScanTask

Last Updated:Mar 01, 2024

Creates an image scan task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

cri-xkx6vujuhay0****
RepoIdstringYes

The ID of the image repository.

crr-xwvi3osiy4ff****
TagstringYes

The version of the image.

1.24
DigeststringNo

The digest of the image.

sha256:815386ebbe9a3490f38785ab11bda34ec8dacf4634af77b8912832d4f85dca04
ScanServicestringNo

The type of the scanning engine.

  • SAS_SCAN_SERVICE: Security Center scan engine (paid service)
  • ACR_SCAN_SERVICE: Container Registry scan engine
ACR_SCAN_SERVICE

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The return value.

success
IsSuccessboolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.
true
RequestIdstring

The ID of the request.

BC648259-91A7-4502-BED3-EDF64361FA83

Examples

Sample success responses

JSONformat

{
  "Code": "success",
  "IsSuccess": true,
  "RequestId": "BC648259-91A7-4502-BED3-EDF64361FA83"
}

Error codes

HTTP status codeError codeError message
403NoPrivilegeAccess denied for this user.
500SystemErrorUnknown error.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-05-28Add Operationsee changesets