All Products
Search
Document Center

Security Center:DescribeInstanceStatistics

更新時間:Nov 25, 2024

Queries the statistics of assets that are protected by Security Center.

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

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

1.2.XX.XX
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh
UuidstringYes

The UUIDs of the assets to query. Separate multiple UUIDs with commas (,). You can call the DescribeCloudCenterInstances operation to query the UUIDs of assets.

6690a46c-0edb-4663-a641-3629d1a9****
FromstringYes

The source of the request. Set the value to sas, which indicates that the request is sent from Security Center.

sas

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

8F035A9D-D19F-5430-8CA5-1497991B7C61
Dataarray<object>

The risk information about assets.

Dataobject

The risk information about the asset.

Accountinteger

The number of unusual logons to the asset.

0
AppNuminteger

The number of application vulnerabilities detected on the asset.

1
ScaNuminteger

The number of middleware vulnerabilities detected on the asset.

1
Trojaninteger

The number of trojans detected on the asset.

1
CveNuminteger

The number of common vulnerabilities detected on the asset.

1
EmgNuminteger

The number of urgent vulnerabilities detected on the asset.

6
Suspiciousinteger

The number of alerts generated for the asset.

2
CmsNuminteger

The number of Web-CMS vulnerabilities detected on the asset.

5
Uuidstring

The UUID of the asset.

6690a46c-0edb-4663-a641-3629d1a9****
Vulinteger

The total number of vulnerabilities detected on the asset.

17
Healthinteger

The number of baseline risks detected on the asset.

2
SysNuminteger

The number of Windows system vulnerabilities detected on the asset.

3
WeakPWNuminteger

The number of weak passwords.

22
AgentlessAllinteger

The number of alerts generated by the agentless detection feature.

13
AgentlessMaliciousinteger

The number of malicious samples detected by the agentless detection feature.

3
AgentlessVulCveinteger

The number of system vulnerabilities detected by the agentless detection feature.

1
AgentlessVulScainteger

The number of application vulnerabilities detected by the agentless detection feature.

1
AgentlessBaselineinteger

The number of baseline risks detected by the agentless detection feature.

2
CspmNuminteger

The number of configuration risks detected on the asset.

1
AgentlessVulSysinteger

The number of Windows vulnerabilities detected by using agentless detection.

1
AgentlessSensitiveFileinteger

The number of sensitive file alerts generated by the agentless detection feature.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "8F035A9D-D19F-5430-8CA5-1497991B7C61",
  "Data": [
    {
      "Account": 0,
      "AppNum": 1,
      "ScaNum": 1,
      "Trojan": 1,
      "CveNum": 1,
      "EmgNum": 6,
      "Suspicious": 2,
      "CmsNum": 5,
      "Uuid": "6690a46c-0edb-4663-a641-3629d1a9****",
      "Vul": 17,
      "Health": 2,
      "SysNum": 3,
      "WeakPWNum": 22,
      "AgentlessAll": 13,
      "AgentlessMalicious": 3,
      "AgentlessVulCve": 1,
      "AgentlessVulSca": 1,
      "AgentlessBaseline": 2,
      "CspmNum": 1,
      "AgentlessVulSys": 1,
      "AgentlessSensitiveFile": 1
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionno permission-
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
2024-07-02The Error code has changed. The response structure of the API has changedView Change Details
2023-09-12The Error code has changed. The response structure of the API has changedView Change Details
2022-06-09The Error code has changed. The response structure of the API has changedView Change Details