All Products
Search
Document Center

Data Security Center:DescribeRiskLevels

Last Updated:Nov 27, 2025

Call the DescribeRiskLevels operation to retrieve a list of risk levels for sensitive data.

Operation description

You can use this operation to retrieve a list of risk levels for sensitive data that are defined in the current template. This lets you view the number of rules that reference each risk level and the maximum risk level in the template.

QPS limits

The queries per second (QPS) limit for this operation is 10 calls per second for a single user. If you exceed this limit, your API calls are throttled. This may affect your business. Plan your calls accordingly.

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-sddp:DescribeRiskLevels

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language of the request and response. Valid values:

  • zh_cn: Chinese. This is the default value.

  • en_us: English.

zh_cn

TemplateId

integer

No

The ID of the industry-specific template.

Note

Call DescribeCategoryTemplateList to get the ID of the industry-specific template.

1

FeatureType

integer

No

This parameter is deprecated.

2

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

136082B3-B21F-5E9D-B68E-991FFD205D24

RiskLevelList

array<object>

A list of risk levels.

object

Name

string

The name of the risk level for the sensitive data. The maximum risk level is S10 and varies based on the data classification template. The maximum risk level is S4 for the built-in data security classification template for Alibaba and Ant Group, and S5 for the built-in data classification template for the finance industry (with reference to JR/T 0197-2020 Financial Data Security - Guidelines for Data Security Classification) and the built-in data classification standard for the energy industry. If you use a copied template, the maximum risk level is S10. The following list describes the mappings between risk level names and IDs:

  • NA: 1

  • S1: 2

  • S2: 3

  • S3: 4

  • S4: 5

  • S5: 6

  • S6: 7

  • S7: 8

  • S8: 9

  • S9: 10

  • S10: 11

S1

Description

string

The description of the risk level. You can customize the description.

The following list describes the mappings between risk level names and their default descriptions:

  • NA: No sensitive data is detected

  • S1: Level-1 sensitive data

  • S2: Level-2 sensitive data

  • S3: Level-3 sensitive data

  • S4: Level-4 sensitive data

  • S5: Level-5 sensitive data

  • S6: Level-6 sensitive data

  • S7: Level-7 sensitive data

  • S8: Level-8 sensitive data

  • S9: Level-9 sensitive data

  • S10: Level-10 sensitive data

1级敏感数据

Id

integer

The unique ID of the risk level. Valid values: 1 to 11. Each risk level ID corresponds to a risk level name. For example, the risk level ID 2 corresponds to the risk level S1.

For more information about the mappings, see the description of the Name parameter.

2

ReferenceNum

integer

The number of times the risk level is referenced in the template. The default value is 0.

20

Examples

Success response

JSON format

{
  "RequestId": "136082B3-B21F-5E9D-B68E-991FFD205D24",
  "RiskLevelList": [
    {
      "Name": "S1",
      "Description": "1级敏感数据",
      "Id": 2,
      "ReferenceNum": 20
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.