DescribeInstanceRiskLevels

Updated at:

Queries the risk levels of instances.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-cloudfirewall:DescribeInstanceRiskLevels

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language in which messages are received. Valid values:

  • zh (default): Chinese

  • en: English

en

Instances

array<object>

No

The list of instances.

object

No

The instances.

Uuid

string

No

The UUID of the instance.

181ad081-e4f2-4e3e-b925-03b67f648397

InstanceId

string

No

The ID of the Cloud Firewall instance.

vipcloudfw-cn-7mz2fj8nm0u

IntranetIp

string

No

The private IP address of the instance.

172.17.XX.XX

InternetIp

array

No

The public IP address of the instance.

string

No

The public IP address of the instance.

60.205.XX.XX

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

9AABB1B7-C81F-5158-9EF9-B2DD5D3DA014

InstanceRisks

array<object>

The list of instance risks.

array<object>

InstanceId

string

The ID of the Cloud Firewall instance.

vipcloudfw-cn-7mz2fj8nm0u

Level

string

The risk level. Valid values:

  • medium: Medium

medium

Details

array<object>

The list of ECS instance risks.

object

The list of ECS instance risks.

Ip

string

The IP address of the server.

203.107.XX.XX

Type

string

The type.

ResourceNotProtected

Level

string

The risk level. Valid values:

  • medium: Medium

medium

Examples

Success response

JSON format

{
  "RequestId": "9AABB1B7-C81F-5158-9EF9-B2DD5D3DA014",
  "InstanceRisks": [
    {
      "InstanceId": "vipcloudfw-cn-7mz2fj8nm0u",
      "Level": "medium",
      "Details": [
        {
          "Ip": "203.107.XX.XX",
          "Type": "ResourceNotProtected",
          "Level": "medium"
        }
      ]
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.