Obtaining the List of Sensitive Data Classification Results
Function
This API is used to obtain the sensitive data classification and grading result list.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/scan-jobs/{job_id}/classification-results
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 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 identification results. |
classification_list |
Array of ClassificationResultsEntity objects |
List of objects in the identification result. |
marker |
Array of objects |
Batching result. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Result mark. |
project_id |
String |
Project ID. |
job_id |
String |
Subtask ID. |
task_id |
String |
Task ID. |
ins_id |
String |
Instance ID. |
asset_id |
String |
Asset ID. |
asset_name |
String |
Asset name. |
asset_type |
String |
Asset type. |
object_name |
String |
Object name. |
object_full_path |
String |
Full path of an object. |
security_level_name |
String |
Identification result. |
security_level_id |
String |
Security level ID in the identification result. |
security_level_color |
Integer |
Security level in the identification result. |
create_time |
Long |
Creation time. |
update_time |
Long |
Update time. |
scan_time |
Long |
Total identifications. |
match_info |
Array of ClassificationMatchInfo objects |
List of matched rules. |
Parameter |
Type |
Description |
---|---|---|
template_id |
String |
Identification template ID. |
template_name |
String |
Identification template name. |
rule_id |
String |
Rule ID. |
rule_name |
String |
Rule name. |
security_level_name |
String |
Security level name in the identification result. |
security_level_id |
String |
Security level ID in the identification result. |
security_level_color |
Integer |
Security level in the identification result. |
classification_name |
String |
Category name. |
classification_id |
String |
Category ID. |
matched_detail |
String |
Matching details. |
matched_examples |
Array of MatchedExamples objects |
List of matched rules. |
Parameter |
Type |
Description |
---|---|---|
line_number |
Long |
Number of rows. |
matched_content |
String |
Rule content. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Code |
error_msg |
String |
Error Message |
Example Requests
This API is used to obtain the sensitive data identification result list.
GET /v1/{project_id}/scan-jobs/{job_id}/classification-results
Example Responses
Status code: 200
Request sent.
{ "classification_list" : [ { "id" : "xxxxxxxxxxxx", "project_id" : "xxxxxxxxxxxx", "job_id" : "xxxxxxxxxxxx", "task_id" : "xxxxxxxxxxxx", "ins_id" : "xxxxxxxxxxxx", "asset_id" : "xxxxxxxxxxxx", "asset_name" : "xxxxxxxxxxxx", "asset_type" : "OBS", "object_name" : "xxxxxxxxxxxx", "object_full_path" : "xxxxxxxxxxxx", "security_level_name" : "L4", "security_level_id" : "xxxxxxxxxxxx", "security_level_color" : 4, "create_time" : 1710560820120, "update_time" : 1710573345350, "scan_time" : 12293, "match_info" : [ { "template_id" : "xxxxxxxxxxxx", "template_name" : "xxxxxxxxxxxx", "rule_id" : "xxxxxxxxxxxx", "rule_name" : "xxxxx", "security_level_name" : "L4", "security_level_id" : "xxxxxxxxxxxx", "security_level_color" : 5, "classification_name" : "xxxxxxxxxxxx", "classification_id" : "xxxxxxxxxxxx", "matched_detail" : "xxx" } ] } ], "total" : 1, "marker" : [ { }, { } ] }
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