This API is used to change the data security level based on a specified ID.
Function
This API is used to change the data security level based on a specified ID.
Calling Method
For details, see Calling APIs.
URI
PUT /v1/{project_id}/security/data-classification/secrecy-level/{id}
| 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. |
| id | Yes | String | Data security level ID. |
Request 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. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| description | No | String | Description of the data security level. |
Response Parameters
Status code: 200
| 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
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Example Requests
/v1/0833a5737480d53b2f25c010dc1a7b88/security/data-classification/secrecy-level/8a9480a78d210ae2018d3413428c0001
{
"description" : "test modify the secrecy level"
} Example Responses
Status code: 200
OK
{
"created_at" : 1668998595733,
"created_by" : "ei_dayu_xxxxxx_01",
"description" : "test modify the 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 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.