All Products
Search
Document Center

Security Center:DescribeClusterHostSecuritySummary

Last Updated:Nov 25, 2024

Queries the statistical information about host security.

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:DescribeClusterHostSecuritySummaryget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address.

222.71.XXX.XXX
ClusterIdstringNo

The ID of the container cluster.

c3aaf6c8085f84791882eef200cd2****
ContainerFieldNamestringNo

The key of the condition that is used to query containers. Valid values:

  • instanceId: the instance ID
  • appName: the name of the application
  • clusterId: the ID of the cluster
  • regionId: the region ID
  • nodeName: the name of the node
  • namespace: the namespace
  • clusterName: the name of the cluster
  • image: the name of the image
  • imageRepoName: the name of the image repository
  • imageRepoNamespace: the namespace to which the image repository belongs
  • imageRepoTag: the tag that is added to the image repository
  • imageDigest: the digest of the image
clusterId
ContainerFieldValuestringNo

The value of the condition that is used to query containers.

c1fdb5fd8d42e425d88fd73eec7be****
TargetTypestringNo

The type of the query. Valid values:

  • containerId
  • uuid
uuid

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

0B48AB3C-84FC-424D-A01D-B9270EF4****
ClusterHostEventobject

The alert details of the hosts.

AlarmEventarray<object>

The alert details of the host.

AlarmEventobject
RiskLevelstring

The alert level. Valid values:

  • serious
  • suspicious
  • remind
remind
Countlong

The number of alerts.

1
VulEventarray<object>

The vulnerability details of the host.

VulEventobject
RiskLevelstring

The risk level of the vulnerability. Valid values:

  • asap: high. You must fix the vulnerability at the earliest opportunity.
  • nntf: medium. You can fix the vulnerability based on your business requirements.
  • later: low. You can ignore the vulnerability.
later
Countlong

The number of vulnerabilities.

3
BaselineEventarray<object>

The baseline details of the host.

BaselineEventobject
RiskLevelstring

The risk level of the baseline. Valid values:

  • high
  • medium
  • low
medium
Countlong

The number of baselines.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "0B48AB3C-84FC-424D-A01D-B9270EF4****",
  "ClusterHostEvent": {
    "AlarmEvent": [
      {
        "RiskLevel": "remind",
        "Count": 1
      }
    ],
    "VulEvent": [
      {
        "RiskLevel": "later",
        "Count": 3
      }
    ],
    "BaselineEvent": [
      {
        "RiskLevel": "medium",
        "Count": 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.