Queries image vulnerabilities.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:DescribeImageGroupedVulList | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Type | string | No | The type of the vulnerability that you want to query. Valid values:
| cve |
GroupId | string | No | The ID of the asset group. | 1311 |
CveId | string | No | The Common Vulnerabilities and Exposures (CVE) ID of the vulnerability. | CVE-2017-15420 |
Uuids | string | No | The UUID of the asset. Separate multiple UUIDs with commas (,). | uuid-13134124**** |
Name | string | No | The name of the vulnerability. | debian:10:CVE-2019-9893 |
AliasName | string | No | The alias of the vulnerability. | High severity vulnerability that affects org.eclipse.jetty:jetty-server |
PatchId | long | No | The ID of the patch that is used to fix the vulnerability. | 1341512412 |
Necessity | string | No | The priority to fix the vulnerability. Valid values:
| asap |
CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 20. | 20 |
RepoRegionId | string | No | The region ID of the image repository. | cn-hangzhou |
RepoInstanceId | string | No | The instance ID of the image repository. | i-qewqrqcsadf**** |
RepoId | string | No | The ID of the image repository. | qew**** |
RepoName | string | No | The name of the image repository. | libssh2 |
RepoNamespace | string | No | The namespace to which the image repository belongs. | libssh2 |
ImageTag | string | No | The tag of the image. | oval |
ImageDigest | string | No | The SHA-256 value of the image digest. | w213412341dfsfasdfafadfasfasf |
ImageLayer | string | No | The layer of the image. | b1f5b9420803ad0657cf21566e3e20acc08581e7f22991249ef3aa80b8b1c587 |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
IsLatest | integer | No | Specifies whether to query the vulnerabilities in the latest images. If you do not specify this parameter, the vulnerabilities in all images are queried. Valid values:
| 0 |
ClusterId | string | No | The ID of the container cluster. Note
You can call the DescribeGroupedContainerInstances operation to query the ID of the container cluster.
| c60b77fe62093480db6164a3c2fa5**** |
ScanRange | array | No | An array consisting of the types of the assets that you want to scan. | |
string | No | The type of the asset that you want to scan. Valid values:
| container |
Response parameters
Examples
Sample success responses
JSON
format
{
"CurrentPage": 2,
"RequestId": "5E244439-UJND-8BF7-26F36E21B9AA",
"PageSize": 20,
"TotalCount": 21,
"GroupedVulItems": [
{
"Status": 0,
"Type": "cve",
"NntfCount": 29,
"GmtLast": 1611201274000,
"LastScanTime": 1611201274000,
"Tags": "EXP exists",
"LaterCount": 26,
"AliasName": "RHSA-2017:3075-Important: wget security update",
"Name": "debian:9:CVE-2019-3858",
"AsapCount": 26,
"CanFix": "yes"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-09-16 | The request parameters of the API has changed | View Change Details |
2022-09-16 | The request parameters of the API has changed | View Change Details |