Obtaining the Security Level List of Sensitive Data
Function
This API is used to obtain the security level list of sensitive data.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/scan-jobs/{job_id}/security-levels
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
job_id |
Yes |
String |
Sensitive data identification task ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
No |
Integer |
Page. |
limit |
No |
Integer |
Page size. |
keyword |
No |
String |
Keyword of a sensitive information object name. |
asset_type |
No |
String |
Resource type. |
asset_id |
No |
String |
Asset ID. |
security_level_ids |
No |
Array of strings |
An array of risk level IDs. |
marker |
No |
Array of strings |
Information about the previous/next batch. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Total number of risks. |
security_level_list |
Array of ClassificationSecurityLevelInfo objects |
List of risk statistics. |
Parameter |
Type |
Description |
---|---|---|
security_level_id |
String |
Risk level ID. |
security_level_name |
String |
Risk level name. |
security_level_color |
Integer |
Risk level color. |
count |
Integer |
Number of risky objects. |
percent |
String |
Percentage of a risk level in the statistics. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Code |
error_msg |
String |
Error Message |
Example Requests
Obtain the security level list of sensitive data.
GET /v1/{project_id}/scan-jobs/{job_id}/security-levels
Example Responses
Status code: 200
Request sent.
{ "security_level_list" : [ { "security_level_id" : "xxxxxxxxxxxx", "security_level_name" : "L4", "security_level_color" : 6, "count" : 2, "percent" : "0.2000" } ], "total" : 1 }
Status code: 400
Invalid request.
{ "error_code" : "dsc.40000011", "error_msg" : "Invalid parameter" }
Status Codes
Status Code |
Description |
---|---|
200 |
Request sent. |
400 |
Invalid request. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot