All Products
Search
Document Center

Security Center:GetCheckCountStatistic

Last Updated:Jun 12, 2026

Menanyakan statistik jumlah item risiko di Cloud Security Posture Management (CSPM).

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:GetCheckCountStatistic

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

Vendors

array

No

Daftar vendor cloud tempat sumber daya berada.

string

No

Vendor cloud tempat sumber daya berada. Nilai yang valid:

  • ALIYUN: Alibaba Cloud

  • TENCENT: Tencent Cloud

  • MICROSOFT: Azure

  • AWS: Amazon Web Services (AWS)

ALIYUN

StatisticType

string

No

Tipe statistik data. Nilai yang valid:

  • user: 5 pengguna teratas dengan hak akses berlebihan.

  • role: 5 peran teratas dengan hak akses berlebihan.

  • instance: 5 produk cloud teratas yang berisiko.

  • host: 5 host teratas dengan risiko baseline.

instance

Lang

string

No

Parameter bahasa.

zh

TaskSources

array

No

Sumber tugas.

zh

string

No

Sumber tugas. Nilai yang valid:

  • YAO_CHI: Konsol YaoChi.

YAO_CHI

Elemen respons

Element

Type

Description

Example

object

RequestId

string

ID permintaan ini. Ini adalah pengidentifikasi unik yang dihasilkan oleh Alibaba Cloud untuk permintaan ini dan dapat digunakan untuk memecahkan dan menemukan masalah.

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

CheckCountStatisticDTO

object

Daftar hasil statistik jumlah item risiko.

CheckCountStatisticItems

array<object>

Hasil statistik jumlah item risiko.

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

检查项展示名称

开启公网访问

VendorShowName

string

厂商名称

阿里云

StatisticType

string

Tipe statistik data. Nilai yang valid:

  • user: 5 pengguna teratas dengan hak akses berlebihan.

  • role: 5 peran teratas dengan hak akses berlebihan.

  • instance: 5 produk cloud teratas yang berisiko.

  • host: 5 host teratas dengan risiko baseline.

instance

Contoh

Respons sukses

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",
        "CheckShowName": "开启公网访问",
        "VendorShowName": "阿里云"
      }
    ],
    "StatisticType": "instance"
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 NoPermission no permission
400 NoPurchase The user did not purchase this product.
500 ServerError ServerError
403 NoPermission caller has no permission

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.