All Products
Search
Document Center

Security Center:GetCheckCountStatistic

Last Updated:Nov 18, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Queries statistics on the number of risk items in cloud security posture management (CSPM) for cloud services.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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:GetCheckCountStatisticget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VendorsarrayNo

The cloud service providers.

stringNo

The cloud service provider. Valid values:

  • ALIYUN: Alibaba Cloud.
  • TENCENT: Tencent Cloud.
  • MICROSOFT: Microsoft Azure.
  • AWS: Amazon Web Services (AWS).
ALIYUN
StatisticTypestringNo

The type of the statistics. Valid values:

  • user: the top five users that are granted excessive permissions.
  • role: the top five roles that are granted excessive permissions.
  • instance: the top five cloud services on which risks are detected.
  • host: the top five servers on which baseline risks are detected.
instance
TaskSourcesarrayNo

Task source.

stringNo

Task source. Values: - YAO_CHI: YaoChi Console.

YAO_CHI

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

20456DD5-5CBF-5015-9173-12CA4246B***
CheckCountStatisticDTOobject

The risk item statistics.

CheckCountStatisticItemsarray<object>

The risk item statistics.

CheckCountStatisticItemobject
InstanceIdstring

The instance ID of the cloud service.

i-wz9bpxyu6t74qn9g****
InstanceNamestring

The instance name of the asset.

launch-advisor-2021****
RiskCountinteger

The number of risk items.

22
Vendorinteger

The cloud service provider. Valid values:

  • ALIYUN: Alibaba Cloud.
  • TENCENT: Tencent Cloud.
  • MICROSOFT: Microsoft Azure.
  • AWS: AWS.
ALIYUN
InstanceTypeinteger

The asset type. Valid values:

  • 0: Elastic Compute Service (ECS) instance.
  • 1: Server Load Balancer (SLB) instance.
  • 2: NAT gateway.
  • 3: ApsaraDB RDS instance.
  • 4: ApsaraDB for MongoDB (MongoDB) instance.
  • 5: Tair (Redis OSS-compatible) (Tair) instance.
  • 6: container image.
  • 7: container.
0
InstanceSubTypeinteger

The subtype of the cloud service.

0
RegionIdstring

The region.

cn-shanghai
InstanceTypeNamestring

The asset type of the cloud service. Valid values:

  • ECS: ECS.
  • SLB: SLB.
  • RDS: ApsaraDB RDS.
  • MONGODB: ApsaraDB for MongoDB.
  • KVSTORE: Tair.
  • ACR: Container Registry.
  • CSK: Container Service for Kubernetes (ACK).
  • VPC: Virtual Private Cloud (VPC).
  • ACTIONTRAIL: ActionTrail.
  • CDN: Alibaba Cloud CDN (CDN).
  • CAS: Certificate Management Service (formerly SSL Certificates Service).
  • RDC: Alibaba Cloud DevOps.
  • RAM: Resource Access Management (RAM).
  • DDOS: Anti-DDoS.
  • WAF: Web Application Firewall (WAF).
  • OSS: Object Storage Service (OSS).
  • POLARDB: PolarDB.
  • POSTGRESQL: ApsaraDB RDS for PostgreSQL.
  • MSE: Microservices Engine (MSE).
  • NAS: File Storage NAS (NAS).
  • SDDP: Sensitive Data Discovery and Protection (SDDP).
  • EIP: Elastic IP Address (EIP).
ECS
InstanceSubTypeNamestring

The asset subtype of the cloud service. Valid values:

  • If InstanceTypeName is set to ECS, this parameter supports the following valid values:

    • INSTANCE
    • DISK
    • SECURITY_GROUP
  • If InstanceTypeName is set to ACR, this parameter supports the following valid values:

    • REPOSITORY_ENTERPRISE
    • REPOSITORY_PERSON
  • If InstanceTypeName is set to RAM, this parameter supports the following valid values:

    • ALIAS
    • USER
    • POLICY
    • GROUP
  • If InstanceTypeName is set to WAF, this parameter supports the following valid value:

    • DOMAIN
  • If InstanceTypeName is set to other values, this parameter supports the following valid values:

    • INSTANCE
INSTANCE
Uuidstring

The UUID of the host instance.

c9107c04-942f-40c1-981a-f1c1****
InternetIpstring

The public IP address of the host instance.

1.2.XX.XX
IntranetIpstring

The private IP address of the host instance.

1.2.XX.XX
Osstring

The version of the operating system that the host instance runs.

linux
Coresinteger

The number of the CPU cores used by the host instance.

2
VpcInstanceIdstring

The ID of the VPC to which the host instance belongs.

vpc-uf60agqq65bs98zoo****
StatisticTypestring

The type of the statistics. Valid values:

  • user: the top five users that are granted excessive permissions.
  • role: the top five roles that are granted excessive permissions.
  • instance: the top five cloud services on which risks are detected.
instance

Examples

Sample success responses

JSONformat

{
  "RequestId": "20456DD5-5CBF-5015-9173-12CA4246B***",
  "CheckCountStatisticDTO": {
    "CheckCountStatisticItems": [
      {
        "InstanceId": "i-wz9bpxyu6t74qn9g****",
        "InstanceName": "launch-advisor-2021****",
        "RiskCount": 22,
        "Vendor": 0,
        "InstanceType": 0,
        "InstanceSubType": 0,
        "RegionId": "cn-shanghai",
        "InstanceTypeName": "ECS",
        "InstanceSubTypeName": "INSTANCE",
        "Uuid": "c9107c04-942f-40c1-981a-f1c1****\n",
        "InternetIp": "1.2.XX.XX\n",
        "IntranetIp": "1.2.XX.XX\n",
        "Os": "linux",
        "Cores": 2,
        "VpcInstanceId": "vpc-uf60agqq65bs98zoo****\n"
      }
    ],
    "StatisticType": "instance"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionno permission-
400NoPurchaseThe user did not purchase this product.User has not purchased this product
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