Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.35 KB

api-discovery-finalize.md

File metadata and controls

37 lines (25 loc) · 1.35 KB
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

Finalize file upload - cloud discovery API

After the file content upload successfully completes, notify us in order to begin the processing of the file.

HTTP request

POST /api/v1/discovery/done_upload/

Request BODY parameters

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.

Example

Request

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]