Queries vulnerabilities by type.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeVulList |
The operation that you want to perform. Set the value to DescribeVulList. |
Type | String | Yes | cve |
The type of the vulnerability to query. Valid values:
|
AttachTypes | String | No | sca |
The additional type of vulnerabilities. You can specify this parameter when you query application vulnerabilities. If Type is set to app, you must specify this parameter. Set the value to sca. Note If this parameter is set to sca, application vulnerabilities and the vulnerabilities that are detected based on software
component analysis are queried. If you do not specify this parameter, only application
vulnerabilities are queried.
|
Remark | String | No | 1.2.XX.XX |
The remarks for the asset affected by the vulnerability, which can be the private IP address, public IP address, or name of the asset. |
GroupId | String | No | 9207613 |
The ID of the asset group. Note You can call the DescribeAllGroups operation to query the IDs of asset groups.
|
Uuids | String | No | 1587bedb-fdb4-48c4-9330-************ |
The UUID of the server on which the vulnerability is detected. Separate multiple UUIDs with commas (,). |
AliasName | String | No | RHSA-2019:0230-Important: polkit security update |
The name of the vulnerability to query. |
Lang | String | No | zh |
The natural language of the request and response. Default value: zh. Valid values:
|
Dealed | String | No | n |
Specifies whether the vulnerability that you want to query is fixed. Valid values:
|
CurrentPage | Integer | No | 1 |
The number of the page to return. Default value: 1. |
PageSize | Integer | No | 20 |
The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page. Note We recommend that you do not leave this parameter empty.
|
Necessity | String | No | asap,later,nntf |
The priority to fix the vulnerability. Separate multiple priorities with commas (,). Valid values:
|
VpcInstanceIds | String | No | ins-133****,ins-5414**** |
The ID of the virtual private cloud (VPC) in which the vulnerability is detected. Separate multiple IDs with commas (,). Note You can call the DescribeVpcList operation to query the VPC IDs.
|
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.
For more information about sample requests, see the "Examples" section of this topic.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 2F26AB2A-1075-488F-8472-40E5DB486ACC |
The ID of the request. |
CurrentPage | Integer | 1 |
The page number of the returned page. |
PageSize | Integer | 20 |
The number of entries returned per page. |
TotalCount | Integer | 2 |
The total number of vulnerabilities returned. |
VulRecords | Array of VulRecord |
The information of the vulnerability. |
|
AliasName | String | RHSA-2019:0230-Important: polkit security update |
The name of the vulnerability. |
ExtendContentJson | Struct |
The extended information of the vulnerability. |
|
AbsolutePath | String | /roo/www/web |
The package path of the software that has the vulnerability. |
AliasName | String | RHSA-2019:0230-Important: polkit security update |
The name of the vulnerability. |
Ip | String | 1.2.XX.XX |
The public IP address of the asset that is associated with the vulnerability. |
LastTs | Long | 1620404763000 |
The timestamp when the vulnerability is last detected. Unit: milliseconds. |
Necessity | Struct |
Indicates whether the vulnerability needs to be fixed. |
|
Assets_factor | String | 1 |
The asset importance score. Valid values:
|
Cvss_factor | String | 7.8 |
The Common Vulnerability Scoring System (CVSS) score. |
Enviroment_factor | String | 1.0 |
The environmental score. |
Is_calc | String | 1 |
Indicates whether the vulnerability priority score is calculated. Valid values:
|
Status | String | normal |
The status of the vulnerability priority score. Valid values:
|
Time_factor | String | 1.0 |
The temporal score. |
Total_score | String | 7.8 |
The total vulnerability priority score. The following list describes priority scores and related fixing suggestions:
|
Os | String | centos |
The name of the operating system. |
OsRelease | String | 7 |
The release of the operating system. |
PrimaryId | Long | 111 |
The ID of the vulnerability. |
RpmEntityList | Array of RpmEntity |
Details about RPM packages. |
|
ContainerName | String | k8s_67895c4_xxx |
The name of the container. |
FullVersion | String | 3.10.0-693.2.2.el7 |
The complete version number. |
ImageName | String | registry_387ytb_xxx |
The name of the image. |
MatchDetail | String | python-perf version less than 0:3.10.0-693.21.1.el7 |
The detailed matching information of the vulnerability. |
Name | String | python-perf |
The name of the RPM package. |
Path | String | /usr/lib64/python2.7/site-packages |
The path to the software that has the vulnerability. |
UpdateCmd | String | *** update python-perf |
The command used to fix the vulnerability. |
Version | String | 3.10.0 |
The version number of the package of the software that has the vulnerability. |
Status | String | 1 |
The status of the vulnerability. Valid values:
|
Tag | String | oval |
The tag of the vulnerability. |
cveList | List | ["CVE-2016-8610", "CVE-2017-5335" ] |
The Common Vulnerabilities and Exposures (CVE) list. |
FirstTs | Long | 1554189334000 |
The timestamp when the vulnerability was first detected. Unit: milliseconds. |
GroupId | Integer | 281801 |
The ID of the asset group. |
InstanceId | String | i-bp18t*** |
The instance ID of the asset. |
InstanceName | String | Test ECS instance |
The name of the asset. |
InternetIp | String | 1.2.XX.XX |
The public IP address of the asset. |
IntranetIp | String | 1.2.XX.XX |
The private IP address of the asset. |
LastTs | Long | 1620404763000 |
The timestamp when the vulnerability is last detected. Unit: milliseconds. |
ModifyTs | Long | 1620404763000 |
The timestamp when the vulnerability status is modified. Unit: milliseconds. |
Name | String | oval:com.redhat.rhsa:def:20170574 |
The name of the vulnerability. |
Necessity | String | asap |
The priority to fix the vulnerability. Valid values:
Note We recommend that you fix the vulnerabilities that have the high priority at the earliest opportunity.
|
Online | Boolean | true |
Indicates whether the Security Center agent on your asset is online. Valid values:
|
OsVersion | String | linux |
The name of the operating system for your asset. |
PrimaryId | Long | 101162078 |
The ID of the vulnerability. |
Related | String | CVE-2017-7518,CVE-2017-12188 |
The ID of a CVE related to the vulnerability. Multiple CVE IDs are separated by commas (,). |
RepairTs | Long | 1541207563000 |
The timestamp when the vulnerability is fixed. Unit: milliseconds. |
ResultCode | String | 0 |
The code returned after the vulnerability is fixed. |
ResultMessage | String | timeout |
The message returned after the vulnerability is fixed. |
Status | Integer | 1 |
The status of the vulnerability. Valid values:
|
Tag | String | oval |
The tag of the vulnerability. |
Type | String | cve |
The type of the vulnerability. Valid values:
|
Uuid | String | 04c56617-23fc-43a5-ab9b-**** |
The UUID of the asset. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeVulList
&Type=cve
&<Common request parameters>
Sample success responses
XML
format
<DescribeVulListResponse>
<TotalCount>2</TotalCount>
<PageSize>20</PageSize>
<RequestId>2F26AB2A-1075-488F-8472-40E5DB486ACC</RequestId>
<VulRecords>
<Status>1</Status>
<InstanceId>i-bp18t***</InstanceId>
<OsVersion>linux</OsVersion>
<Necessity>asap</Necessity>
<LastTs>1620404763000</LastTs>
<ResultMessage>timeout</ResultMessage>
<IntranetIp>1.2.XX.XX</IntranetIp>
<GroupId>281801</GroupId>
<Name>oval:com.redhat.rhsa:def:20170574</Name>
<InstanceName>Test ECS instance</InstanceName>
<RepairTs>1541207563000</RepairTs>
<FirstTs>1554189334000</FirstTs>
<Type>cve</Type>
<ModifyTs>1620404763000</ModifyTs>
<Related>CVE-2017-7518,CVE-2017-12188</Related>
<Uuid>04c56617-23fc-43a5-ab9b-****</Uuid>
<InternetIp>1.2.XX.XX</InternetIp>
<AliasName>RHSA-2019:0230-Important: polkit security update</AliasName>
<Tag>oval</Tag>
<Online>true</Online>
<ResultCode>0</ResultCode>
<PrimaryId>101162078</PrimaryId>
<ExtendContentJson>
<Status>1</Status>
<Os>centos</Os>
<Ip>1.2.XX.XX</Ip>
<AliasName>RHSA-2019:0230-Important: polkit security update</AliasName>
<LastTs>1620404763000</LastTs>
<Tag>oval</Tag>
<AbsolutePath>/roo/www/web</AbsolutePath>
<OsRelease>7</OsRelease>
<PrimaryId>111</PrimaryId>
<RpmEntityList>
<Path>/usr/lib64/python2.7/site-packages</Path>
<ImageName>registry_387ytb_xxx</ImageName>
<UpdateCmd>*** update python-perf</UpdateCmd>
<ContainerName>k8s_67895c4_xxx</ContainerName>
<Version>3.10.0</Version>
<FullVersion>3.10.0-693.2.2.el7</FullVersion>
<MatchDetail>python-perf version less than 0:3.10.0-693.21.1.el7</MatchDetail>
<Name>python-perf</Name>
</RpmEntityList>
<cveList>["CVE-2016-8610", "CVE-2017-5335" ]</cveList>
<Necessity>
<Total_score>7.8</Total_score>
<Status>normal</Status>
<Time_factor>1</Time_factor>
<Cvss_factor>7.8</Cvss_factor>
<Is_calc>1</Is_calc>
<Enviroment_factor>1</Enviroment_factor>
<Assets_factor>1</Assets_factor>
</Necessity>
</ExtendContentJson>
</VulRecords>
<CurrentPage>1</CurrentPage>
</DescribeVulListResponse>
JSON
format
{
"TotalCount": 2,
"PageSize": 20,
"RequestId": "2F26AB2A-1075-488F-8472-40E5DB486ACC",
"VulRecords": {
"Status": 1,
"InstanceId": "i-bp18t***",
"OsVersion": "linux",
"Necessity": "asap",
"LastTs": 1620404763000,
"ResultMessage": "timeout",
"IntranetIp": "1.2.XX.XX",
"GroupId": 281801,
"Name": "oval:com.redhat.rhsa:def:20170574",
"InstanceName": "Test ECS instance",
"RepairTs": 1541207563000,
"FirstTs": 1554189334000,
"Type": "cve",
"ModifyTs": 1620404763000,
"Related": "CVE-2017-7518,CVE-2017-12188",
"Uuid": "04c56617-23fc-43a5-ab9b-****",
"InternetIp": "1.2.XX.XX",
"AliasName": "RHSA-2019:0230-Important: polkit security update",
"Tag": "oval",
"Online": true,
"ResultCode": 0,
"PrimaryId": 101162078,
"ExtendContentJson": {
"Status": 1,
"Os": "centos",
"Ip": "1.2.XX.XX",
"AliasName": "RHSA-2019:0230-Important: polkit security update",
"LastTs": 1620404763000,
"Tag": "oval",
"AbsolutePath": "/roo/www/web",
"OsRelease": 7,
"PrimaryId": 111,
"RpmEntityList": {
"Path": "/usr/lib64/python2.7/site-packages",
"ImageName": "registry_387ytb_xxx",
"UpdateCmd": "*** update python-perf",
"ContainerName": "k8s_67895c4_xxx",
"Version": "3.10.0",
"FullVersion": "3.10.0-693.2.2.el7",
"MatchDetail": "python-perf version less than 0:3.10.0-693.21.1.el7",
"Name": "python-perf"
},
"cveList": "[\"CVE-2016-8610\", \"CVE-2017-5335\" ]",
"Necessity": {
"Total_score": 7.8,
"Status": "normal",
"Time_factor": 1,
"Cvss_factor": 7.8,
"Is_calc": 1,
"Enviroment_factor": 1,
"Assets_factor": 1
}
}
},
"CurrentPage": 1
}
Error codes
For a list of error codes, visit the API Error Center.