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

Creating a Data Confidentiality Level

Function

Create a data security level.

Calling Method

For details, see Calling APIs.

URI

POST /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.

Request Parameters

Table 2 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.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

name

No

String

Name of the data security level. The name must be unique and can contain only letters, digits, underscores (_), and Chinese characters.

description

No

String

Description of the data security level.

Response Parameters

Status code: 200

Table 4 Response body parameters

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 5 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

{
  "name" : "test_secrecy_level",
  "description" : "test secrecy level"
}

Example Responses

Status code: 200

OK

{
  "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"
}

Status Codes

Status Code

Description

200

OK

400

Bad Request