All Products
Search
Document Center

Security Center:DescribeAllRegionsStatistics

Last Updated:Nov 14, 2024

Queries the statistics on global security events, including the numbers of unfixed vulnerabilities, baseline risks, and alerts.

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

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

33.80.XXX.XXX
FromstringNo

The source of the request. Default value: aqs. Valid values:

  • sas: Security Center.
  • aqs: Server Guard.
sas
GroupIdlongNo

The ID of the asset group that you want to query.

Note You can call the DescribeAllGroups operation to query the ID.
1161****
RemarkstringNo

The name or public IP address of the asset.

192.168.XX.XX

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

B9A68671-BD84-55CD-807A-BA3A5490FCB4
Dataobject

The data returned.

Accountinteger

The number of logons to the asset.

0
Vulinteger

The number of unfixed vulnerabilities.

17
Healthinteger

The total number of unfixed baseline risks.

2
Trojaninteger

The number of webshell alerts.

1
NewSuspiciousinteger

The number of alerts that are generated by Server Guard or Security Center.

Note
  • If From is set to sas, this parameter indicates the number of alerts that are generated by Security Center.

  • If From is set to aqs, this parameter indicates the number of alerts that are generated by Server Guard.

0
Suspiciousinteger

The number of alerts that are generated by Server Guard.

2

Examples

Sample success responses

JSONformat

{
  "RequestId": "B9A68671-BD84-55CD-807A-BA3A5490FCB4",
  "Data": {
    "Account": 0,
    "Vul": 17,
    "Health": 2,
    "Trojan": 1,
    "NewSuspicious": 0,
    "Suspicious": 2
  }
}

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.