Queries the error logs that record tasks failed to fix image vulnerabilities.

Usage notes

You can call the DescribeTaskErrorLog operation to query the error logs that records task failed to fix image vulnerabilities. If a task fails to fix an image vulnerability, Security Center generates an error log. You can identify the cause of the failure based on the error log.

Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

Debugging

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

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeTaskErrorLog

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

BuildTaskId String Yes ivf-6e520160-205d-4801-b8e9-9e7efd8c

The ID of the task that you create to fix an image vulnerability.

SourceIp String No 10.12.XX.XX

The source IP address of the request.

Response parameters

Parameter Type Example Description
Logs Array of Log

The error logs that are returned.

Text String mv: cannot move 'CentOS-Base.repo' to 'CentOS-Base.repo.backup': Permission denied

The content of the log.

RequestId String F929E952-EBFC-56C3-BD35-BF8B59024C69

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

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeTaskErrorLog
&<Common request parameters>

Sample success responses

XML format

<DescribeTaskErrorLogResponse>
  <RequestId>F929E952-EBFC-56C3-BD35-BF8B59024C69</RequestId>
  <Count>100</Count>
  <Logs>
        <Text>mv: cannot move 'CentOS-Base.repo' to 'CentOS-Base.repo.backup': Permission denied</Text>
  </Logs>
</DescribeTaskErrorLogResponse>

JSON format

{
    "RequestId": "F929E952-EBFC-56C3-BD35-BF8B59024C69",
    "Count": "100",
    "Logs": [
        {
            "Text": "mv: cannot move 'CentOS-Base.repo' to 'CentOS-Base.repo.backup': Permission denied"
        }
    ]
}

Error codes

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