Queries risk information about assets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeInstanceStatistics

The operation that you want to perform. Set the value to DescribeInstanceStatistics.

SourceIp String No 1.2.XX.XX

The source IP address of the request.

Lang String No zh

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

  • zh: Chinese
  • en: English
Uuid String Yes 6690a46c-0edb-4663-a641-3629d1a9****

The UUIDs of the assets to query. Separate multiple UUIDs with commas (,).

You can call the DescribeCloudCenterInstances operation to query the UUIDs of assets.

From String Yes sas

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

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String 8F035A9D-D19F-5430-8CA5-1497991B7C61

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

Data Array of Data

The risk information about the asset.

Account Integer 0

The number of unusual logons by using the account of the asset.

AppNum Integer 1

The number of application vulnerabilities detected on the asset.

ScaNum Integer 1

The number of middleware vulnerabilities detected on the asset.

Trojan Integer 1

The number of trojans detected on the asset.

CveNum Integer 1

The number of common vulnerabilities detected on the asset.

EmgNum Integer 6

The number of urgent vulnerabilities detected on the asset.

Suspicious Integer 2

The number of alerts generated on the asset.

CmsNum Integer 5

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

Uuid String 6690a46c-0edb-4663-a641-3629d1a9****

The UUID of the asset instance.

Vul Integer 17

The total number of vulnerabilities detected on the asset.

Health Integer 2

The number of baseline risks detected on the asset.

SysNum Integer 3

The number of Windows system vulnerabilities detected on the asset.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeInstanceStatistics
&SourceIp=1.2.XX.XX
&Lang=zh
&Uuid=6690a46c-0edb-4663-a641-3629d1a9****
&From=sas
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeInstanceStatisticsResponse>
    <RequestId>8F035A9D-D19F-5430-8CA5-1497991B7C61</RequestId>
    <Data>
        <Account>0</Account>
        <AppNum>1</AppNum>
        <ScaNum>1</ScaNum>
        <Trojan>1</Trojan>
        <CveNum>1</CveNum>
        <EmgNum>6</EmgNum>
        <Suspicious>2</Suspicious>
        <CmsNum>5</CmsNum>
        <Uuid>6690a46c-0edb-4663-a641-3629d1a9****</Uuid>
        <Vul>17</Vul>
        <Health>2</Health>
        <SysNum>3</SysNum>
    </Data>
</DescribeInstanceStatisticsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "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
  } ]
}

Error codes

HTTP status code Error code Error message Description
400 NoPermission no permission The error message returned because you do not have access permissions on the service.
500 ServerError ServerError The error message returned because a server error occurred.

For a list of error codes, visit the API Error Center.