All Products
Search
Document Center

Security Center:OperateImageVul

Last Updated:Feb 20, 2024

Handles an image vulnerability, such as fixing the image vulnerability, verifying the fix of the image vulnerability, ignoring the image vulnerability, or canceling ignoring the image vulnerability.

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:OperateImageVulWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InfostringNo

The information about the vulnerability. The value of this parameter is in the JSON format and contains the following fields:

  • namespace: the namespace of the image
  • repoName: the name of the Container Registry repository
  • regionId: the region ID
  • instanceId: the ID of the Container Registry instance
  • repoId: the name of the repository
  • tag: the tad added to the image
  • digest: the digest of the image
  • newTag: the tag added to the image after the vulnerability is fixed
  • uuid: the UUID of the image
  • ids: the IDs of the vulnerability primary keys
[{\"namespace\":\"cloud_oa****\",\"repoName\":\"hybirdc****\",\"regionId\":\"cn-shanghai\",\"instanceId\":\"cri-rv4nvbv8iju4****\",\"repoId\":\"crr-2q7302qrofxg****\",\"tag\":\"hybird-cloud-web_fix_167115945****\",\"digest\":\"e1a4fd25884ca2ef8840bb252c9926e4f549df9e046500dd93539b2d458c****\",\"newTag\":\"hybird-cloud-web_fix_167115996****\",\"uuid\":\"4ad91dd8c0c02de6574fa98085d0****\",\"ids\":[197540864,197540865,197540869]}]
OperateTypestringNo

If you want to fix the vulnerability, set the value to vul_fix.

vul_fix
TypestringNo

The type of the vulnerability. Set the value to cve.

cve

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

486F2228-438A-544A-A533-433F943C15CD

Examples

Sample success responses

JSONformat

{
  "RequestId": "486F2228-438A-544A-A533-433F943C15CD"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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

Change history

Change timeSummary of changesOperation
No change history