All Products
Search
Document Center

Security Center:GetCheckCountStatistic

Last Updated:Mar 24, 2026

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

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:GetCheckCountStatistic

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Vendors

array

No

The cloud service providers.

string

No

The cloud service provider. Valid values:

  • ALIYUN: Alibaba Cloud.

  • TENCENT: Tencent Cloud.

  • MICROSOFT: Microsoft Azure.

  • AWS: Amazon Web Services (AWS).

ALIYUN

StatisticType

string

No

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

Lang

string

No

Language parameter

zh

TaskSources

array

No

Task source.

zh

string

No

Task source. Values: - YAO_CHI: YaoChi Console.

YAO_CHI

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

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

CheckCountStatisticDTO

object

The risk item statistics.

CheckCountStatisticItems

array<object>

The risk item statistics.

object

InstanceId

string

The instance ID of the cloud service.

i-wz9bpxyu6t74qn9g****

InstanceName

string

The instance name of the asset.

launch-advisor-2021****

RiskCount

integer

The number of risk items.

22

Vendor

integer

The cloud service provider. Valid values:

  • ALIYUN: Alibaba Cloud.

  • TENCENT: Tencent Cloud.

  • MICROSOFT: Microsoft Azure.

  • AWS: AWS.

ALIYUN

InstanceType

integer

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

InstanceSubType

integer

The subtype of the cloud service.

0

RegionId

string

The region.

cn-shanghai

InstanceTypeName

string

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

InstanceSubTypeName

string

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

Uuid

string

The UUID of the host instance.

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

InternetIp

string

The public IP address of the host instance.

1.2.XX.XX

IntranetIp

string

The private IP address of the host instance.

1.2.XX.XX

Os

string

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

linux

Cores

integer

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

2

VpcInstanceId

string

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

vpc-uf60agqq65bs98zoo****

CheckShowName

string

Check item display name

Enable public network access

VendorShowName

string

Vendor name

Alibaba Cloud

StatisticType

string

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

Success response

JSON format

{
  "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",
        "CheckShowName": "Enable public network access",
        "VendorShowName": "Alibaba Cloud"
      }
    ],
    "StatisticType": "instance"
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 NoPermission no permission
400 NoPurchase The user did not purchase this product. User has not purchased this product
500 ServerError ServerError
403 NoPermission caller has no permission You are not authorized to do this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.