title | description | ms.date | ms.topic |
---|---|---|---|
Finalize file upload - cloud discovery API |
This article describes the done_upload request in the Defender for Cloud Apps cloud discovery API. |
01/29/2023 |
reference |
After the file content upload successfully completes, notify us in order to begin the processing of the file.
POST /api/v1/discovery/done_upload/
Parameter | Description |
---|---|
uploadUrl | The URL that was returned in the initial call requesting file upload. |
inputStreamName | The name of the data source from which data is coming in (to see the list of names, in the portal, go to Settings > Automatic log upload). |
uploadAsSnapshot | Upload the data as a snapshot report instead of uploading to a continuous report. If this parameter is set, then the report will be created with the name specified in inputStreamName. |
Here is an example of the request.
curl -XPOST -H "Authorization:Token <your_token_key>" -H "Content-Type: application/json" "https://<tenant_id>.<tenant_region>.portal.cloudappsecurity.com/api/v1/discovery/done_upload/" -d {\"uploadUrl\":\"<initiate_file_upload_response_url>\",\"inputStreamName\":\"<inputStreamName>\"}
[!INCLUDE Open support ticket]