Creating an Export Task for Sensitive Data Identification Results
Function
This API is used to generate an export task for sensitive data classification results based on specified parameters.
Calling Method
For details, see Calling APIs.
URI
POST /v1/{project_id}/scan-jobs/{job_id}/classification-results/export-tasks
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
job_id |
Yes |
String |
Task ID, which is used to identify a specific scan task. |
|
project_id |
Yes |
String |
Project ID, which is used to identify a specific project. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
asset_id |
No |
String |
Asset ID, which uniquely identifies an asset. |
|
asset_type |
No |
String |
Asset type, such as OBS and DATABASE. |
|
bucket_name |
No |
String |
Name of the OBS bucket for storing exported results. |
|
database_name |
No |
String |
Name of the database corresponding to the exported result. |
|
filter_bucket_name |
No |
String |
Filter OBS buckets by name. |
|
keyword |
No |
String |
Keyword, which is used to search for and filter exported results. |
|
mask |
No |
Boolean |
Whether to mask sensitive information in the exported results. |
|
security_level_ids |
No |
Array of strings |
List of IDs of specific risk levels to be exported. |
|
sort |
No |
String |
Sorting mode, which is used to sort the exported results. |
|
start_time |
No |
Long |
Start time of the export result. |
|
table_name |
No |
String |
Name of the table corresponding to the exported result. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
asset_name |
String |
Name of the asset corresponding to the export result. |
|
asset_type |
String |
Asset type, such as OBS and DATABASE. |
|
bucket_name |
String |
Name of the OBS bucket for storing exported results. |
|
file_name |
String |
Name of the exported result file. |
|
job_name |
String |
Name of the export task. |
|
start_time |
String |
Time when the export task starts. |
|
status |
String |
Status of the export task. |
Status code: 201
Export task created.
Example Requests
POST /v1/{project_id}/scan-jobs/{job_id}/classification-results/export
{
"asset_id" : "string",
"asset_type" : "string",
"bucket_name" : "string",
"database_name" : "string",
"filter_bucket_name" : "string",
"keyword" : "string",
"mask" : true,
"security_level_ids" : [ "string" ],
"sort" : "string",
"start_time" : 0,
"table_name" : "string"
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
If the request is successful, the export task status is returned. |
|
201 |
Export task created. |
|
401 |
Unauthorized. The user is not logged in or the token is invalid. |
|
403 |
Unauthorized to access the resource. |
|
404 |
The specified task or project is not found. |
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