All Products
Search
Document Center

Security Center:DescribeImageFixTask

Last Updated:Nov 13, 2024

Queries the tasks that you create to fix image risks.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:DescribeImageFixTaskget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StartTimelongNo

The timestamp when the task starts. Unit: milliseconds.

1634725571000
EndTimelongNo

The timestamp when the task ends. Unit: milliseconds.

1635575219000
StatusstringNo

The status of the task. Valid values:

  • 1: The task is running.
  • 2: The task is successful.
  • 3: The task failed.
1
CurrentPageintegerYes

The number of the page to return. Default value: 1

1
PageSizeintegerYes

The number of entries to return on each page. Default value: 20

20

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

8AC52BBA-85D3-5F64-9B48-D08437CAF916
PageInfoobject

The pagination information.

CurrentPageinteger

The page number of the returned page. Default value: 1

1
PageSizeinteger

The number of entries returned per page. Default value: 20

20
TotalCountinteger

The total number of tasks returned.

12
Countinteger

The number of tasks returned on the current page.

12
BuildTasksarray<object>

The tasks returned.

BuildTaskobject
BuildTaskIdstring

The ID of the task.

ivf-939536b5-c3ca-427b-8183-91007756
TaskTypestring

The type of the task. The value is fixed as IMAGE_REPAIR. The value indicates a task that fixes image risks.

IMAGE_REPAIR
RepoNamespacestring

The namespace of the image.

name-002
RepoNamestring

The name of the image repository.

test-redhat
RegionIdstring

The region of the image.

cn-hangzhou
OldTagstring

The version of the image.

centos8.1-ja
OldUuidstring

The UUID of the image.

2fa731681911ae8d1b5f11893ace****
NewTagstring

The version of the image after image risks are fixed.

redhat8-vault
NewUuidstring

The UUID of the image after image risks are fixed.

2fa731681911ae8d1b5f11893ace****
FixTimestring

The timestamp when the task ends. Unit: milliseconds.

2021-10-14 20:32:05
FinishTimestring

The timestamp when the task starts. Unit: milliseconds.

2021-10-14 20:34:07
Statusinteger

The status of the task. Valid values:

  • 1: The task is running.
  • 2: The task is successful.
  • 3: The task failed.
2
VulAliasstring

The alias of the fixed vulnerability.

CVE-2007-5686:rpath_linux Information Disclosure

Examples

Sample success responses

JSONformat

{
  "RequestId": "8AC52BBA-85D3-5F64-9B48-D08437CAF916",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 12,
    "Count": 12
  },
  "BuildTasks": [
    {
      "BuildTaskId": "ivf-939536b5-c3ca-427b-8183-91007756",
      "TaskType": "IMAGE_REPAIR",
      "RepoNamespace": "name-002",
      "RepoName": "test-redhat",
      "RegionId": "cn-hangzhou",
      "OldTag": "centos8.1-ja",
      "OldUuid": "2fa731681911ae8d1b5f11893ace****",
      "NewTag": "redhat8-vault",
      "NewUuid": "2fa731681911ae8d1b5f11893ace****",
      "FixTime": "2021-10-14 20:32:05",
      "FinishTime": "2021-10-14 20:34:07",
      "Status": 2,
      "VulAlias": "CVE-2007-5686:rpath_linux Information Disclosure"
    }
  ]
}

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.