All Products
Search
Document Center

Security Center:ListPodRisk

Last Updated:Jul 24, 2024

Queries the security risks of a pod.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
CurrentPagelongNo

The number of the page to return.

1
PageSizelongNo

The number of entries to return on each page. Default value: 20.

20
ClusterIdstringNo

The ID of the container cluster.

Note You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
c314aa5b2f208461dad821cdfed82****
NamespacestringNo

The namespace of the Kubernetes cluster.

taas
AppNamestringNo

The name of the application.

nginx1
PodNamestringNo

The name of the pod.

abcd-84898334227-p****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

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

94254AD7-5026-5847-833B-403C2326BD6E
PodRiskListarray<object>

An array that consists of the risks.

object

The risk information.

Podstring

The name of the pod.

expoit-xxx-b****
NodeNamestring

The name of the node.

test
ClusterIdstring

The ID of the container cluster.

c1d903a628af043659a043af59d89****
PodIpstring

The IP address of the pod.

172.0.XXX.XXX
CreateTimelong

The timestamp that indicates the time when the pod was created. Unit: milliseconds.

1644283112720
ClusterNamestring

The name of the cluster.

test66
Namespacestring

The namespace of the Kubernetes cluster.

kube-system
VulCountinteger

The number of vulnerabilities that are detected in the pod.

1
AlarmCountinteger

The number of alerts that are generated for the pod.

10
HcCountinteger

The number of baseline risk items that are detected in the pod.

1
InstanceIdstring

The instance ID of the node.

i-7yvdq597****
PageInfoobject

The pagination information.

TotalCountinteger

The total number of entries returned.

29
Countinteger

The number of entries returned on the current page.

20
PageSizeinteger

The number of entries returned per page.

2-
CurrentPageinteger

The page number of the returned page.

1

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history