All Products
Search
Document Center

Security Center:ListPodRisk

Last Updated:Nov 25, 2024

Queries the security risks of a pod.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ListPodRisklist
*All Resources
*
    none
none

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.

PodRiskListobject

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