CVE Information Corresponding to the Vulnerability
Function
This API is used to query the CVE information corresponding to the vulnerability.
Calling Method
For details, see Calling APIs.
URI
GET /v5/{project_id}/image/vulnerability/{vul_id}/cve
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Tenant project ID |
vul_id |
Yes |
String |
Vulnerability ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
enterprise_project_id |
No |
String |
Enterprise project ID. To query all enterprise projects, set this parameter to all_granted_eps. |
offset |
No |
Integer |
Offset, which specifies the start position of the record to be returned. The value must be a number no less than 0. The default value is 0. |
limit |
No |
Integer |
Number of records displayed on each page. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
x-auth-token |
Yes |
String |
User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total_num |
Integer |
Total number |
data_list |
Array of ImageVulCveInfo objects |
List |
Example Requests
Query the CVE information of the vulnerability whose ID is vul_id.
GET https://{endpoint}/v5/{project_id}/image/vulnerability/{vul_id}/cve?offset=0&limit=200&enterprise_project_id=all_granted_eps
Example Responses
Status code: 200
Succeeded in requesting the CVE information list corresponding to the vulnerability.
{ "total_num" : 1, "data_list" : [ { "cve_id" : "CVE-2021-45960", "cvss_score" : 8.8, "description" : "In Expat (aka libexpat) XXXX", "publish_time" : 1641035700000 } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Succeeded in requesting the CVE information list corresponding to the vulnerability. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot