Updated on 2025-11-17 GMT+08:00

Obtain the data security level.

Function

Obtain the data security level.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/security/data-classification/secrecy-level

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain the project ID, see Project ID and Account ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Offset, which is the position where the query starts. The value must be greater than or equal to 0.

limit

No

Integer

Number of items displayed on each page

order_by

No

String

Sorting field.

  • CREATED_AT: by creation time

  • CREATED_BY Sort by Creator

  • UPDATED_AT: by update time

  • UPDATED_BY Sort by Updater

  • NAME is sorted by data security level.

  • DESCRIPTION is sorted based on the data security level description.

desc

No

Boolean

Sorting rule

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

workspace

Yes

String

Workspace ID. For details about how to obtain the workspace ID, see Instance ID and Workspace ID.

X-Auth-Token

Yes

String

IAM token, which is obtained by calling the IAM API for obtaining a user token (value of X-Subject-Token in the response header). This parameter is mandatory for token authentication.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

total

Integer

Specifies the total number of events.

content

Array of SecrecyLevel objects

List of data security levels.

Table 5 SecrecyLevel

Parameter

Type

Description

secrecy_level_id

String

Data security level ID.

secrecy_level_name

String

Name of the data security level.

secrecy_level_number

Integer

Data security level.

description

String

Description of the data security level.

created_by

String

Creator.

created_at

Long

Creation time.

updated_by

String

Updater.

updated_at

Long

Update time.

instance_id

String

Specifies the DataArts instance ID.

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

v1/0833a5737480d53b2f25c010dc1a7b88/security/data-classification/secrecy-level?order_by=CREATED_AT&desc=false

Example Responses

Status code: 200

OK

{
  "content" : [ {
    "created_at" : 1668998595733,
    "created_by" : "ei_dayu_xxxxxx_01",
    "description" : "test secrecy level",
    "instance_id" : "ff1b509366614b23a51866233c696501",
    "secrecy_level_id" : "8a948095841c87e90184980d01a20000",
    "secrecy_level_name" : "test_secrecy_level",
    "secrecy_level_number" : 1,
    "updated_at" : 1709558070704,
    "updated_by" : "ei_dayu_xxxxxx_01"
  } ],
  "total" : 1
}

Status Codes

Status Code

Description

200

OK

400

Bad Request