All Products
Search
Document Center

Security Center:DescribeAssetsSecurityEventSummary

Last Updated:Nov 13, 2024

Queries the risk information about containers.

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

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

113.108.XX.XX
ContainerFieldNamestringNo

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

  • instanceId: the ID of the container instance
  • clusterId: the ID of the cluster
  • regionId: the region ID of the container
  • 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
  • ClusterType: the type of the cluster
  • hostIp: the public IP address
  • pod: the pod
  • podIp: the IP address of the pod
  • containerId: the ID of the container
  • vulStatus: whether vulnerabilities are detected on the container
  • alarmStatus: whether alerts are generated for the container
  • riskStatus: whether risks are detected on the container
  • riskLevel: the risk level of the container
  • containerScope: the type of the container
clusterName
ContainerFieldValuestringNo

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

arms-prom-operator
ClusterIdstringNo

The ID of the cluster to which the container belongs.

Note You can call the DescribeGroupedContainerInstances operation to query the IDs of clusters.
cc58f827d893f4d7fb3e34b5d4395****

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

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

D03DD0FD-6041-5107-AC00-383E28F1****
Assetsarray<object>

An array that consists of risk information about containers.

RiskAssetCountobject

The risk information about the container.

RiskCountlong

The number of potential risky assets.

16
TotalCountlong

The total number of assets.

30
AssetTypestring

The type of the asset. Valid values:

  • namespace
  • clusters
  • applications
  • pods
  • containers
  • images
  • hosts
namespace

Examples

Sample success responses

JSONformat

{
  "RequestId": "D03DD0FD-6041-5107-AC00-383E28F1****",
  "Assets": [
    {
      "RiskCount": 16,
      "TotalCount": 30,
      "AssetType": "namespace"
    }
  ]
}

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.