All Products
Search
Document Center

Security Center:ListInstanceRiskLevels

Last Updated:Feb 20, 2024

Queries the risk levels of 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 serial number of the instance.

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

The ID of the instance.

i-m5efigezp50l2cmb****

Response parameters

ParameterTypeDescriptionExample
object

ListResult

InstanceRiskLevelsobject []

The risk levels of instances.

InstanceIdstring

The ID of the server.

i-m5efigezp50l2cmb****
Uuidstring

The UUID of the server for which you want to modify the defense rule. You can call the DescribeCloudCenterInstances operation to query the UUIDs of servers.

f2d6e901-1004-4ca8-9dae-53ec04a92765
Levelstring

The risk level. Valid values:

  • high
  • medium
  • low
  • none
high
RequestIdstring

The request ID.

F5CF78A7-30AA-59DB-847F-13EE3AE7****

Examples

Sample success responses

JSONformat

{
  "InstanceRiskLevels": [
    {
      "InstanceId": "i-m5efigezp50l2cmb****",
      "Uuid": "f2d6e901-1004-4ca8-9dae-53ec04a92765",
      "Level": "high"
    }
  ],
  "RequestId": "F5CF78A7-30AA-59DB-847F-13EE3AE7****"
}

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.