Queries the security risks of a pod.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CurrentPage | long | No | The number of the page to return. | 1 |
PageSize | long | No | The number of entries to return on each page. Default value: 20. | 20 |
ClusterId | string | No | The ID of the container cluster. Note
You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
| c314aa5b2f208461dad821cdfed82**** |
Namespace | string | No | The namespace of the Kubernetes cluster. | taas |
AppName | string | No | The name of the application. | nginx1 |
PodName | string | No | The name of the pod. | abcd-84898334227-p**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "94254AD7-5026-5847-833B-403C2326BD6E",
"PodRiskList": [
{
"Pod": "expoit-xxx-b****",
"NodeName": "test",
"ClusterId": "c1d903a628af043659a043af59d89****",
"PodIp": "172.0.XXX.XXX",
"CreateTime": 1644283112720,
"ClusterName": "test66",
"Namespace": "kube-system",
"VulCount": 1,
"AlarmCount": 10,
"HcCount": 1,
"InstanceId": "i-7yvdq597****"
}
],
"PageInfo": {
"TotalCount": 29,
"Count": 20,
"PageSize": 0,
"CurrentPage": 1
}
}
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 |
---|
No change history