Queries the tasks that you create to fix image risks.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeImageFixTask

The operation that you want to perform. Set the value to DescribeImageFixTask.

StartTime Long No 1634725571000

The timestamp when the task starts. Unit: milliseconds.

EndTime Long No 1635575219000

The timestamp when the task ends. Unit: milliseconds.

Status String No 1

The status of the task. Valid values:

  • 1: The task is running.
  • 2: The task is successful.
  • 3: The task failed.
CurrentPage Integer Yes 1

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

PageSize Integer Yes 20

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

Response parameters

Parameter Type Example Description
RequestId String 8AC52BBA-85D3-5F64-9B48-D08437CAF916

The ID of the request, which is used to locate and troubleshoot issues.

PageInfo Object

The pagination information.

CurrentPage Integer 1

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

PageSize Integer 20

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

TotalCount Integer 12

The total number of tasks returned.

Count Integer 12

The number of tasks returned on the current page.

BuildTasks Array of BuildTask

The details about the task.

BuildTaskId String ivf-939536b5-c3ca-427b-8183-91007756

The ID of the task.

TaskType String IMAGE_REPAIR

The type of the task. The value is fixed as IMAGE_REPAIR, which indicates the tasks that you create to fix image risks.

RepoNamespace String name-002

The namespace of the image.

RepoName String test-redhat

The name of the image repository.

RegionId String cn-hangzhou

The region of the image.

OldTag String centos8.1-ja

The version of the image.

OldUuid String 2fa731681911ae8d1b5f11893ace****

The UUID of the image.

NewTag String redhat8-vault

The version of the image after image risks are fixed.

NewUuid String 2fa731681911ae8d1b5f11893ace****

The UUID of the image after image risks are fixed.

FixTime String 2021-10-14 20:32:05

The timestamp when the task ends. Unit: milliseconds.

FinishTime String 2021-10-14 20:34:07

The timestamp when the task starts. Unit: milliseconds.

Status Integer 2

The status of the task. Valid values:

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

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeImageFixTask
&StartTime=1634725571000
&EndTime=1635575219000
&Status=1
&CurrentPage=1
&PageSize=20
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeImageFixTaskResponse>
    <RequestId>8AC52BBA-85D3-5F64-9B48-D08437CAF916</RequestId>
    <PageInfo>
        <CurrentPage>1</CurrentPage>
        <PageSize>20</PageSize>
        <TotalCount>12</TotalCount>
        <Count>12</Count>
    </PageInfo>
    <BuildTasks>
        <BuildTaskId>ivf-939536b5-c3ca-427b-8183-91007756</BuildTaskId>
        <TaskType>IMAGE_REPAIR</TaskType>
        <RepoNamespace>name-002</RepoNamespace>
        <RepoName>test-redhat</RepoName>
        <RegionId>cn-hangzhou</RegionId>
        <OldTag>centos8.1-ja</OldTag>
        <OldUuid>2fa731681911ae8d1b5f11893ace****</OldUuid>
        <NewTag>redhat8-vault</NewTag>
        <NewUuid>2fa731681911ae8d1b5f11893ace****</NewUuid>
        <FixTime>2021-10-14 20:32:05</FixTime>
        <FinishTime>2021-10-14 20:34:07</FinishTime>
        <Status>2</Status>
    </BuildTasks>
</DescribeImageFixTaskResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "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
  } ]
}

Error codes

For a list of error codes, visit the API Error Center.