All Products
Search
Document Center

Security Center:ListInstanceRiskNum

Last Updated:Feb 20, 2024

Queries the statistics about risks in instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceListobject []No

The instances.

UuidstringNo

The UUID of the instance.

f2d6e901-1004-4ca8-9dae-53ec04a9****
InstanceIdstringNo

The ID of the instance.

i-wz9fdluqx20mp2x7****

Response parameters

ParameterTypeDescriptionExample
object

ListResult

InstanceRiskNumobject []

The information about the risks in the instance.

InstanceItemobject

The information about the instance.

Uuidstring

The UUID of the instance.

f2d6e901-1004-4ca8-9dae-53ec04a9****
InstanceIdstring

The ID of the instance.

i-wz9fdluqx20mp2x7****
RiskNumEntityobject

The statistics about the risks.

VulHighCountinteger

The number of high-risk vulnerabilities.

1
VulMediumCountinteger

The number of medium-risk vulnerabilities.

2
VulLowCountinteger

The number of low-risk vulnerabilities.

3
WeakPassWordCountinteger

The number of weak passwords exposed on the Internet.

4
SuspiciousHighCountinteger

The number of high-risk alerts.

5
SuspiciousMediumCountinteger

The number of medium-risk alerts.

6
SuspiciousLowCountinteger

The number of low-risk alerts.

7
RequestIdstring

The request ID.

291B49F9-1685-4005-9D34-606B6F78****

Examples

Sample success responses

JSONformat

{
  "InstanceRiskNum": [
    {
      "InstanceItem": {
        "Uuid": "f2d6e901-1004-4ca8-9dae-53ec04a9****",
        "InstanceId": "i-wz9fdluqx20mp2x7****"
      },
      "RiskNumEntity": {
        "VulHighCount": 1,
        "VulMediumCount": 2,
        "VulLowCount": 3,
        "WeakPassWordCount": 4,
        "SuspiciousHighCount": 5,
        "SuspiciousMediumCount": 6,
        "SuspiciousLowCount": 7
      }
    }
  ],
  "RequestId": "291B49F9-1685-4005-9D34-606B6F78****"
}

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.