All Products
Search
Document Center

Data Management:ListSensitivityLevel

Last Updated:Oct 21, 2024

Queries the sensitivity levels of a classification template.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TidlongNo

The ID of the tenant.

Note To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see View information about the current tenant in the topic "Manage DMS tenants."
20***
TemplateIdlongNo

The ID of the classification template. You can call the ListClassificationTemplates operation to query the ID of the classification template.

15**
TemplateTypestringNo

The type of the classification template. You can call the ListClassificationTemplates operation to query the type of the classification template.

Valid values:

  • USER_DEFINE: a custom template.
  • INNER: a built-in template.
INNER

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID. You can use the ID to query logs and troubleshoot issues.

4E1D2B4D-3E53-4ABC-999D-1D2520B3471A
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
ErrorMessagestring

The error message returned.

UnknownError
ErrorCodestring

The status code.

UnknownError
SensitivityLevelListarray<object>

The sensitivity levels.

SensitivityLevelListobject
Namestring

The name of the sensitive level.

S2
TemplateIdstring

The ID of the classification template.

1070
TemplateTypestring

The type of the classification template. Valid values:

  • INNER: a built-in template.
  • USER_DEFINE: a custom template.
INNER
IsPlainboolean

Indicates whether the fields of the sensitive level are displayed in plaintext.

Enumeration Value:
  • true: true.
  • false: false.
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "4E1D2B4D-3E53-4ABC-999D-1D2520B3471A",
  "Success": true,
  "ErrorMessage": "UnknownError",
  "ErrorCode": "UnknownError",
  "SensitivityLevelList": [
    {
      "Name": "S2",
      "TemplateId": "1070",
      "TemplateType": "INNER",
      "IsPlain": true
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.