Obtaining Classification and Grading Templates for Sensitive Data Identification
Function
This API is used to obtain the list of classification and grading templates for sensitive data identification.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/scan-templates
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
No |
Integer |
Page. |
limit |
No |
Integer |
Page size. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Total number of identification templates. |
scan_templates_list |
Array of ScanTemplateEntity objects |
List of identification templates. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Identification template ID. |
project_id |
String |
Project ID. |
name |
String |
Template name. |
description |
String |
Template description. |
category |
String |
Template category. |
is_default |
Boolean |
Whether the template is a default template. |
create_time |
Long |
Creation time. |
update_time |
Long |
Update time. |
is_deleted |
Boolean |
Whether to delete the template. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Code |
error_msg |
String |
Error Message |
Example Requests
Obtain the list of classification and grading templates for sensitive data identification.
GET /v1/{project_id}/scan-templates
Example Responses
Status code: 200
Request sent.
{ "scan_templates_list" : [ { "id" : "xxxxxxxxxxxx", "project_id" : "xxxxxxxxxxxx", "name" : "xxxxxxxxxxxx", "description" : "xxxxxxxxxxxx", "category" : "BUILT_IN", "is_default" : true, "create_time" : 1710560820120, "update_time" : 1710573345350, "is_deleted" : false } ], "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