Queries statistics on the number of risk items in cloud security posture management (CSPM) for cloud services.
Try it now
Test
RAM authorization
|
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 |
|
| StatisticType |
string |
No |
The type of the statistics. Valid values:
|
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 |
| InstanceType |
integer |
The asset type. Valid values:
|
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 |
| InstanceSubTypeName |
string |
The asset subtype of the cloud service. Valid values:
|
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:
|
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.